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

CVE record · `CVE-2022-50134`

- **Identifiers:** `CVE-2022-50134`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 18 Jun 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 18 Jun 2025, 11:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before fc4de8009fd6c2ca51986c6757efa964040e7d02` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before 90ef48a718f88935d4af53d7dadd1ceafe103ce6` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before 2f90813f1c21c3d780585390af961bd17c8515ae` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before a85c7dd1edadcdeca24e603a6618153a3bcc81ca` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before e25b828553aecb3185a8d8d0c4f9b4e133fb5db6` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before 1750be1e9f18787cf717c24dbc5fa029fc372a22` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before a9055dfe437efae77e28e57205437c878a03ccb7` (git)
  - affected: `e87473bc1b6c2cb08f1b760cfc8cd012822241a6 to before aa2a1df3a2c85f855af7d54466ac10bd48645d63` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.14`
  - unaffected: `before 4.14` (semver)
  - unaffected: `4.14.291 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.256 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.211 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.137 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.61 to 5.15.*, inclusive` (semver)
  - unaffected: `5.18.18 to 5.18.*, inclusive` (semver)
  - unaffected: `5.19.2 to 5.19.*, inclusive` (semver)
  - unaffected: `6.0 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel RDMA/hfi1 driver leaks memory in setup_base_ctxt() when init_user_ctxt() fails. The source gives few details on what triggers this or how an attacker could use it. Upgrade to a fixed stable release (4.14.291, 4.19.256, 5.4.211, or 5.10.137, or later in the branch).

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0027, the 19th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 18 Jun 2025, 11:02 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-50134)
- 18 Jun 2025, 11:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-50134)

## Sources

- [CVE List: CVE-2022-50134](https://www.cve.org/CVERecord?id=CVE-2022-50134)
- [NVD: CVE-2022-50134](https://nvd.nist.gov/vuln/detail/CVE-2022-50134)

### References from the CNA

- <https://git.kernel.org/stable/c/fc4de8009fd6c2ca51986c6757efa964040e7d02>
- <https://git.kernel.org/stable/c/90ef48a718f88935d4af53d7dadd1ceafe103ce6>
- <https://git.kernel.org/stable/c/2f90813f1c21c3d780585390af961bd17c8515ae>
- <https://git.kernel.org/stable/c/a85c7dd1edadcdeca24e603a6618153a3bcc81ca>
- <https://git.kernel.org/stable/c/e25b828553aecb3185a8d8d0c4f9b4e133fb5db6>
- <https://git.kernel.org/stable/c/1750be1e9f18787cf717c24dbc5fa029fc372a22>
- <https://git.kernel.org/stable/c/a9055dfe437efae77e28e57205437c878a03ccb7>
- <https://git.kernel.org/stable/c/aa2a1df3a2c85f855af7d54466ac10bd48645d63>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-50134>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-50134/>. Everything for agents: <https://agentprime.io/llms.txt>.
