All reports
Medium

kernel: wifi: mac80211: fix use-after-free in chanctx code

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-49416

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-22

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix use-after-free in chanctx code In ieee80211_vif_use_reserved_context(), when we have an old context and the new context's replace_state is set to IEEE80211_CHANCTX_REPLACE_NONE, we free the old context in ieee80211_vif_use_reserved_reassign(). Therefore, we cannot check the old_ctx anymore, so we should set it to NULL after this point. However, since the new_ctx replace state is clearly not IEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do anything else in this function and can just return to avoid accessing the freed old_ctx.

A flaw was found in the Linux kernel's mac80211 wireless subsystem. A local attacker can exploit this vulnerability by triggering channel context reassignments that cause the system to access previously freed memory (a use-after-free flaw). Successful exploitation can lead to a Denial of Service (DoS) by crashing the system or result in unauthorized kernel memory disclosure.