CVE-2022-48754
Beschrijving NL
In de Linux-kernel is de volgende kwetsbaarheid verholpen:
phylib: mogelijk gebruik-na-vrijgave verhelpen
Commit bafbdd527d56 ("phylib: Ondersteuning voor GPIO voor het resetten van apparaten toevoegen") heeft een aanroep toegevoegd
naar phy_device_reset(phydev) na de put_device()-aanroep in phy_detach().
De opmerking vóór de put_device()-aanroep geeft aan dat de phydev mogelijk verdwijnt
verdwijnen met put_device().
Los mogelijk gebruik-na-vrijgave op door phy_device_reset() aan te roepen vóór
put_device().
Origineel (Engels) tonen
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().