CVE-2024-38572·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: fix out-of-bound access of qmi_invoke_handler() Currently, there is no terminator entry for ath12k_qmi_msg_handlers hence facing below KASAN warning, ================================================================== BUG: KASAN: global-out-of-bounds in qmi_invoke_handler+0xa4/0x148 Read of size 8 at addr ffffffd00a6428d8 by task kworker/u8:2/1273 CPU: 0 PID: 1273 Comm: kworker/u8:2 Not tainted 5.4.213 #0 Workqueue: qmi_msg_handler qmi_data_ready_work Call trace: dump_backtrace+0x0/0x20c show_stack+0x14/0x1c dump_stack+0xe0/0x138 print_address_description.isra.5+0x30/0x330 __kasan_report+0x16c/0x1bc kasan_report+0xc/0x14 __asan_load8+0xa8/0xb0 qmi_invoke_handler+0xa4/0x148 qmi_handle_message+0x18c/0x1bc qmi_data_ready_work+0x4ec/0x528 process_one_work+0x2c0/0x440 worker_thread+0x324/0x4b8 kthread+0x210/0x228 ret_from_fork+0x10/0x18 The address belongs to the variable: ath12k_mac_mon_status_filter_default+0x4bd8/0xfffffffffffe2300 [ath12k] [...] ================================================================== Add a dummy terminator entry at the end to assist the qmi_invoke_handler() in traversing up to the terminator entry without accessing an out-of-boundary index. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to resolve this out-of-bounds memory access vulnerability in the ath12k WiFi driver. The fix adds a terminator entry to the QMI message handler array, preventing kernel memory corruption during WiFi device communication. Systems running kernel versions 6.9 through 6.9.2 with ath12k wireless adapters should prioritize this update.
sudo dnf upgrade kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` and verify if it falls in the 6.9.0 to 6.9.2 range
- Step 2: Verify if ath12k WiFi driver is loaded with `lsmod | grep ath12k`
- Step 3: Search system logs for KASAN warnings related to qmi_invoke_handler with `dmesg | grep -i kasan` or `journalctl -b | grep -i kasan`
- Step 4: After patching, reboot and confirm kernel version with `uname -r` shows 6.9.3 or later
FAQ
What is CVE-2024-38572?
This vulnerability is an out-of-bounds memory read in the ath12k wireless driver's QMI (Qualcomm MSM Interface) message handler. The handler array lacked a proper terminator entry, causing the kernel to read beyond allocated memory when processing WiFi device messages.
Is CVE-2024-38572 being actively exploited?
No. This vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-38572?
Linux kernel versions 6.9.0 through 6.9.2 are affected. The fix is included in kernel 6.9.3 and later releases.
How do I check if my server is vulnerable to CVE-2024-38572?
Run `uname -r` to check your kernel version, and `lsmod | grep ath12k` to confirm if the vulnerable driver is loaded. If both show kernel 6.9.0-6.9.2 and ath12k is present, your system is vulnerable.
Does Defensia detect CVE-2024-38572?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-38572 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/95575de7dede7b1ed3b9718dab9dda97914ea775
- https://git.kernel.org/stable/c/a1abdb63628b04855a929850772de97435ed1555
- https://git.kernel.org/stable/c/b48d40f5840c505b7af700594aa8379eec28e925
- https://git.kernel.org/stable/c/e1bdff48a1bb4a4ac660c19c55a820968c48b3f2
- https://git.kernel.org/stable/c/95575de7dede7b1ed3b9718dab9dda97914ea775
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38572. Free for 1 server.
Get started free