CVE-2022-50134
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) |
| 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/hfi1 component. Specifically, the function setup_base_ctxt() allocates memory for uctxt->groups, but if the initialization function init_user_ctxt() fails, the allocated memory is not properly released, leading to a memory leak. The fix involves releasing the allocated memory with hfi1_free_ctxt_rcv_groups() when init_user_ctxt() fails.
How can this vulnerability impact me? :
The vulnerability can lead to a memory leak in the Linux kernel's RDMA/hfi1 subsystem. Over time, this could cause increased memory usage and potentially degrade system performance or stability, especially in environments heavily using RDMA features.
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 setup_base_ctxt() related to RDMA/hfi1. This fix ensures that allocated memory for uctxt->groups is properly released when init_user_ctxt() fails.