Bug 2373628 (CVE-2022-50134) - CVE-2022-50134 kernel: RDMA/hfi1: fix potential memory leak in setup_base_ctxt()
Summary: CVE-2022-50134 kernel: RDMA/hfi1: fix potential memory leak in setup_base_ctxt()
Keywords:
Status: NEW
Alias: CVE-2022-50134
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:11 UTC by OSIDB Bzimport
Modified: 2025-06-19 01:34 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:11:23 UTC
In the Linux kernel, the following vulnerability has been resolved:

RDMA/hfi1: fix potential memory leak in setup_base_ctxt()

setup_base_ctxt() allocates a memory chunk for uctxt->groups with
hfi1_alloc_ctxt_rcv_groups(). When init_user_ctxt() fails, uctxt->groups
is not released, which will lead to a memory leak.

We should release the uctxt->groups with hfi1_free_ctxt_rcv_groups()
when init_user_ctxt() fails.

Comment 1 Avinash Hanwate 2025-06-19 01:25:08 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061816-CVE-2022-50134-f6bd@gregkh/T


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