CVE-2022-50138 Details
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr() __qedr_alloc_mr() allocates a memory chunk for "mr->info.pbl_table" with init_mr_info(). When rdma_alloc_tid() and rdma_register_tid() fail, "mr" is released while "mr->info.pbl_table" is not released, which will lead to a memory leak. We should release the "mr->info.pbl_table" with qedr_free_pbl() when error occurs to fix the memory leak.
A memory leak vulnerability has been identified in the Linux kernel's RDMA/qedr component. The issue arises in the __qedr_alloc_mr()__ function, where memory is allocated for the 'mr->info.pbl_table' using 'init_mr_info()'. If 'rdma_alloc_tid()' and 'rdma_register_tid()' fail, the 'mr' is released, but 'mr->info.pbl_table' is not, leading to a memory leak. The vulnerability can be exploited by causing a failure in the TID allocation and registration, which would result in the leaked memory not being properly freed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/07ba048df306dc93fc4d2ef670b9e24644a2069f | kernel.org | Patch |
| https://git.kernel.org/stable/c/79ce50dddaf28b5c57911ecc80a2be17a0b17f83 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7e647a8d5fc0a2c8e0f36f585a6388286a25bb15 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b3236a64ddd125a455ef5b5316c1b9051b732974 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b4c9f7db9f0148423557539af0fdf513338efe08 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.9, < 5.10.137 >= 5.11, < 5.15.61 >= 5.16, < 5.18.18 >= 5.19, < 5.19.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 18, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |