What’s Vulnerable › Vulnerabilities

CVE-2022-48754: phylib: fix potential use-after-free

Description

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().

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.228, 5.10.96, 5.15.19, 5.16.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-48754 or the next vulnerability affects your stack