CVE-2022-50138
BaseFortify
Publication date: 2025-06-18
Last updated on: 2025-11-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-401 | The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a potential memory leak in the Linux kernel's RDMA/qedr component. Specifically, in the __qedr_alloc_mr() function, a memory chunk is allocated for mr->info.pbl_table. If certain functions (rdma_alloc_tid() and rdma_register_tid()) fail, the memory for mr is released but the memory allocated for mr->info.pbl_table is not freed, causing a memory leak. The fix involves releasing mr->info.pbl_table with qedr_free_pbl() when an error occurs to prevent the leak.
How can this vulnerability impact me? :
This vulnerability can lead to a memory leak in the Linux kernel's RDMA/qedr subsystem. Over time, this could cause increased memory usage, potentially degrading system performance or causing resource exhaustion, which might lead to system instability or crashes.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version that includes the fix for the memory leak in __qedr_alloc_mr(). This fix ensures that the memory allocated for mr->info.pbl_table is properly released on error conditions, preventing the memory leak.