Skip to main content
← All vulnerabilities
CVE-2022-50158

mtd: partitions: Fix refcount leak in parse_redboot_of

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.211, 5.10.137, 5.13, 5.14
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux 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 Linux

    5.14

References 6

git.kernel.org