Search covers the description text, product and vendor names and weakness types (also partial words).
This vulnerability can be exploited with local access to the device, with a regular user account, without any user interaction.
A successful attack has high impact: crashing the system or making it unavailable.
After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.
In the Linux kernel, the following vulnerability has been resolved:
phy: mdio: fix memory leak
Syzbot reported memory leak in MDIO bus interface, the problem was in
wrong state logic.
MDIOBUS_ALLOCATED indicates 2 states:
1. Bus is only allocated
2. Bus allocated and __mdiobus_register() fails, but
device_register() was called
In case of device_register() has been called we should call put_device()
to correctly free the memory allocated for this device, but mdiobus_free()
calls just kfree(dev) in case of MDIOBUS_ALLOCATED state
To avoid this behaviour we need to set bus->state to MDIOBUS_UNREGISTERED
_before_ calling device_register(), because put_device() should be
called even in case of device_register() failure.
Weakness: CWE-401
| Vendor | Product | Versions |
|---|---|---|
| linux | linux kernel | >=2.6.28 <4.4.289 |
| linux | linux kernel | >=4.5 <4.9.287 |
| linux | linux kernel | >=4.10 <4.14.251 |
| linux | linux kernel | >=4.15 <4.19.211 |
| linux | linux kernel | >=4.20 <5.4.153 |
| linux | linux kernel | >=5.5 <5.10.73 |
| linux | linux kernel | >=5.11 <5.14.12 |
| linux | linux kernel | 5.15 |