CVE-2026-64228
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
24/07/2026
Last modified:
24/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: ethtool: phy: avoid NULL deref when PHY driver is unbound<br />
<br />
phydev->drv can become NULL while the phy_device is still attached to<br />
its net_device, namely after the PHY driver is unbound via sysfs:<br />
<br />
echo > /sys/bus/mdio_bus/drivers//unbind<br />
<br />
phy_remove() clears phydev->drv but doesn&#39;t call phy_detach(), so the<br />
phy_device stays in the link topology xarray and ethnl_req_get_phydev()<br />
still hands it back. ETHTOOL_MSG_PHY_GET then oopses on:<br />
<br />
rep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL);<br />
<br />
drvname is already treated as optional by phy_reply_size(),<br />
phy_fill_reply() and phy_cleanup_data(), so just skip the allocation<br />
when there is no driver bound.



