High · published June 20, 2024
In the Linux kernel, the following vulnerability has been resolved:
phylib: fix potential use-after-free
Commit bafbdd527d56 ("phylib: Add device reset GPIO support") added call
to phy_device_reset(phydev) after the put_device() call in phy_detach().
The comment before the put_device() call says that the phydev might go
away with put_device().
Fix potential use-after-free by calling phy_device_reset() before
put_device().
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 4.16, < 4.19.228 | 4.19.228 |
| linux/linux_kernel | ≥ 4.20, < 5.4.176 | 5.4.176 |
| linux/linux_kernel | ≥ 5.5, < 5.10.96 | 5.10.96 |
| linux/linux_kernel | ≥ 5.11, < 5.15.19 | 5.15.19 |
| linux/linux_kernel | ≥ 5.16, < 5.16.5 | 5.16.5 |
| linux/linux_kernel | all versions | — |