CVE-2026-64228

net: ethtool: phy: avoid NULL deref when PHY driver is unbound

State
Published
Severity
Not scored
Published
Jul 24, 2026
Updated
Jul 24, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: ethtool: phy: avoid NULL deref when PHY driver is unbound

phydev->drv can become NULL while the phy_device is still attached to its net_device, namely after the PHY driver is unbound via sysfs:

echo <mdio_id> > /sys/bus/mdio_bus/drivers/<phy_drv>/unbind

phy_remove() clears phydev->drv but doesn't call phy_detach(), so the phy_device stays in the link topology xarray and ethnl_req_get_phydev() still hands it back. ETHTOOL_MSG_PHY_GET then oopses on:

rep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL);

drvname is already treated as optional by phy_reply_size(), phy_fill_reply() and phy_cleanup_data(), so just skip the allocation when there is no driver bound.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9dd2ad5e92b962d1349a7541d167e8e214e49f95 to before 3586924625559e6f9876d726c80ff0a75f0d5849Affected
  • 9dd2ad5e92b962d1349a7541d167e8e214e49f95 to before 17fe2381f967d353183f374a1c0181a6d194158cAffected
  • 9dd2ad5e92b962d1349a7541d167e8e214e49f95 to before e3adf69f8eb121a9128c2b0029efd050d3649153Affected
LinuxLinux
  • 6.16Affected
  • before 6.16Not affected
  • 6.18.34 through 6.18.*Not affected
  • 7.0.11 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.