CVE-2022-50311

cxl: Fix refcount leak in cxl_calc_capp_routing

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:46 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 4.14.3034.12 ≤ v < 4.19.2704.12 ≤ v < 5.10.1634.12 ≤ v < 5.15.864.12 ≤ v < 5.4.2294.12 ≤ v < 6.0.164.12 ≤ v < 6.1.24.12 ≤ v < 6.24.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.865.16 ≤ v < 6.0.165.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.24.12f24be42aab37c6d07c05126673138e06223a6399
Vendor states this is fixed in 1d09697ff22908ae487fc8c4fbde1811732be523 (fixed)
Vendor states this is fixed in 2d7b6580384e6d65419933ddc525bd176095da54 (fixed)
Vendor states this is fixed in 651e8bc9d0418c20a1989b7c078c64c2a6346fa3 (fixed)
Vendor states this is fixed in 6a310e8db5409676b4b3e6c1f54dff174e4fd04d (fixed)
Vendor states this is fixed in 81c8bbf5b2b5f0c8030fff1716c00849cda8571a (fixed)
Vendor states this is fixed in c9bebc503881c1391f6c4f820134884adecf1519 (fixed)
Vendor states this is fixed in ee870f72465015327ad96204b0e92450d04870cd (fixed)
Vendor states this is fixed in f2d60f6ba173cded65081cee690b67802395a479 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card