What’s Vulnerable › Vulnerabilities
CVE-2022-50158: mtd: partitions: Fix refcount leak in parse_redboot_of
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
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 products
- Linux kernel: from 5.4.132 before 5.4.211; from 5.10.50 before 5.10.137; from 5.12.17 before 5.13; from 5.13.2 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2 — fixed in 5.10.137, 5.13, 5.15.61, 5.18.18, 5.19.2, 5.4.211
How to fix
Upgrade to a fixed version: Linux kernel 5.10.137, 5.13, 5.15.61, 5.18.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/55d0f7da66dec93c4d53d0886a1555618079a900
- https://git.kernel.org/stable/c/7ec48ac18d8f9e002ce9bfbad32741086739e499
- https://git.kernel.org/stable/c/8ea607579d300b2f7fc997f3dd20949114565fcd
- https://git.kernel.org/stable/c/9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016
- https://git.kernel.org/stable/c/e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e
- https://git.kernel.org/stable/c/f3cc27198c5d78cdda60a55ae749f815cd1fe5eb
Get alerted when CVE-2022-50158 or the next vulnerability affects your stack