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 phydevicereset(phydev) after the putdevice() call in phydetach().
The comment before the putdevice() call says that the phydev might go away with putdevice().
Fix potential use-after-free by calling phydevicereset() before put_device().