# cxl: Fix refcount leak in cxl_calc_capp_routing

CVE record · `CVE-2022-50311`

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

Published by the CVE Program (CNA: Linux) at 15 Sept 2025, 14:46 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: `f24be42aab37c6d07c05126673138e06223a6399 to before c9bebc503881c1391f6c4f820134884adecf1519` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before ee870f72465015327ad96204b0e92450d04870cd` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before f2d60f6ba173cded65081cee690b67802395a479` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before 81c8bbf5b2b5f0c8030fff1716c00849cda8571a` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before 6a310e8db5409676b4b3e6c1f54dff174e4fd04d` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before 651e8bc9d0418c20a1989b7c078c64c2a6346fa3` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before 2d7b6580384e6d65419933ddc525bd176095da54` (git)
  - affected: `f24be42aab37c6d07c05126673138e06223a6399 to before 1d09697ff22908ae487fc8c4fbde1811732be523` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.12`
  - unaffected: `before 4.12` (semver)
  - unaffected: `4.14.303 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.270 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.229 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.163 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.86 to 5.15.*, inclusive` (semver)
  - unaffected: `6.0.16 to 6.0.*, inclusive` (semver)
  - unaffected: `6.1.2 to 6.1.*, inclusive` (semver)
  - unaffected: `6.2 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.

> Linux kernel versions from 4.12 until the fixes in the listed commits are affected by a reference count leak in cxl_calc_capp_routing, where a device tree node reference is not released on an error path. The source gives few details on attacker requirements or impact. Upgrade to a fixed kernel release.

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.0017, the 5th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 15 Sept 2025, 14:46 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2022-50311)
- 15 Sept 2025, 15:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-50311)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519>
- <https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd>
- <https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479>
- <https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a>
- <https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d>
- <https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3>
- <https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54>
- <https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523>

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-50311>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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