CVE-2026-139762: wifi: ath11k: fix NULL dereference in ahb remove when QMI init incomplete
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix NULL dereference in ahb remove when QMI init incomplete
On WCN6750, if QMI messages never arrive (for example when qrtrsmd is not ready), WLAN initialization stops before the device is fully registered. In this case ATH11KFLAGQMIFAIL is not set because no QMI event handler is executed.
When the driver is removed, ath11kahbremove() still calls ath11kcoredeinit(), which eventually triggers ath11kcecleanuppipes() on uninitialized CE pipes and results in a NULL pointer dereference in ath11khalsrngaccessbegin():
ath11khalsrngaccessbegin+0x14/0x68 [ath11k] ath11kcecleanuppipes+0x184/0x190 [ath11k] ath11kpcicstop+0x24/0x38 [ath11k] ath11kcoredeinit+0xfc/0x1c0 [ath11k] ath11kahbremove+0x38/0xa0 [ath11kahb]
Fix this by invoking ath11kahbremoveprepare() before the state check and skipping ath11kcoredeinit() if ATH11KFLAGREGISTERED is not set, core initialization did not complete and CE pipes may remain uninitialized, making ath11kcoredeinit() unsafe.
Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.2.0.c2-00204-QCAMSLSWPLZ-1
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In ath11k_ahb_remove(), invoke ath11k_ahb_remove_prepare() before checking the registration state, and skip ath11k_core_deinit() when ATH11K_FLAG_REGISTERED is unset.
Event History
Frequently Asked Questions
Which systems are exposed to this crash condition?
The reported condition affects systems using the ath11k AHB driver with WCN6750 hardware, when WLAN initialization stops before the device is fully registered. The example trigger is qrtr_smd not being ready, causing QMI messages not to arrive.
What event triggers the NULL pointer dereference?
The dereference occurs when the ath11k AHB driver is removed after incomplete QMI initialization. Because the device was not fully registered and CE pipes may be uninitialized, ath11k_core_deinit() can invoke CE-pipe cleanup and crash in ath11k_hal_srng_access_begin().
How does the fix prevent the crash?
The fix runs ath11k_ahb_remove_prepare() before checking driver state and skips ath11k_core_deinit() when ATH11K_FLAG_REGISTERED is not set. This avoids cleanup of CE pipes when core initialization did not complete.