PT-2024-11412 · Linux+2 · Linux Kernel+2
Syzbot
·
Published
2021-09-30
·
Updated
2025-01-08
·
CVE-2021-47416
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
A memory leak was reported in the MDIO bus interface of the Linux kernel. The issue arises from wrong state logic, where
MDIOBUS ALLOCATED indicates two states: the bus is only allocated, or the bus is allocated and mdiobus register() fails, but device register() was called. To correctly free the memory allocated for the device, put device() should be called, even in case of device register() failure. However, mdiobus free() calls just kfree(dev) in case of MDIOBUS ALLOCATED state. The problem can be avoided by setting bus->state to MDIOBUS UNREGISTERED before calling device register().Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Memory Leak
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Linux Kernel
Suse