Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98563 Overview
CVE-2026-98563 is a Linux kernel vulnerability in the net/phylink subsystem. The flaw lives in phylink_bringup_phy(), which records the PHY pointer in pl->phydev before executing its final fallible step. On a MAC whose phylink operations implement Energy-Efficient Ethernet Low Power Idle (LPI), phy_eee_rx_clock_stop() can fail with a Media Independent Interface (MDIO) error. Callers unwind through phy_detach(), which does not clear pl->phydev, leaving a dangling pointer to a detached or freed phy_device.
Critical Impact
A failed PHY bringup leaves pl->phydev pointing at a detached or freed PHY, enabling use-after-free reads in phylink_resolve() and ethtool helpers, and double-detach on disconnect.
Affected Products
- Linux kernel versions containing the phylink bringup logic prior to commits 4e7a4af, 671a686, and a940003
- Systems using Distributed Switch Architecture (DSA) ports with deferred PHY driver probing
- Systems using Small Form-factor Pluggable (SFP) modules via sfp_sm_probe_phy() with MACs implementing LPI operations
Discovery Timeline
- 2026-10-18 - CVE-2026-98563 published to the National Vulnerability Database
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98563
Vulnerability Analysis
The vulnerability is a use-after-free [CWE-416] and resource management error in the Linux kernel networking stack. phylink_bringup_phy() publishes the PHY pointer into pl->phydev before completing phy_eee_rx_clock_stop(), which can return a real MDIO transaction error on MACs implementing LPI. When this final step fails, the error unwind calls phy_detach(), which has no knowledge of pl->phydev and does not clear it.
The consequences diverge by caller. phylink_connect_phy() reaches the attach through phylink_attach_phy(), which refuses attachment while pl->phydev is non-NULL. A transient MDIO error becomes a permanent -EBUSY state. The SFP path is more severe: sfp_sm_probe_phy() responds to the failure by calling phy_device_remove() and phy_device_free(), and only assigns sfp->mod_phy past the error return. Nothing clears pl->phydev, so it is left referencing a freed phy_device that phylink_resolve() and the ethtool helpers continue reading.
phylink_fwnode_phy_connect() lacks the attach-time check, so a subsequent connect silently overwrites the stale pointer and masks the issue. A disconnect does not: phylink_disconnect_phy() forwards the stale pointer to phy_disconnect(), triggering a second phy_detach() on a PHY already released, dropping references prematurely.
Root Cause
The root cause is incorrect ordering between state publication and the final fallible operation. The PHY pointer is stored into pl->phydev before phy_eee_rx_clock_stop() completes successfully, so unwind paths cannot roll the state back.
Attack Vector
The condition is reachable through DSA port probing scenarios where a PHY driver arrives after the switch has probed, triggering repeated connect attempts across a failed bringup window. Reaching the condition requires local control over device probing or hot-plug events such as SFP module insertion with MDIO failures. The vulnerability is not remotely triggerable over the network.
The vulnerability mechanism is described in prose only. See the upstream fix commits linked in the references for exact source-level changes.
Detection Methods for CVE-2026-98563
Indicators of Compromise
- Kernel oops or KASAN use-after-free reports referencing phylink_resolve, phy_detach, or phy_disconnect call paths
- Repeated -EBUSY returns from phylink_connect_phy() after a transient MDIO error on an LPI-capable MAC
- Kernel panics during ethtool queries against interfaces that previously experienced a failed PHY bringup
Detection Strategies
- Enable Kernel Address Sanitizer (KASAN) on test kernels to surface use-after-free reads of pl->phydev during PHY bringup failures
- Audit dmesg for phy_eee_rx_clock_stop failures correlated with subsequent phylink or ethtool crashes
- Monitor for repeated DSA port connect retries that follow a failed PHY attach
Monitoring Recommendations
- Collect kernel crash dumps and dmesg output from systems using SFP modules or DSA switches with LPI-capable MACs
- Track kernel version inventory to identify hosts missing the upstream phylink fix commits
- Alert on recurring MDIO errors reported through the networking subsystem
How to Mitigate CVE-2026-98563
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced below to all affected systems
- Prioritize patching on hosts running DSA switches, SFP cages, or MACs implementing Energy-Efficient Ethernet LPI
- Validate kernel builds include the fix before deploying to systems with hot-pluggable networking hardware
Patch Information
The fix publishes pl->phydev only after the last fallible step completes. Nothing between the former and new publication point reads pl->phydev, and the subsequent registration cannot fail because phy_request_interrupt() falls back to polling. The PHY-side state ordering is preserved. The fix is distributed across three stable kernel commits: Kernel Git Commit 4e7a4af, Kernel Git Commit 671a686, and Kernel Git Commit a940003.
Workarounds
- Avoid deferred PHY driver loading on DSA ports where retrying a failed connect is possible
- Disable Energy-Efficient Ethernet on affected MACs where configuration permits, preventing phy_eee_rx_clock_stop() from being exercised
- Restrict unprivileged access to SFP cage insertion and MDIO configuration until kernels are patched
# Check running kernel version to assess exposure
uname -r
# Disable Energy-Efficient Ethernet on an interface as a temporary workaround
ethtool --set-eee eth0 eee off
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

