CVE-2022-48961
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management