CVE-2021-47194·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: cfg80211: call cfg80211_stop_ap when switch from P2P_GO type If the userspace tools switch from NL80211_IFTYPE_P2P_GO to NL80211_IFTYPE_ADHOC via send_msg(NL80211_CMD_SET_INTERFACE), it does not call the cleanup cfg80211_stop_ap(), this leads to the initialization of in-use data. For example, this path re-init the sdata->assigned_chanctx_list while it is still an element of assigned_vifs list, and makes that linked list corrupt.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.15.5
- Published
- 2024-04-10
Affected versions
From: 5.11.0
Until: 5.15.5
Fixed in: 5.15.5
How to fix this CVE
Update your Linux kernel to version 5.15.5 or later to patch the P2P_GO interface mode switching vulnerability. This fix ensures that the cfg80211_stop_ap() cleanup function is properly invoked when transitioning from P2P_GO to ADHOC mode, preventing linked list corruption and data structure reinitialization issues. Reboot your system after applying the kernel update to activate the fix.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check kernel version: uname -r — verify the version is 5.15.5 or later
- Identify 802.11 wireless devices: ip link show type wlan — confirm if WiFi/P2P devices are present on the system
- Search system logs for P2P_GO mode transitions: grep -i 'P2P_GO\|NL80211_CMD_SET_INTERFACE' /var/log/kernel.log /var/log/syslog 2>/dev/null — look for interface type change events
- Verify patch installation: grep -i 'cfg80211_stop_ap' /proc/config.gz 2>/dev/null || zcat /boot/config-$(uname -r).gz | grep -i cfg80211 — confirm the patched code is present
FAQ
What is CVE-2021-47194?
CVE-2021-47194 is a kernel vulnerability in the cfg80211 wireless configuration module where switching a WiFi interface from P2P_GO (P2P Group Owner) mode to ADHOC mode fails to execute the required cleanup routine, resulting in memory corruption and linked list corruption in kernel data structures.
Is CVE-2021-47194 being actively exploited?
No, CVE-2021-47194 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available, though the vulnerability requires local access to trigger.
What versions of Kernel are affected by CVE-2021-47194?
Linux kernel versions 5.11.0 through 5.15.4 are affected; kernel 5.15.5 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2021-47194?
Run 'uname -r' and compare your kernel version against the vulnerable range (5.11.0–5.15.4); if your version falls within this range and you have WiFi hardware capable of P2P_GO mode, your system is vulnerable.
Does Defensia detect CVE-2021-47194?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47194 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0738cdb636c21ab552eaecf905efa4a6070e3ebc
- https://git.kernel.org/stable/c/4e458abbb4a523f1413bfe15c079cf4e24c15b21
- https://git.kernel.org/stable/c/52affc201fc22a1ab9a59ef0ed641a9adfcb8d13
- https://git.kernel.org/stable/c/563fbefed46ae4c1f70cffb8eb54c02df480b2c2
- https://git.kernel.org/stable/c/5a9b671c8d74a3e1b999e7a0c7f366079bcc93dd
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47194. Free for 1 server.
Get started free