MEDIUM 5.5

CVE-2026-53231: Linux Kernel Genphy SFP Deadlock Vulnerability

A deadlock vulnerability exists in the Linux kernel's network PHY (physical layer) driver code. When the kernel uses its generic PHY driver (genphy) with SFP cage modules (small form-factor pluggable optical transceivers), an initialization sequence can cause the system to hang. The issue stems from improper handling of SFP bus setup under the RTNL (Real-Time NetLink) lock, which genphy acquires during probing but other PHY drivers do not. Systems attempting to initialize SFP cages through genphy will experience a complete deadlock, rendering network functionality unavailable until the system is restarted.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses (CWE)
CWE-667
Affected products
8 configuration(s)
Published / Modified
2026-06-25 / 2026-07-02

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: net: phy: don't try to setup PHY-driven SFP cages when using genphy We don't have support for PHY-driver SFP cages with the genphy code. On top of that, it was found by sashiko that running sfp_bus_add_upstream() for genphy deadlocks, as for genphy the PHY probing runs under RTNL, which isn't the case for non-genphy drivers. This problem was reproduced, and does lead to a deadlock on RTNL. Before the blamed commit, the phy_sfp_probe() call was made by individual PHY drivers, so there was no way to get to the SFP probing path when using genphy. Let's therefore only run phy_sfp_probe when not using genphy.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability involves a resource locking issue in the Linux kernel's net/phy subsystem. Specifically, the phy_sfp_probe() function—which sets up PHY-driven SFP cages—was being unconditionally called during PHY initialization, including for the generic PHY driver (genphy). However, genphy's probe path runs under the RTNL mutex lock, while the SFP bus addition (sfp_bus_add_upstream()) expects to acquire this lock independently. This creates a classical deadlock scenario: genphy holds RTNL while attempting to add an SFP upstream endpoint, which tries to acquire the same lock. The vulnerability is classified under CWE-667 (Improper Locking), and the fix is to conditionally skip SFP probe initialization when genphy is in use, since genphy does not support PHY-driven SFP cages anyway.

Business impact

System availability is directly threatened. Any Linux system using genphy with SFP cage hardware will experience a hard hang during network interface initialization, causing complete loss of network connectivity. This affects servers, network appliances, and edge devices relying on optical SFP connectivity. Recovery requires manual intervention (hard reboot or power cycle). For data center environments or critical infrastructure, this can lead to unplanned downtime. The issue is triggered during normal system boot or network device setup, making it a denial-of-service vector that does not require user interaction or privilege escalation beyond what is already needed to trigger PHY probing.

Affected systems

The Linux kernel across multiple stable and development versions is affected. Any system running an affected kernel version and using a combination of (1) genphy as the active PHY driver and (2) SFP cage hardware will be impacted. This includes embedded systems, switches, and server platforms with optical transceiver modules managed through Linux PHY subsystem. The vulnerability does not affect systems using non-genphy PHY drivers (such as vendor-specific PHY drivers), which manage SFP cages through different code paths.

Exploitability

This is not a remotely exploitable vulnerability. Exploitation requires local access and the ability to trigger PHY driver probing—typically through system boot, network interface hotplug, or explicit driver reloading by a user with sufficient privileges. The CVSS score of 5.5 (MEDIUM) reflects the local attack vector, low complexity, and requirement for local privileges, balanced against the guaranteed availability impact. There is no authentication bypass, privilege escalation, or data exfiltration component; the attack surface is confined to local denial-of-service via system hang.

Remediation

Apply a kernel patch that conditionally skips phy_sfp_probe() when genphy is the active PHY driver. The fix is surgical: add a driver type check before invoking SFP probe setup to prevent the deadlock condition. Verify the patch version against your Linux distribution's kernel advisories, as vendor-specific backport versions may vary. Systems can be patched at the next scheduled maintenance window; no hot-patch mechanism exists for this kernel-level lock issue.

Patch guidance

Obtain the patched kernel version from your Linux distribution's security advisory or kernel.org. The fix has been integrated into the upstream Linux kernel; check your vendor's advisory timeline for backport availability to your currently-supported kernel branch (e.g., 6.1.x, 6.6.x stable series). Test the patched kernel in a non-production environment first, particularly if you have SFP hardware in your testbed. Reboot systems to activate the new kernel; standard change management procedures apply. No kernel parameters or configuration changes are required post-patch.

Detection guidance

Monitor system logs for RTNL lock contention warnings or hung task warnings during PHY driver initialization, particularly around network interface bring-up or hotplug events. Watch dmesg and kernel logs for messages indicating genphy probing with SFP device presence. If a system hangs during boot on network initialization and uses genphy with SFP cages, this vulnerability is the likely culprit. Proactive detection: audit your hardware and driver configurations to identify systems running genphy with SFP modules; these systems should be prioritized for patching. Network monitoring will show loss of connectivity correlating with the hang.

Why prioritize this

This vulnerability merits high priority for affected systems because it causes guaranteed unavailability (not just potential availability risk). Any system matching the affected hardware/driver profile will experience a hard hang, making it a production-stopping issue. However, the local attack vector and specific hardware requirement (genphy + SFP cages) narrow the scope. Prioritize patching based on: (1) Presence of genphy PHY driver with SFP hardware in production, (2) System criticality and downtime cost, (3) Your planned reboot window. Systems without SFP modules can be deprioritized.

Risk score, explained

The CVSS 3.1 score of 5.5 (MEDIUM) is appropriate given the following: Attack Vector is Local (AV:L), requiring system access; Attack Complexity is Low (AC:L), as the deadlock triggers reliably on affected systems; Privileges Required is Low (PR:L), as standard user-level actions can trigger PHY probing; User Interaction is None (UI:N); Scope is Unchanged (S:U); and Availability Impact is High (A:H), as the system becomes unresponsive. Confidentiality and Integrity are unaffected (C:N, I:N). The score reflects a serious local denial-of-service that stops system function entirely but does not compromise data or enable privilege escalation.

Frequently asked questions

Do I need to patch if I'm not using SFP hardware?

No. The deadlock only manifests when genphy is paired with SFP cage hardware. If your systems use different PHY drivers or lack optical transceivers, you are not affected. Verify your hardware and driver configuration to confirm.

Can this vulnerability be exploited remotely?

No. This is a local vulnerability requiring physical or administrative access to trigger PHY driver initialization (e.g., during boot or via network interface hotplug). Remote network-based exploitation is not possible.

Will the patch affect my SFP cages functionality?

No. Genphy does not support PHY-driven SFP cages anyway (that support is in vendor-specific PHY drivers). The patch simply prevents an attempt to set up unsupported hardware, eliminating the deadlock without affecting functionality for systems that can actually use SFP cages.

How do I know if I'm using genphy?

Check your kernel logs during boot or examine the output of `ethtool -i <interface>` for your network devices. If the driver reports 'genphy' or 'Generic PHY driver', you may be affected if SFP modules are present. Consult your device tree or bootloader configuration if unclear.

This analysis is based on the CVE description and CVSS vector provided. Specific patch versions and vendor advisory timelines should be verified against your Linux distribution's official security bulletins. Testing in a non-production environment is strongly recommended before applying patches to production systems. The vulnerability requires both genphy as the PHY driver and SFP hardware; systems not matching this configuration are unaffected. No exploits or proof-of-concept code are disclosed herein. Consult your vendor's advisory for precise affected versions and remediation steps specific to your deployment. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).