wifi: ath9k: Fix potential array-index-out-of-bounds read in ath9k_htc_txstatus()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 27876a29de221186c9d5883e5fe5f6da18ef9a45 · < e4f4bac7d3b64eb75f70cd3345712de6f68a215d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath9k: Fix potential array-index-out-of-bounds read in ath9k_htc_txstatus()
Fix an array-index-out-of-bounds read in ath9k_htc_txstatus(). The bug occurs when txs->cnt, data from a URB provided by a USB device, is bigger than the size of the array txs->txstatus, which is HTC_MAX_TX_STATUS. WARN_ON() already checks it, but there is no bug handling code after the check. Make the function return if that is the case.
Found by a modified version of syzkaller.
UBSAN: array-index-out-of-bounds in htc_drv_txrx.c index 13 is out of range for type '__wmi_event_txstatus [12]' Call Trace: ath9k_htc_txstatus ath9k_wmi_event_tasklet tasklet_action_common __do_softirq irq_exit_rxu sysvec_apic_timer_interrupt
From the CVE record · Linux
The Linux kernel’s ath9k HTC driver can read past a transmit-status array when a USB device supplies a count larger than the array. This can trigger an out-of-bounds read; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the ath9k HTC driver should check their kernel; affected versions are not specified.