CVE-2022-49934 wifi: mac80211: Fix UAF in ieee80211_scan_rx()

High 8.8 Published Updated

A use-after-free vulnerability in the Linux kernel's mac80211 Wi-Fi subsystem allows attackers to potentially execute code or escalate privileges via crafted scan responses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49934?

CVE-2022-49934 is a high-severity use after free vulnerability in Linux kernel, published on 18 Jun 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:

wifi: mac80211: Fix UAF in ieee80211_scan_rx()

ieee80211_scan_rx() tries to access scan_req->flags after a null check, but a UAF is observed when the scan is completed and __ieee80211_scan_completed() executes, which then calls cfg80211_scan_done() leading to the freeing of scan_req.

Since scan_req is rcu_dereference()'d, prevent the racing in __ieee80211_scan_completed() by ensuring that from mac80211's POV it is no longer accessed from an RCU read critical section before we call cfg80211_scan_done().

Weakness: CWE-416

Which versions are affected by CVE-2022-49934?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49934?

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-2022-49934 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49934, GHSA-w75g-vp3j-wh29, UBUNTU-CVE-2022-49934.

Is CVE-2022-49934 in your software?

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

Check your SBOMs for free