CVE-2026-64228: net: ethtool: phy: avoid NULL deref when PHY driver is unbound

Published Jul 24, 2026
·
Updated

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 phydevice is still attached to its netdevice, namely after the PHY driver is unbound via sysfs:

echo <mdioid> > /sys/bus/mdiobus/drivers/<phydrv>/unbind

phyremove() clears phydev->drv but doesn't call phydetach(), so the phydevice stays in the link topology xarray and ethnlreqgetphydev() still hands it back. ETHTOOLMSGPHYGET then oopses on:

repdata->drvname = kstrdup(phydev->drv->name, GFPKERNEL);

drvname is already treated as optional by phyreplysize(), phyfillreply() and phycleanupdata(), so just skip the allocation when there is no driver bound.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel>=6.16<6.18.34
Linux Linux kernel>=6.19<7.0.11
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3

Event History

Jul 24, 2026
CVE Published
via MITRE·03:23 PM
Data Sourced
via MITRE·03:23 PM
Description
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What conditions are required to trigger the crash?

Systems are exposed when a PHY device remains attached to a network device after its PHY driver has been manually unbound through the MDIO driver's sysfs unbind interface. The issue is local-only and requires an attacker or user with sufficient local privileges to unbind the PHY driver and issue an ETHTOOL_MSG_PHY_GET request.

2

How can I determine whether a system is in the vulnerable state?

The affected state can be identified by checking whether a PHY driver has been unbound via /sys/bus/mdio_bus/drivers/<phy_drv>/unbind while the corresponding PHY device remains attached to its network device. In that state, phydev->drv is NULL, and an ETHTOOL_MSG_PHY_GET request can cause an oops.

3

What can be done if the fix cannot be applied immediately?

Avoid unbinding PHY drivers through the sysfs MDIO unbind interface while the PHY device remains attached to a network device. Restrict local access capable of modifying sysfs driver bindings or issuing the relevant ethtool netlink request until the fix is deployed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203