CVE-2022-50160

mtd: maps: Fix refcount leak in ap_flash_init

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: maps: Fix refcount leak in ap_flash_init of_find_matching_node() 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.

4.15 ≤ v < 4.19.2564.20 ≤ v < 5.4.2114.7 ≤ v < 4.14.2914.7 ≤ v < 4.19.2564.7 ≤ v < 5.10.1374.7 ≤ v < 5.15.614.7 ≤ v < 5.18.184.7 ≤ v < 5.19.24.7 ≤ v < 5.4.2114.7 ≤ v < 6.05.11 ≤ v < 5.15.615.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.5 ≤ v < 5.10.1374.7b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Vendor states this is fixed in 77087a04c8fd554134bddcb8a9ff87b21f357926 (fixed)
Vendor states this is fixed in 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f (fixed)
Vendor states this is fixed in 941ef6997f9db704fe4fd62fc01e420fdd5048b2 (fixed)
Vendor states this is fixed in 995fb2874bb5696357846a91e59181c600e6aac8 (fixed)
Vendor states this is fixed in a74322d4b897ddc268b340c4a397f6066c2f945d (fixed)
Vendor states this is fixed in babd7b0124650ab71a6487e38588b8659b3aa2dc (fixed)
Vendor states this is fixed in d10855876a6f47add6ff621cef25cc0171dac162 (fixed)
Vendor states this is fixed in d5730780e9ea84e5476752a47c749036c6a74af5 (fixed)
Vendor states this is fixed in 4.14.291 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 4.7 (unaffected)
Vendor states this is fixed in 5.10.137 (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 (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5

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