wifi: ath11k: fix overreads in ath11k_wmi_process_csa_switch_count_event()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d5c65159f2895379e11ca13f62feabe93278985d · < 208d7fdb85976a737a715b81d54efaff6703880c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath11k: fix overreads in ath11k_wmi_process_csa_switch_count_event()
There is no policy entry for WMI_TAG_PDEV_CSA_SWITCH_COUNT_STATUS_EVENT, so the parse infrastructure does not enforce a minimum length for the event struct. Additionally, the num_vdevs field is taken directly from firmware and used as a loop bound over the vdev_ids array without checking that it fits within the TLV payload. Either condition can cause an out-of-bounds read.
Add a TLV policy entry for WMI_TAG_PDEV_CSA_SWITCH_COUNT_STATUS_EVENT so the parse infrastructure enforces a minimum length for the fixed-size event struct. Add a helper ath11k_wmi_tlv_data_len() to recover the payload length of a parsed TLV from the header preceding its data pointer. Use it in ath11k_wmi_process_csa_switch_count_event() to bound num_vdevs before the loop.
Compile tested only.
From the CVE record · Linux
The Linux kernel’s ath11k Wi-Fi driver can read past an event payload when processing a firmware CSA switch-count event. The input does not establish whether an attacker can trigger the event, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the ath11k Wi-Fi driver should check their versions; affected versions were not specified.