CVE-2024-50188: net: phy: dp83869: fix memory corruption when enabling fiber
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 linkmodesetbit() 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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Configuration
When configuring the fiber port, fix the DP83869 PHY driver so linkmode_set_bit() is called with the bit number (10) rather than the bit mask (1 << 10); per the provided description, the incorrect line can be removed entirely since the advertising flags are updated from 'supported' at the end of the function.
Linux kernel - dp83869 PHY driver (net: phy: dp83869) linkmode_set_bit() usage for fiber port = Use bit number 10 instead of bit mask (1 << 10) OR remove the incorrect line entirely because the advertising flags are updated later
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50188?
CVE-2024-50188 has not been assigned a CVSS score, but it relates to memory corruption, indicating a potential high severity based on impact.
How do I fix CVE-2024-50188?
To fix CVE-2024-50188, update your Linux kernel to a version that is not affected by this vulnerability, such as 6.1.123-1 or higher.
Which versions of the Linux kernel are affected by CVE-2024-50188?
CVE-2024-50188 affects Linux kernel versions between 5.10.0 and 6.12-rc2.
What kind of vulnerability is CVE-2024-50188?
CVE-2024-50188 is a memory corruption vulnerability in the DP83869 PHY driver when configuring the fiber port.
Is there a workaround for CVE-2024-50188?
There is no documented workaround for CVE-2024-50188; updating the kernel is the recommended mitigation.