AZL-117331: CVE-2026-139762 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In the ath11k AHB removal path, skip ath11k_core_deinit() when ATH11K_FLAG_REGISTERED is not set.
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the ath11k AHB driver with WCN6750 hardware are implicated. The failure scenario occurs when QMI messages do not arrive, such as when qrtr_smd is not ready, leaving WLAN initialization incomplete.
What event triggers the crash?
The NULL pointer dereference occurs when the ath11k AHB driver is removed after incomplete initialization. Removal invokes cleanup of uninitialized CE pipes unless the driver detects that device registration never completed.
What is the operational impact if the issue is triggered?
The driver removal path can cause a NULL pointer dereference in ath11k_hal_srng_access_begin(). This can crash the kernel during ath11k cleanup.
How does the resolved code avoid the problem?
The fix calls ath11k_ahb_remove_prepare() before checking state and skips ath11k_core_deinit() when ATH11K_FLAG_REGISTERED is not set. This prevents cleanup from accessing CE pipes that may not have been initialized.