net: netsec: fix error handling in netsec_register_mdio()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 533dd11a12f698c571a12271b20f235792d3e148 · < 94423589689124e8cd145b38a1034be7f25835b2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: netsec: fix error handling in netsec_register_mdio()
If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function.
If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked.
From the CVE record · Linux
The Linux kernel's netsec MDIO registration error handling can leak PHY device memory or a kobject when device setup fails. The input does not establish whether an attacker can trigger these failures, or specify access or user-interaction requirements.
Engineers running Linux kernels that include the netsec driver should check their versions against the vendor advisory; affected versions are not specified.