Back

HIGH

phylib: fix potential use-after-free

Published Jun 20, 2024

Description

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

Remediation

No remediation recorded yet.

Metrics

Weaknesses (1)

References (11)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Jun 20, 2024
Updated Aug 5, 2026
Reserved Jun 20, 2024
CISA Vulnrichment
Updated Jun 25, 2024
NVD
Status Modified
Modified Aug 4, 2026
Red Hat
Severity Low
Public date Jun 20, 2024