{"api_version":"1","generated_at":"2026-07-25T01:15:36+00:00","cve":"CVE-2026-64228","urls":{"html":"https://cve.report/CVE-2026-64228","api":"https://cve.report/api/cve/CVE-2026-64228.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-64228","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-64228"},"summary":{"title":"net: ethtool: phy: avoid NULL deref when PHY driver is unbound","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-07-24 16:16:51","updated_at":"2026-07-24 16:16:51"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c","name":"https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153","name":"https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849","name":"https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-64228","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64228","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dd2ad5e92b962d1349a7541d167e8e214e49f95 3586924625559e6f9876d726c80ff0a75f0d5849 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dd2ad5e92b962d1349a7541d167e8e214e49f95 17fe2381f967d353183f374a1c0181a6d194158c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9dd2ad5e92b962d1349a7541d167e8e214e49f95 e3adf69f8eb121a9128c2b0029efd050d3649153 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.34 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0.11 7.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/ethtool/phy.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3586924625559e6f9876d726c80ff0a75f0d5849","status":"affected","version":"9dd2ad5e92b962d1349a7541d167e8e214e49f95","versionType":"git"},{"lessThan":"17fe2381f967d353183f374a1c0181a6d194158c","status":"affected","version":"9dd2ad5e92b962d1349a7541d167e8e214e49f95","versionType":"git"},{"lessThan":"e3adf69f8eb121a9128c2b0029efd050d3649153","status":"affected","version":"9dd2ad5e92b962d1349a7541d167e8e214e49f95","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ethtool/phy.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.16"},{"lessThan":"6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.34","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.11","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.34","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0.11","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1","versionStartIncluding":"6.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-07-24T15:23:11.510Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3586924625559e6f9876d726c80ff0a75f0d5849"},{"url":"https://git.kernel.org/stable/c/17fe2381f967d353183f374a1c0181a6d194158c"},{"url":"https://git.kernel.org/stable/c/e3adf69f8eb121a9128c2b0029efd050d3649153"}],"title":"net: ethtool: phy: avoid NULL deref when PHY driver is unbound","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-64228","datePublished":"2026-07-24T15:23:11.510Z","dateReserved":"2026-07-19T15:36:31.771Z","dateUpdated":"2026-07-24T15:23:11.510Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-24 16:16:51","lastModifiedDate":"2026-07-24 16:16:51","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"64228","Ordinal":"1","Title":"net: ethtool: phy: avoid NULL deref when PHY driver is unbound","CVE":"CVE-2026-64228","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"64228","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"net: ethtool: phy: avoid NULL deref when PHY driver is unbound"}]}}}