Use-after-free vulnerability in net: dsa: mv88e6xxx
Summary
GSD-2022-1000520: net: dsa: mv88e6xxx: fix use-after-free in mv88e6xxx_mdios_unregister. Affects Kernel versions >= 1b451c3994a2d322f8e55032c62c8b47b7d95900, < 402888280890bceb19e96733dc44792ebfdcd62d. 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: dsa: mv88e6xxx package is a component of the Linux Kernel that provides support for Marvell 88E6xxx Ethernet switches. These switches are commonly used in network infrastructure devices. The package includes drivers and functions that enable communication with the switch hardware. However, a use-after-free vulnerability has been discovered in the mv88e6xxx_mdios_unregister function of this package.
Vulnerability Detail
The use-after-free vulnerability in net: dsa: mv88e6xxx arises when the mv88e6xxx_mdios_unregister function is called. This function is responsible for unregistering the MDIO bus used by the Marvell Ethernet switch. However, due to a programming error, the function does not properly handle the deallocation of resources, leading to a use-after-free condition. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition on a vulnerable system.
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
No workaround has been provided for this vulnerability.
Conclusion
In conclusion, the net: dsa: mv88e6xxx package in the Linux Kernel is vulnerable to a use-after-free issue in the mv88e6xxx_mdios_unregister function. This vulnerability can be mitigated by updating the kernel to version v5.16.10 or later. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The net: dsa: mv88e6xxx package is a component of the Linux Kernel that provides support for Marvell 88E6xxx Ethernet switches.
A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to various security issues, including the execution of arbitrary code or a system crash.
This vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service condition on a vulnerable system.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.16.10 or later.
Users can obtain the updated Linux Kernel from the official Linux Kernel repository: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.