Bug 2373512 (CVE-2022-50138) - CVE-2022-50138 kernel: RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()
Summary: CVE-2022-50138 kernel: RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()
Keywords:
Status: NEW
Alias: CVE-2022-50138
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:06 UTC by OSIDB Bzimport
Modified: 2025-08-04 12:42 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:06:14 UTC
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.

Comment 1 Avinash Hanwate 2025-06-19 20:07:05 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061817-CVE-2022-50138-cd9d@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.