CVE-2026-64228

net: ethtool: phy: avoid NULL deref when PHY driver is unbound

Published Jul 24, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The kernel contains a null pointer dereference in the ethtool PHY handling code when a PHY driver is unbound via sysfs. After the unbind operation, the driver pointer becomes null while the PHY device remains attached to the network device. When an ETHTOOL_MSG_PHY_GET request is processed, the code attempts to duplicate the driver name from the null pointer, causing a kernel oops. Based on the description, it can be inferred that any user with write permissions to the unbind file could potentially trigger the vulnerability leading to a crash. This is a classic CWE‑476 null pointer dereference that results in a system crash for any user able to trigger the unbind operation.

Affected Systems

All Linux kernel variants that expose the ethtool PHY handling code to sysfs and allow a driver to be unbound through the /sys/bus/mdio_bus/drivers/<phy_drv>/unbind interface are potentially affected. The patch commit identifiers are listed in the references, but no specific kernel version is named in the data, so any kernel still containing the described bug and enabling the unbind operation may be vulnerable.

Risk and Exploitability

The CVSS score of 5.5 points to a medium severity vulnerability. The EPSS score of <1% indicates a very low likelihood of exploitation at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local privileged access to write to the unbind file in sysfs; no remote or local privilege escalation vector is described. The impact is a denial of service due to a kernel crash, but overall risk is low because of the low exploit probability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel that contains the ethtool PHY NULL dereference fix.
  • Restrict write permissions on /sys/bus/mdio_bus/drivers/<phy_drv>/unbind to privileged users, or enforce an ACL so only authorized users can perform the unbind operation.
  • Configure auditd or a similar logging mechanism to record any attempts to write to the unbind file, enabling detection of potential misuse.

Generated by OpenCVE AI on August 5, 2026 at 00:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
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.
Title net: ethtool: phy: avoid NULL deref when PHY driver is unbound
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jul 24, 2026, 3:23 PM
Reserved
Jul 19, 2026, 3:36 PM
Status
Analyzed
Published
Jul 24, 2026, 4:16 PM
Modified
Aug 13, 2026, 12:00 PM
Severity
Low
Public date
Jul 24, 2026, 12:00 AM