RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's RDMA/qedr code can leak memory allocated for mr->info.pbl_table. The leak occurs if rdma_alloc_tid() or rdma_register_tid() fails; the input does not describe an attacker path or access requirements.
Engineers running Linux kernels with RDMA/qedr should check their versions; affected versions are not specified.