CVE-2024-57801 net/mlx5e: Skip restore TC rules for vport rep without loaded flag

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel's mlx5e driver allows attackers to cause denial of service or potentially execute code during driver unload.

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-57801?

CVE-2024-57801 is a high-severity use after free vulnerability in Linux kernel, published on 15 Jan 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/mlx5e: Skip restore TC rules for vport rep without loaded flag

During driver unload, unregister_netdev is called after unloading vport rep. So, the mlx5e_rep_priv is already freed while trying to get rpriv->netdev, or walk rpriv->tc_ht, which results in use-after-free. So add the checking to make sure access the data of vport rep which is still loaded.

Weakness: CWE-416

Which versions are affected by CVE-2024-57801?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-57801?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-57801 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-55832, BELL-CVE-2024-57801, DEBIAN-CVE-2024-57801, GHSA-7q6q-ppp8-9gr5, UBUNTU-CVE-2024-57801.

Is CVE-2024-57801 in your software?

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

Check your SBOMs for free