CVE-2024-50235 wifi: cfg80211: clear wdev->cqm_config pointer on free

High 7.8 Published Updated

A double-free vulnerability in the Linux kernel Wi-Fi subsystem allows attackers to cause a 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-50235?

CVE-2024-50235 is a high-severity use after free vulnerability in Linux kernel, published on 9 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:

wifi: cfg80211: clear wdev->cqm_config pointer on free

When we free wdev->cqm_config when unregistering, we also need to clear out the pointer since the same wdev/netdev may get re-registered in another network namespace, then destroyed later, running this code again, which results in a double-free.

Weakness: CWE-415

Which versions are affected by CVE-2024-50235?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50235?

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

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-53133, BELL-CVE-2024-50235, DEBIAN-CVE-2024-50235, GHSA-88gp-ph45-wpx4, UBUNTU-CVE-2024-50235.

Is CVE-2024-50235 in your software?

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

Check your SBOMs for free