
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-48961 affects the Linux kernel and involves an unbalanced fwnode reference count in the mdio_device_release() function. The vulnerability was discovered when a warning was reported about an of_node refcount leak while probing mdio device, specifically in the path '/spi/soc@0/mdio@710700c0/ethernet@4' (Kernel Git).
The issue occurs in the of_mdiobus_register_device() function where the fwnode refcount is increased by fwnode_handle_get() before associating the of_node with mdio device, but it is never decreased in the normal path. This leads to a memory leak as indicated by the error message 'OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced'. The vulnerability traces back to the original commit a9049e0c513c which added support for mdio drivers (Kernel Git).
The vulnerability results in a memory leak in the Linux kernel's MDIO (Management Data Input/Output) subsystem, which could potentially lead to resource exhaustion over time (Kernel Git).
The issue has been fixed by adding fwnode_handle_put() call in mdio_device_release() instead of calling kfree() directly. Additionally, in the error handling path of of_mdiobus_register_device(), the fix ensures proper reference counting by calling mdio_device_free() to maintain balanced refcounts (Kernel Git).
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."