net: ftgmac100: fix potential NULL pointer access in ftgmac100_phy_disconnect
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ftgmac100: fix potential NULL pointer access in ftgmac100_phy_disconnect
After the call to phy_disconnect() netdev->phydev is reset to NULL. So fixed_phy_unregister() would be called with a NULL pointer as argument. Therefore cache the phy_device before this call.
From the CVE record · Linux
The Linux kernel’s ftgmac100 driver can pass a NULL pointer to fixed_phy_unregister() after phy_disconnect() clears netdev->phydev. The description does not specify how this condition can be triggered, whether authentication or user interaction is needed, or its resulting impact.
Engineers running Linux kernels with the ftgmac100 driver should check their deployments; affected versions are not specified.