CVE-2022-50134

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

No CVSS score yet EPSS 0.27%

Published 18 Jun 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2022-50134

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50134 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before fc4de8009fd6c2ca51986c6757efa964040e7d02
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before 90ef48a718f88935d4af53d7dadd1ceafe103ce6
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before 2f90813f1c21c3d780585390af961bd17c8515ae
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before a85c7dd1edadcdeca24e603a6618153a3bcc81ca
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before e25b828553aecb3185a8d8d0c4f9b4e133fb5db6
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before 1750be1e9f18787cf717c24dbc5fa029fc372a22
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before a9055dfe437efae77e28e57205437c878a03ccb7
affected from e87473bc1b6c2cb08f1b760cfc8cd012822241a6, before aa2a1df3a2c85f855af7d54466ac10bd48645d63
Other versions: unaffected
Linux
affected 4.14
unaffected before 4.14
unaffected from 4.14.291 up to and including 4.14.*
unaffected from 4.19.256 up to and including 4.19.*
unaffected from 5.4.211 up to and including 5.4.*
unaffected from 5.10.137 up to and including 5.10.*
unaffected from 5.15.61 up to and including 5.15.*
unaffected from 5.18.18 up to and including 5.18.*
unaffected from 5.19.2 up to and including 5.19.*
unaffected 6.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50134 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50134

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50134
trivy image --scanners vuln IMAGE | grep CVE-2022-50134

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50134 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.