What’s Vulnerable › Vulnerabilities

CVE-2022-49342: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register

Description

In the Linux kernel, the following vulnerability has been resolved: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register 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.17.15, 5.18.4. Check the vendor advisory for mitigations.

References

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