net: phy: dp83869: fix memory corruption when enabling fiber
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a29de52ba2a156873505d8b8cef44e69925b8114 · < a842e443ca8184f2dc82ab307b43a8b38defd6a5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: phy: dp83869: fix memory corruption when enabling fiber
When configuring the fiber port, the DP83869 PHY driver incorrectly calls linkmode_set_bit() with a bit mask (1 << 10) rather than a bit number (10). This corrupts some other memory location -- in case of arm64 the priv pointer in the same structure.
Since the advertising flags are updated from supported at the end of the function the incorrect line isn't needed at all and can be removed.
From the CVE record · Linux
The Linux kernel’s DP83869 PHY driver can corrupt memory when configuring a fiber port because it passes a bit mask instead of a bit number to linkmode_set_bit(). The input does not describe how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels that use the DP83869 PHY driver should check whether their kernel is affected; affected versions are not specified.