CVE-2022-50134

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

published June 18, 2025

CVSS
—
EPSS
0%
Percentile
15.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00253 · 15.9th percentile
Published
2025-06-18T11:02Z
EPSS history
Timeline
  • 18 JUN 11:02Z
    RDMA/hfi1: fix potential memory leak in setup_base_ctxt()
    cvelistv5