CVE-2022-49416·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.3
- Published
- 2025-02-26
Affected versions
From: 5.18
Until: 5.18.3
Fixed in: 5.18.3
How to fix this CVE
Update your Linux kernel to version 5.18.3 or later to address this use-after-free vulnerability in the mac80211 wireless subsystem. The vulnerability occurs when the kernel incorrectly manages memory references during channel context transitions, potentially leading to a crash or privilege escalation. Kernel updates should be applied and followed by a system reboot to ensure the fix is active.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and compare against affected versions 5.18 to 5.18.2
- Step 2: Verify mac80211 wireless driver is loaded by running `lsmod | grep mac80211` — if empty, your system is not vulnerable
- Step 3: Search kernel logs for crash signatures with `dmesg | grep -i 'use.after.free\|use-after-free\|uaf' | grep -i 'chanctx\|mac80211'`
- Step 4: After patching, confirm the new kernel is running with `uname -r` and verify it reports version 5.18.3 or later
FAQ
What is CVE-2022-49416?
CVE-2022-49416 is a use-after-free vulnerability in the Linux kernel's mac80211 wireless driver where a freed channel context object is accessed after deallocation during certain context replacement scenarios, potentially allowing local privilege escalation.
Is CVE-2022-49416 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploit code is available, though it remains a high-severity issue requiring timely patching.
What versions of Kernel are affected by CVE-2022-49416?
Linux kernel versions 5.18 through 5.18.2 are vulnerable; version 5.18.3 and later contain the fix.
How do I check if my server is vulnerable to CVE-2022-49416?
Run `uname -r` to display your kernel version and confirm it falls within 5.18.0 to 5.18.2; additionally verify mac80211 driver is present with `lsmod | grep mac80211`.
Does Defensia detect CVE-2022-49416?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2022-49416 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/265bec4779a38b65e86a25120370f200822dfa76
- https://git.kernel.org/stable/c/2965c4cdf7ad9ce0796fac5e57debb9519ea721e
- https://git.kernel.org/stable/c/4ba81e794f0fad6234f644c2da1ae14d5b95e1c4
- https://git.kernel.org/stable/c/4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c
- https://git.kernel.org/stable/c/6118bbdf69f4718b02d26bbcf2e497eb66004331
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49416. Free for 1 server.
Get started free