Skip to contentSkip to conversation

CVE-2026-53231: net: phy: don't try to setup PHY-driven SFP cages when using genphy

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-53231 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.0 with commit bad869b5e41a08424ff130fd6bb41b854be70095 and fixed in 7.0.13 with commit ef8d739eee6f85303cbecebc01eb72f063de74e0
	Issue introduced in 7.0 with commit bad869b5e41a08424ff130fd6bb41b854be70095 and fixed in 7.1 with commit 5a0082ec20a05ef2378410323a5089a8f1786f4a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53231

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/phy/phy_device.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ef8d739eee6f85303cbecebc01eb72f063de74e0
	https://git.kernel.org/stable/c/5a0082ec20a05ef2378410323a5089a8f1786f4a