CVE-2024-35835 net/mlx5e: fix a double-free in arfs_create_groups

High 7.8 Published Updated

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

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

CVE-2024-35835 is a high-severity use after free vulnerability in Debian Debian Linux, published on 17 May 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/mlx5e: fix a double-free in arfs_create_groups

When `in` allocated by kvzalloc fails, arfs_create_groups will free ft->g and return an error. However, arfs_create_table, the only caller of arfs_create_groups, will hold this error and call to mlx5e_destroy_flow_table, in which the ft->g will be freed again.

Weakness: CWE-415

Which versions are affected by CVE-2024-35835?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2024-35835?

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-35835 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2024-35835, DEBIAN-CVE-2024-35835, GHSA-8wgh-w2f4-v692, UBUNTU-CVE-2024-35835.

Is CVE-2024-35835 in your software?

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

Check your SBOMs for free