# CVE-2022-50311: cxl: Fix refcount leak in cxl_calc_capp_routing

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:46:06.504Z
- Modified: 2026-11-05T20:17:33.707Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

cxl: Fix refcount leak in cxl_calc_capp_routing

of_get_next_parent() returns a node pointer with refcount incremented,
we should use of_node_put() on it when not need anymore.
This function only calls of_node_put() in normal path,
missing it in the error path.
Add missing of_node_put() to avoid refcount leak.

(As written by CVE List.)

## Affected

- Linux Linux: from f24be42aab37c6d07c05126673138e06223a6399 before c9bebc503881c1391f6c4f820134884adecf1519; from f24be42aab37c6d07c05126673138e06223a6399 before ee870f72465015327ad96204b0e92450d04870cd; from f24be42aab37c6d07c05126673138e06223a6399 before f2d60f6ba173cded65081cee690b67802395a479; from f24be42aab37c6d07c05126673138e06223a6399 before 81c8bbf5b2b5f0c8030fff1716c00849cda8571a; from f24be42aab37c6d07c05126673138e06223a6399 before 6a310e8db5409676b4b3e6c1f54dff174e4fd04d; from f24be42aab37c6d07c05126673138e06223a6399 before 651e8bc9d0418c20a1989b7c078c64c2a6346fa3; from f24be42aab37c6d07c05126673138e06223a6399 before 2d7b6580384e6d65419933ddc525bd176095da54; from f24be42aab37c6d07c05126673138e06223a6399 before 1d09697ff22908ae487fc8c4fbde1811732be523; 4.12 (not affected: before 4.12; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 4.12 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## References

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

## Sources

- CVE List: [CVE-2022-50311](https://www.cve.org/CVERecord?id=CVE-2022-50311), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50311](https://nvd.nist.gov/vuln/detail/CVE-2022-50311), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50311 · Whole record: https://cve.day/CVE-2022-50311.json · Rebuilt by cve.day 2026-11-25T22:58:21.159Z
