net: mdio: validate parameter addr in mdiobus_get_phy()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7f854420fbfe9d49afe2ffb1df052cfe8e215541 · < 7879626296e6ffd838ae0f2af1ab49ee46354973| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: mdio: validate parameter addr in mdiobus_get_phy()
The caller may pass any value as addr, what may result in an out-of-bounds access to array mdio_map. One existing case is stmmac_init_phy() that may pass -1 as addr. Therefore validate addr before using it.
From the CVE record · Linux
The Linux kernel's mdiobus_get_phy() did not validate addr before using it to index mdio_map. A caller can pass an invalid value, including -1 from stmmac_init_phy(), causing an out-of-bounds access. The input does not establish whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified.