CVE-2026-143450: wifi: ath12k: fix out-of-bounds access on TX stats arrays
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix out-of-bounds access on TX stats arrays
The fwtxstatus[], txwbmrelsource[], and tqmrelreason[] arrays are indexed directly by values read from hardware without bounds checks. Values at or beyond MAXFWTXSTATUS, HALWBMRELSRCMODULEMAX, or MAXTQMRELEASEREASON respectively would write past the end of the arrays causing memory corruption.
Add likely() bounds checks before incrementing each counter. For txwbmrelsource[] and tqmrelreason[], add WARNONONCE() on the out-of-bounds else branch. For fwtxstatus[], no WARNONONCE is added since the switch statement that follows already calls ath12kwarn() in its default: branch for unknown values, avoiding a double-warn.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6.r1-00402-QCAHKSWPLSILICONZ-1
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Add likely() bounds checks before incrementing counters indexed by hardware values: check against MAX_FW_TX_STATUS for fw_tx_status[], HAL_WBM_REL_SRC_MODULE_MAX for tx_wbm_rel_source[], and MAX_TQM_RELEASE_REASON for tqm_rel_reason[]. Add WARN_ON_ONCE() for out-of-bounds values in tx_wbm_rel_source[] and tqm_rel_reason[]; do not add WARN_ON_ONCE() for fw_tx_status[].
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel ath12k Wi-Fi driver are exposed when hardware-provided TX status or release-source values are processed. The issue was tested on QCN9274 hardware revision 2.0 using PCI WLAN firmware.
What condition triggers the memory corruption?
The driver must receive a hardware value that is outside the valid range for one of the TX statistics array indexes: fw_tx_status, tx_wbm_rel_source, or tqm_rel_reason. Before the fix, such a value could cause a counter increment beyond the end of its array.
How can an affected system be identified or monitored if patching is delayed?
Unexpected TX status values are already reported through ath12k_warn() by the switch statement's default branch. Invalid tx_wbm_rel_source or tqm_rel_reason values trigger WARN_ON_ONCE() after the fix; the provided data does not describe an equivalent safe mitigation for unpatched kernels.