Memory Leak in net: mdiobus_register
Summary
UVI-2021-1002014: net: mdiobus: Fix memory leak in __mdiobus_register. Affects Kernel versions < b0feaa8376f52357bf2fd020d0c471713a859728. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The net package in the Linux Kernel provides networking functionality and includes various subcomponents. One of these subcomponents is mdiobus, which is responsible for managing the Media Independent Interface (MII) bus. The MII bus is used for communication between Ethernet PHYs and the Ethernet controller. The mdiobus_register function is used to register an mdiobus instance with the kernel. However, there is a memory leak in the __mdiobus_register function, which can lead to memory exhaustion over time.
Vulnerability Detail
The vulnerability (UVI-2021-1002014) in the net package's mdiobus component allows an attacker to cause a memory leak by repeatedly registering mdiobus instances. This can result in memory exhaustion, leading to a denial-of-service (DoS) condition. The vulnerability has been fixed in Linux Kernel version v5.4.156 by commit b0feaa8376f52357bf2fd020d0c471713a859728.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is necessary to apply the fix by updating the Linux Kernel.
Conclusion
The memory leak vulnerability in the net package's mdiobus component can be fixed by updating the Linux Kernel. It is recommended to apply the fix as soon as possible to prevent potential memory exhaustion and denial-of-service (DoS) attacks. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The net package in the Linux Kernel provides networking functionality and includes various subcomponents.
mdiobus is a subcomponent of the net package that manages the Media Independent Interface (MII) bus.
mdiobus_register is used to register an mdiobus instance with the kernel.
The memory leak vulnerability can lead to memory exhaustion over time, resulting in a denial-of-service (DoS) condition.
To fix the vulnerability, update the Linux Kernel to version v5.4.156 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.