CVE-2023-52667 net/mlx5e: fix a potential double-free in fs_any_create_groups

High 7.8 Published Updated

A double-free vulnerability in the Linux kernel's mlx5e network 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-2023-52667?

CVE-2023-52667 is a high-severity use after free vulnerability in Linux kernel, 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 potential double-free in fs_any_create_groups

When kcalloc() for ft->g succeeds but kvzalloc() for in fails, fs_any_create_groups() will free ft->g. However, its caller fs_any_create_table() will free ft->g again through calling mlx5e_destroy_flow_table(), which will lead to a double-free. Fix this by setting ft->g to NULL in fs_any_create_groups().

Weakness: CWE-415

Which versions are affected by CVE-2023-52667?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52667?

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

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52667, DEBIAN-CVE-2023-52667, GHSA-7xf4-2cch-q53v, UBUNTU-CVE-2023-52667.

Is CVE-2023-52667 in your software?

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

Check your SBOMs for free