CVE-2022-50311 Details
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.
A refcount leak vulnerability has been identified in the Linux kernel's CXL (Cache Express Link) driver, specifically within the function responsible for calculating capability routing. This issue arises because the function 'cxl_calc_capp_routing' returns a node pointer with an incremented reference count, but fails to properly decrement it in the error handling path. As a result, the reference count is not correctly managed, leading to a memory leak. The vulnerability affects several versions of the Linux kernel.
The vulnerability has been addressed in the Linux kernel by adding the missing 'of_node_put()' calls in the error path of the 'cxl_calc_capp_routing' function. Users should upgrade to the latest version of the Linux kernel where this fix has been applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54 | kernel.org | Patch |
| https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d | kernel.org | Patch |
| https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a | kernel.org | Patch |
| https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd | kernel.org | Patch |
| https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.12, < 4.14.303 >= 4.15, < 4.19.270 >= 4.20, < 5.4.229 >= 5.5, < 5.10.163 >= 5.11, < 5.15.86 >= 5.16, < 6.0.16 >= 6.1, < 6.1.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 4, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |