CVE-2023-53019 net: mdio: validate parameter addr in mdiobus_get_phy()

High 7.8 Published Updated

An attacker can trigger an out-of-bounds memory access in the Linux kernel MDIO subsystem, potentially causing a crash or leaking sensitive data.

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-2023-53019?

CVE-2023-53019 is a high-severity memory corruption vulnerability in Linux kernel, published on 27 Mar 2025. 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: mdio: validate parameter addr in mdiobus_get_phy()

The caller may pass any value as addr, what may result in an out-of-bounds access to array mdio_map. One existing case is stmmac_init_phy() that may pass -1 as addr. Therefore validate addr before using it.

Weakness: CWE-129

Which versions are affected by CVE-2023-53019?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53019?

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-2023-53019 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53019, DEBIAN-CVE-2023-53019, GHSA-4x8g-3q83-5465, UBUNTU-CVE-2023-53019.

Is CVE-2023-53019 in your software?

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

Check your SBOMs for free