{"id":"CVE-2026-64228","aliases":["CVE-2026-64228"],"related":[],"kind":"vulnerability","state":"published","title":"net: ethtool: phy: avoid NULL deref when PHY driver is unbound","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethtool: phy: avoid NULL deref when PHY driver is unbound\n\nphydev->drv can become NULL while the phy_device is still attached to\nits net_device, namely after the PHY driver is unbound via sysfs:\n\n\techo <mdio_id> > /sys/bus/mdio_bus/drivers/<phy_drv>/unbind\n\nphy_remove() clears phydev->drv but doesn't call phy_detach(), so the\nphy_device stays in the link topology xarray and ethnl_req_get_phydev()\nstill hands it back. ETHTOOL_MSG_PHY_GET then oopses on:\n\n\trep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL);\n\ndrvname is already treated as optional by phy_reply_size(),\nphy_fill_reply() and phy_cleanup_data(), so just skip the allocation\nwhen there is no driver bound.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethtool: phy: avoid NULL deref when PHY driver is unbound\n\nphydev->drv can become NULL while the phy_device is still attached to\nits net_device, namely after the PHY driver is unbound via sysfs:\n\n\techo <mdio_id> > /sys/bus/mdio_bus/drivers/<phy_drv>/unbind\n\nphy_remove() clears phydev->drv but doesn't call phy_detach(), so the\nphy_device stays in the link topology xarray and ethnl_req_get_phydev()\nstill hands it back. ETHTOOL_MSG_PHY_GET then oopses on:\n\n\trep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL);\n\ndrvname is already treated as optional by phy_reply_size(),\nphy_fill_reply() and phy_cleanup_data(), so just skip the allocation\nwhen there is no driver bound.","source":"cvelist"}],"published":"2026-07-24T15:23:11.510Z","modified":"2026-08-13T12:00:31.287Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"9dd2ad5e92b962d1349a7541d167e8e214e49f95","fixed":"3586924625559e6f9876d726c80ff0a75f0d5849","status":"affected"},{"type":"git","introduced":"9dd2ad5e92b962d1349a7541d167e8e214e49f95","fixed":"17fe2381f967d353183f374a1c0181a6d194158c","status":"affected"},{"type":"git","introduced":"9dd2ad5e92b962d1349a7541d167e8e214e49f95","fixed":"e3adf69f8eb121a9128c2b0029efd050d3649153","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.34","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.11","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.16","fixed":"6.18.34"},{"status":"affected","introduced":"6.19","fixed":"7.0.11"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c","tags":["mitigation","patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64228","url":"https://www.cve.org/CVERecord?id=CVE-2026-64228","licence":"CVE Terms of Use","modified":"2026-07-24T15:23:11.510Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64228","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64228","licence":"Public domain","modified":"2026-08-13T12:00:31.287Z"}],"updatedAt":"2026-11-25T22:59:30.008Z","epss":{"score":0.00121,"percentile":0.02076,"date":"2026-12-01T12:00:22.000Z"}}