Description
In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k_htc: do not start ANI before the first channel is set ath9k_htc_add_interface() starts ANI for the first AP interface, before any channel is configured. The per-channel calibration data only gets attached by the first ath9k_htc_set_channel() that is not a fast channel change, and that same call cancels the ANI work a few milliseconds after add_interface, 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 ar9002_hw_per_calibration() 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 ar9002_hw_calibrate+0x1f8/0x570 [ath9k_hw] Workqueue: phy0 ath9k_htc_ani_work [ath9k_htc] 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 add_interface reproduces it on every start. The crashed work never completes, so the next cancel_delayed_work_sync() 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
a236254c35f04a4d47c701ed3ec4a0b5dcb097b0 to < 83638416b3a56c15eadbb407df542f95b7ca8f82affecteda236254c35f04a4d47c701ed3ec4a0b5dcb097b0 to < 850c80adbe23bc61f1e003b32bccd060affda2daaffecteda236254c35f04a4d47c701ed3ec4a0b5dcb097b0 to < 65da0380563c7479b0901aafebbe49e300c9ce2eaffecteda236254c35f04a4d47c701ed3ec4a0b5dcb097b0 to < 8d69583f2d5145f9bae4780b19a64b65aa6862bfaffecteda236254c35f04a4d47c701ed3ec4a0b5dcb097b0 to < 5833c82f123bd35e117e00e52135fe3dfd63007caffecteda236254c35f04a4d47c701ed3ec4a0b5dcb097b0 to < dda63dd136ba2bc3b297079b190ac81a0aea40aeaffected
Linux Linux
Default version status: affected
2.6.39affected0 to < 2.6.39unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/83638416b3a56c15eadbb407df542f95b7ca8f82 ↗
- https://git.kernel.org/stable/c/850c80adbe23bc61f1e003b32bccd060affda2da ↗
- https://git.kernel.org/stable/c/65da0380563c7479b0901aafebbe49e300c9ce2e ↗
- https://git.kernel.org/stable/c/8d69583f2d5145f9bae4780b19a64b65aa6862bf ↗
- https://git.kernel.org/stable/c/5833c82f123bd35e117e00e52135fe3dfd63007c ↗
- https://git.kernel.org/stable/c/dda63dd136ba2bc3b297079b190ac81a0aea40ae ↗