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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-24T15:23:11.510Z
- Modified: 2026-08-13T12:00:31.287Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9dd2ad5e92b962d1349a7541d167e8e214e49f95 before 3586924625559e6f9876d726c80ff0a75f0d5849; from 9dd2ad5e92b962d1349a7541d167e8e214e49f95 before 17fe2381f967d353183f374a1c0181a6d194158c; from 9dd2ad5e92b962d1349a7541d167e8e214e49f95 before e3adf69f8eb121a9128c2b0029efd050d3649153; 6.16 (not affected: before 6.16; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.16 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849> (patch)
- <https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c> (mitigation, patch)
- <https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153> (patch)

## Sources

- CVE List: [CVE-2026-64228](https://www.cve.org/CVERecord?id=CVE-2026-64228), CVE Terms of Use, modified 2026-07-24
- NVD: [CVE-2026-64228](https://nvd.nist.gov/vuln/detail/CVE-2026-64228), Public domain, modified 2026-08-13

---

Page: https://cve.day/CVE-2026-64228 · Whole record: https://cve.day/CVE-2026-64228.json · Rebuilt by cve.day 2026-11-25T22:59:30.008Z
