Linux
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
In the Linux kernel, the following vulnerability has been resolved: wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask() ath11k_mac_disable_peer_fixed_rate() is passed as the iterator to ieee80211_iterate_stations_atomic(). Note in this case the iterator is required to be atomic, however ath11k_mac_disable_peer_fixed_rate() does not follow it as it might sleep. Consequently below warning is seen: BUG: sleeping function called from invalid context at wmi.c:304 Call Trace: <TASK> dump_stack_lvl __might_resched.cold ath11k_wmi_cmd_send ath11k_wmi_set_peer_param ath11k_mac_disable_peer_fixed_rate ieee80211_iterate_stations_atomic ath11k_mac_op_set_bitrate_mask.cold Change to ieee80211_iterate_stations_mtx() to fix this issue. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d5c65159f2895379e11ca13f62feabe93278985d, < 1f45a710c82b29d4c501b1cb472dff68d59ecc8c
- >= d5c65159f2895379e11ca13f62feabe93278985d, < 9c0e3144924c7db701575a73af341d33184afeaf
- >= d5c65159f2895379e11ca13f62feabe93278985d, < 7d4d0db0dc9424de2bdc0b45e919e4892603356f
- >= d5c65159f2895379e11ca13f62feabe93278985d, < 6bdef22d540258ca06f079f7b6ae100669a19b47
- >= d5c65159f2895379e11ca13f62feabe93278985d, < 65c12b104cb942d588a1a093acc4537fb3d3b129
Fixed in 1f45a710c82b29d4c501b1cb472dff68d59ecc8c, 9c0e3144924c7db701575a73af341d33184afeaf, 7d4d0db0dc9424de2bdc0b45e919e4892603356f, 6bdef22d540258ca06f079f7b6ae100669a19b47, 65c12b104cb942d588a1a093acc4537fb3d3b129
- 5.6
Fixed in 0, 6.6.160, 6.12.42, 6.15.10, 6.16.1, 6.17
Mitigation
Upgrade Linux to 1f45a710c82b29d4c501b1cb472dff68d59ecc8c or 9c0e3144924c7db701575a73af341d33184afeaf or 7d4d0db0dc9424de2bdc0b45e919e4892603356f or 6bdef22d540258ca06f079f7b6ae100669a19b47 or 65c12b104cb942d588a1a093acc4537fb3d3b129 or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.