CVE-2026-143074: wifi: ath9k_htc: do not start ANI before the first channel is set
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath9khtc: do not start ANI before the first channel is set
ath9khtcaddinterface() starts ANI for the first AP interface, before any channel is configured. The per-channel calibration data only gets attached by the first ath9khtcsetchannel() that is not a fast channel change, and that same call cancels the ANI work a few milliseconds after addinterface, so normally the work never runs.
When the bring-up stalls for more than the 100 ms ANI poll interval in between, it does run, and ar9002hwpercalibration() records the IQ calibration result in the calibration data that does not exist yet:
Unable to handle kernel NULL pointer dereference at virtual address 00000008 PC is at ar9002hwcalibrate+0x1f8/0x570 [ath9khw] Workqueue: phy0 ath9khtcaniwork [ath9khtc]
Seen about once per thousand AP starts with an AR9271 on a Cortex-A5 board that starts hostapd while still booting; a 500 ms delay after addinterface reproduces it on every start. The crashed work never completes, so the next canceldelayedworksync() blocks for good.
Drop the start; it has nothing to calibrate against and is cancelled anyway. The TSF adjust bit that shared its condition is now set for every AP interface, which is harmless: the next reset applies it. The next patch starts ANI once the interface beacons.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Start ath9k_htc ANI only after the interface beacons; do not start ANI before the first channel is set.
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the Linux ath9k_htc Wi-Fi driver in AP mode are exposed when the first access-point interface is added before a channel has been configured. The reported occurrence involved an AR9271 device on a Cortex-A5 board starting hostapd during boot.
What conditions are needed to trigger the crash?
ANI work must run during the interval after the first AP interface is added and before the first non-fast channel configuration attaches per-channel calibration data. This normally does not happen because channel setup cancels the work, but a bring-up stall longer than the 100 ms ANI polling interval can allow it to run.
What is the operational impact if the issue is triggered?
The ANI work can dereference a NULL calibration-data pointer and crash the kernel. Because the crashed work does not complete, a subsequent cancel_delayed_work_sync() can block indefinitely.
How can this be reproduced or investigated?
The report states that delaying for 500 ms after add_interface reproduces the failure on every start. Kernel logs may show a NULL pointer dereference in ar9002_hw_calibrate, with ath9k_htc_ani_work running on the phy0 workqueue.