What’s Vulnerable › Vulnerabilities
CVE-2022-49342: net: ethernet: bgmac: Fix refcount leak in bcma_mdio_mii_register
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
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
- Linux kernel: from 4.8 before 5.17.15; from 5.18 before 5.18.4; 5.19-rc1 — fixed in 5.17.15, 5.18.4
How to fix
Upgrade to a fixed version: Linux kernel 5.17.15, 5.18.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/7fb1fe7d9a167205413f1de8db9f7d0f82c78286
- https://git.kernel.org/stable/c/b51996e35bbfcc7a27d94dfeed5cc2429b2c0df4
- https://git.kernel.org/stable/c/b8d91399775c55162073bb2aca061ec42e3d4bc1
Get alerted when CVE-2022-49342 or the next vulnerability affects your stack