CVE-2022-50158

mtd: partitions: Fix refcount leak in parse_redboot_of

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:03 AM UTC
Updated: June 17, 2026 at 05:22 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: mtd: partitions: Fix refcount leak in parse_redboot_of of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. 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.

v ≥ 5.12.17v ≥ 5.13.25.10.50 ≤ v < 5.10.1375.12.17 ≤ v < 5.135.13.2 ≤ v < 5.145.13.2 ≤ v < 5.15.615.14 ≤ v < 5.15.615.14 ≤ v < 5.18.185.14 ≤ v < 5.19.25.14 ≤ v < 6.05.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.4.132 ≤ v < 5.4.211237960880960863fb41888763d635b384cffb1042f8824f556a3ebea9840c53326e55cc1833166115.10.505.12.175.13.25.145.4.1326490ed7c4684caf9851a0b98e0ab17a8d693dadad5023eb76f0dc651558b0c7ba04565891ff18435fa132c7ea108eacc67357ffe3172d3e68fcd71a2
Vendor states this is fixed in 55d0f7da66dec93c4d53d0886a1555618079a900 (fixed)
Vendor states this is fixed in 7ec48ac18d8f9e002ce9bfbad32741086739e499 (fixed)
Vendor states this is fixed in 8ea607579d300b2f7fc997f3dd20949114565fcd (fixed)
Vendor states this is fixed in 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016 (fixed)
Vendor states this is fixed in e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e (fixed)
Vendor states this is fixed in f3cc27198c5d78cdda60a55ae749f815cd1fe5eb (fixed)
Vendor states this is fixed in 5.10.137 (unaffected)
Affected range stops below 5.13, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.61 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/55d0f7da66dec93c4d53d0886a1555618079a900
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7ec48ac18d8f9e002ce9bfbad32741086739e499
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8ea607579d300b2f7fc997f3dd20949114565fcd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f3cc27198c5d78cdda60a55ae749f815cd1fe5eb

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