net: phy: clean the sfp upstream if phy probing fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 298e54fa810e027f1b0800d789eb862592721f08 · < 48774e87bbaa0056819d4b52301e4692e50e3252| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: phy: clean the sfp upstream if phy probing fails
Sashiko reported that we don't call sfp_bus_del_upstream() in the probe failure path, so let's add it, otherwise the sfp-bus is left with a dangling 'upstream' field, that may be used later on during SFP events.
This issue existed before the generic phylib sfp support, back when drivers were calling phy_sfp_probe themselves.
From the CVE record · Linux
The Linux kernel can leave a dangling SFP-bus upstream reference when PHY probing fails. Later SFP events may use that reference, creating a use-after-free risk. The input does not specify how an attacker could trigger this, or whether access or user interaction is required.
Engineers running Linux kernels with PHY SFP support should check their versions; affected versions are not specified.