What’s Vulnerable › Vulnerabilities
CVE-2022-50311: cxl: Fix refcount leak in cxl_calc_capp_routing
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-15 · updated 2026-06-17
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.
Affected products
- 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 — fixed in 4.14.303, 4.19.270, 5.10.163, 5.15.86, 5.4.229, 6.0.16
How to fix
Upgrade to a fixed version: Linux kernel 4.14.303, 4.19.270, 5.10.163, 5.15.86. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523
- https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54
- https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3
- https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d
- https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a
- https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519
- https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd
- https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479
Get alerted when CVE-2022-50311 or the next vulnerability affects your stack