CVE-2024-47724: wifi: ath11k: use work queue to process beacon tx event
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: use work queue to process beacon tx event
Commit 3a415daa3e8b ("wifi: ath11k: add P2P IE in beacon template") from Feb 28, 2024 (linux-next), leads to the following Smatch static checker warning:
drivers/net/wireless/ath/ath11k/wmi.c:1742 ath11kwmip2pgobcnie() warn: sleeping in atomic context
The reason is that ath11kbcntxstatusevent() will directly call might sleep function ath11kwmicmdsend() during RCU read-side critical sections. The call trace is like:
ath11kbcntxstatusevent() -> rcureadlock() -> ath11kmacbcntxevent() -> ath11kmacsetupbcntmpl() …… -> ath11kwmibcntmpl() -> ath11kwmicmdsend() -> rcureadunlock()
Commit 886433a98425 ("ath11k: add support for BSS color change") added the ath11kmacbcntxevent(), commit 01e782c89108 ("ath11k: fix warning of RCU usage for ath11kmacgetarvifbyvdevid()") added the RCU lock to avoid warning but also introduced this BUG.
Use work queue to avoid directly calling ath11kmacbcntxevent() during RCU critical sections. No need to worry about the deletion of vif because cancelworksync() will drop the work if it doesn't start or block vif deletion until the running work is done.
Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPLV1V2SILICONZLITE-3.6510.30
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1 - Upgrade
Upgrade
Linux kernel (ath11k)to a version that resolves this vulnerability.Patch 3a415daa3e8b - Upgrade
Upgrade
Linux kernel (ath11k)to a version that resolves this vulnerability.Patch 886433a98425 - Upgrade
Upgrade
Linux kernel (ath11k)to a version that resolves this vulnerability.Patch 01e782c89108
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47724?
The severity of CVE-2024-47724 is currently assessed as moderate due to potential impacts on the functioning of wireless communications.
How do I fix CVE-2024-47724?
To fix CVE-2024-47724, users should update their Linux kernel to a version beyond 6.11.2 or beyond 6.10.13.
Which systems are affected by CVE-2024-47724?
CVE-2024-47724 affects Linux kernel versions between 6.10 and 6.10.13, as well as versions between 6.11 and 6.11.2.
What type of vulnerability is CVE-2024-47724?
CVE-2024-47724 is a vulnerability related to the wireless subsystem in the Linux kernel, specifically involving beacon transmission events.
Is there a public exploit available for CVE-2024-47724?
Currently, there are no known public exploits for CVE-2024-47724.