CVE-2022-50160
published 2025-06-18CVE-2022-50160: 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…
PriorityP417medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.16%
5.6th percentile
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
21 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.0.2-1 (bookworm) | linux 6.0.2-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < 995fb2874bb5696357846a91e59181c600e6aac8 | 995fb2874bb5696357846a91e59181c600e6aac8 |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < d10855876a6f47add6ff621cef25cc0171dac162 | d10855876a6f47add6ff621cef25cc0171dac162 |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f | 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < 941ef6997f9db704fe4fd62fc01e420fdd5048b2 | 941ef6997f9db704fe4fd62fc01e420fdd5048b2 |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < d5730780e9ea84e5476752a47c749036c6a74af5 | d5730780e9ea84e5476752a47c749036c6a74af5 |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < a74322d4b897ddc268b340c4a397f6066c2f945d | a74322d4b897ddc268b340c4a397f6066c2f945d |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < babd7b0124650ab71a6487e38588b8659b3aa2dc | babd7b0124650ab71a6487e38588b8659b3aa2dc |
| linux | linux | >= b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 < 77087a04c8fd554134bddcb8a9ff87b21f357926 | 77087a04c8fd554134bddcb8a9ff87b21f357926 |
| linux | linux_kernel | >= 0 < 5.10.140-1 | 5.10.140-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 4.15 < 4.19.256 | 4.19.256 |
| linux | linux_kernel | >= 4.20 < 5.4.211 | 5.4.211 |
| linux | linux_kernel | >= 4.7 < 4.14.291 | 4.14.291 |
| linux | linux_kernel | >= 5.11 < 5.15.61 | 5.15.61 |
| linux | linux_kernel | >= 5.16 < 5.18.18 | 5.18.18 |
| linux | linux_kernel | >= 5.19 < 5.19.2 | 5.19.2 |
| linux | linux_kernel | >= 5.5 < 5.10.137 | 5.10.137 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: mtd: maps: Fix refcount leak in ap_flash_init
vendor_redhat·2025-06-18·CVSS 5.5
CVE-2022-50160 [MEDIUM] kernel: mtd: maps: Fix refcount leak in ap_flash_init
kernel: mtd: maps: Fix refcount leak in ap_flash_init
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.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 8) - Not affected
Package: kernel (Red Hat Enterprise Linux 9) - Not affected
Package: kernel
Debian
CVE-2022-50160: linux - In the Linux kernel, the following vulnerability has been resolved: mtd: maps: ...
vendor_debian·2022·CVSS 5.5
CVE-2022-50160 [MEDIUM] CVE-2022-50160: linux - In the Linux kernel, the following vulnerability has been resolved: mtd: maps: ...
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.
Scope: local
bookworm: resolved (fixed in 6.0.2-1)
bullseye: resolved (fixed in 5.10.140-1)
forky: resolved (fixed in 6.0.2-1)
sid: resolved (fixed in 6.0.2-1)
trixie: resolved (fixed in 6.0.2-1)
OSV
CVE-2022-50160: 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 no
osv·2025-06-18·CVSS 5.5
CVE-2022-50160 [MEDIUM] CVE-2022-50160: 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 no
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.
GHSA
GHSA-cmgq-7wfj-6r6j: 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
ghsa_unreviewed·2025-06-18
CVE-2022-50160 [MEDIUM] GHSA-cmgq-7wfj-6r6j: 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
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.
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6fhttps://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945dhttps://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dchttps://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5
2025-06-18
Published