CVE-2022-50158
published 2025-06-18CVE-2022-50158: 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…
PriorityP417medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.16%
5.6th percentile
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
24 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 | — | — |
| linux | linux | — | — |
| linux | linux | >= 237960880960863fb41888763d635b384cffb104 < 8ea607579d300b2f7fc997f3dd20949114565fcd | 8ea607579d300b2f7fc997f3dd20949114565fcd |
| linux | linux | >= 237960880960863fb41888763d635b384cffb104 < 7ec48ac18d8f9e002ce9bfbad32741086739e499 | 7ec48ac18d8f9e002ce9bfbad32741086739e499 |
| linux | linux | >= 237960880960863fb41888763d635b384cffb104 < e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e | e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e |
| linux | linux | >= 237960880960863fb41888763d635b384cffb104 < 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016 | 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016 |
| linux | linux | >= 2f8824f556a3ebea9840c53326e55cc183316611 < 55d0f7da66dec93c4d53d0886a1555618079a900 | 55d0f7da66dec93c4d53d0886a1555618079a900 |
| linux | linux | >= 5.10.50 < 5.10.137 | 5.10.137 |
| linux | linux | >= 5.12.17 < 5.13 | 5.13 |
| linux | linux | >= 5.13.2 < 5.14 | 5.14 |
| linux | linux | >= 5.4.132 < 5.4.211 | 5.4.211 |
| linux | linux | >= 6490ed7c4684caf9851a0b98e0ab17a8d693dada < f3cc27198c5d78cdda60a55ae749f815cd1fe5eb | f3cc27198c5d78cdda60a55ae749f815cd1fe5eb |
| 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 | >= 5.10.50 < 5.10.137 | 5.10.137 |
| linux | linux_kernel | >= 5.12.17 < 5.13 | 5.13 |
| linux | linux_kernel | >= 5.13.2 < 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.4.132 < 5.4.211 | 5.4.211 |
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.
OSV
CVE-2022-50158: In the Linux kernel, the following vulnerability has been resolved: mtd: partitions: Fix refcount leak in parse_redboot_of of_get_child_by_name() retu
osv·2025-06-18·CVSS 5.5
CVE-2022-50158 [MEDIUM] CVE-2022-50158: In the Linux kernel, the following vulnerability has been resolved: mtd: partitions: Fix refcount leak in parse_redboot_of of_get_child_by_name() retu
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.
GHSA
GHSA-2c4x-c2pm-jgmw: In the Linux kernel, the following vulnerability has been resolved:
mtd: partitions: Fix refcount leak in parse_redboot_of
of_get_child_by_name() re
ghsa_unreviewed·2025-06-18
CVE-2022-50158 [MEDIUM] GHSA-2c4x-c2pm-jgmw: In the Linux kernel, the following vulnerability has been resolved:
mtd: partitions: Fix refcount leak in parse_redboot_of
of_get_child_by_name() re
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.
Red Hat
kernel: mtd: partitions: Fix refcount leak in parse_redboot_of
vendor_redhat·2025-06-18·CVSS 5.5
CVE-2022-50158 [MEDIUM] kernel: mtd: partitions: Fix refcount leak in parse_redboot_of
kernel: mtd: partitions: Fix refcount leak in parse_redboot_of
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.
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
Debian
CVE-2022-50158: linux - In the Linux kernel, the following vulnerability has been resolved: mtd: partit...
vendor_debian·2022·CVSS 5.5
CVE-2022-50158 [MEDIUM] CVE-2022-50158: linux - In the Linux kernel, the following vulnerability has been resolved: mtd: partit...
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.
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)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/55d0f7da66dec93c4d53d0886a1555618079a900https://git.kernel.org/stable/c/7ec48ac18d8f9e002ce9bfbad32741086739e499https://git.kernel.org/stable/c/8ea607579d300b2f7fc997f3dd20949114565fcdhttps://git.kernel.org/stable/c/9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016https://git.kernel.org/stable/c/e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0ehttps://git.kernel.org/stable/c/f3cc27198c5d78cdda60a55ae749f815cd1fe5eb
2025-06-18
Published