
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49016 is a vulnerability in the Linux kernel related to an unbalanced node reference count in the MDIO (Management Data Input/Output) bus subsystem. The issue was discovered during device load testing with CONFIG_OF_UNITTEST and CONFIG_OF_DYNAMIC enabled, specifically affecting the mscc-miim device driver (Kernel Commit).
The vulnerability stems from a memory management issue where the 'fwnode' reference count is incremented in fwnode_mdiobus_phy_device_register() but never decremented when the device is freed in the normal path. For ACPI nodes, the opposite occurs - the reference is decremented in the error path without being previously incremented. This leads to an unbalanced reference count, resulting in a memory leak (Kernel Commit).
The primary impact of this vulnerability is a memory leak in the Linux kernel's MDIO bus subsystem. When triggered, the system reports an error indicating 'memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced' (Kernel Commit).
The issue has been fixed by adding proper reference count management: calling fwnode_handle_put() in phy_device_release() to prevent leaks for non-ACPI nodes, and calling fwnode_handle_get() before phy_device_register() for ACPI nodes to maintain balanced operations (Kernel Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."