CVE-2024-38572: wifi: ath12k: fix out-of-bound access of qmi_invoke_handler()
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
Security readout for executives and security teams
Plain-English summary
CVE-2024-38572 is a Linux kernel flaw in the ath12k Wi-Fi driver. A missing terminator in a QMI message handler table can make kernel code read past the intended handler list. The public record shows a KASAN global out-of-bounds warning and kernel stable fixes, but no CVSS score or confirmed exploitation.
Executive priority
Treat as a targeted Linux kernel maintenance issue, not an emergency from the available evidence. Prioritize patching laptops, appliances, or embedded systems using affected Qualcomm Wi-Fi hardware, and track vendor kernel advisories because public severity and impact details are incomplete.
Technical view
The ath12k_qmi_msg_handlers table lacked a dummy terminator, causing qmi_invoke_handler() to continue traversal and perform a global out-of-bounds read. The fix adds the terminator entry. The issue was tested on QCN9274 hw2.0 PCI hardware. Affected exposure depends on kernels carrying the ath12k driver and related Qualcomm Wi-Fi hardware support.
Likely exposure
Most relevant to Linux systems using ath12k-supported Qualcomm Wi-Fi hardware, especially kernels in affected upstream or downstream ranges before the stable fixes. Servers without this driver loaded or hardware present are less likely exposed. Distribution backports may change exposure and should be checked directly.
Exploitation context
The provided sources do not show active exploitation, public exploit code, or KEV listing. The evidence is a kernel KASAN report showing out-of-bounds read behavior during QMI message handling. Practical impact is not fully characterized in the supplied sources.
Researcher notes
The root cause is table traversal without a terminator in ath12k QMI handler registration. The source record identifies stable commits but does not provide CVSS, CWE, attacker prerequisites, or impact beyond the KASAN out-of-bounds read. Validate against the actual downstream kernel source, not just upstream version labels.
Mitigation direction
Update to a vendor kernel containing the referenced stable ath12k fixes.
Confirm distribution advisories for backported fixes before relying on version numbers alone.
If feasible, avoid loading ath12k on systems that do not need it.
Prioritize systems with Qualcomm ath12k Wi-Fi hardware or exposed wireless roles.
Validation and detection
Inventory Linux kernels and check whether the ath12k module is present or loaded.
Identify systems with Qualcomm ath12k-supported Wi-Fi hardware.
Compare kernel package changelogs against the referenced stable commits.
Review kernel logs for ath12k, QMI, KASAN, or crash signatures.
Verify remediated systems are running a fixed vendor kernel build.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-38572 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.