CVE-2022-50134

MEDIUM

Linux Kernel - Use-After-Free in RDMA hfi1 setup_base_ctxt()

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 5.5
EPSS 0.0020
EPSS Percentile 10.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (26)
linux/Kernel 4.14.0 - 4.14.291linux
linux/Kernel 4.15.0 - 4.19.256linux
linux/Kernel 4.20.0 - 5.4.211linux
linux/Kernel 5.11.0 - 5.15.61linux
linux/Kernel 5.16.0 - 5.18.18linux
linux/Kernel 5.19.0 - 5.19.2linux
linux/Kernel 5.5.0 - 5.10.137linux
Linux/Linux < 4.14
Linux/Linux 4.14
Linux/Linux 4.14.291 - 4.14.*
... and 16 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026