What’s Vulnerable › Vulnerabilities

CVE-2022-50158: mtd: partitions: Fix refcount leak in parse_redboot_of

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

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

Get alerted when CVE-2022-50158 or the next vulnerability affects your stack