CVE-2024-50188 net: phy: dp83869: fix memory corruption when enabling fiber

High 7.8 Published Updated

A memory corruption flaw in the Linux kernel DP83869 PHY driver allows attackers to corrupt memory and potentially execute code or escalate privileges when fiber is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-50188?

CVE-2024-50188 is a high-severity memory corruption vulnerability in Linux kernel, published on 8 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2024-50188?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50188?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-50188 being exploited?

There is no known exploitation of CVE-2024-50188 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-53729, BELL-CVE-2024-50188, DEBIAN-CVE-2024-50188, GHSA-8hmj-4h9r-668v, UBUNTU-CVE-2024-50188.

Is CVE-2024-50188 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free