CVE-2026-139426: wifi: ath10k: avoid IDR mutation during TX cleanup
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath10k: avoid IDR mutation during TX cleanup
ath10khttflushtxqueue() walks pendingtx with idrforeach(). Its callback calls ath10ktxrxtxunref(), which removes the current entry from pendingtx through ath10khtttxfreemsduid().
idrforeach() keeps radix-tree iterator state across the callback. Removing the current entry can therefore invalidate that state and make the remaining walk unsafe.
Use idrforeachentry(), which starts a fresh lookup after each callback. The current entry can then be removed safely, while the following idrdestroy() continues to release the IDR itself.
[changed ath10khtttxcleanuppending() signature]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ath10k_htt_flush_tx_queue(), replace idr_for_each() with idr_for_each_entry() so each lookup starts fresh after the callback removes an entry from pending_tx.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue is in the Linux kernel ath10k Wi-Fi driver, specifically when pending transmit entries are cleaned up. Systems not using the ath10k driver are not implicated by the provided information.
How can I determine whether my kernel contains the fix?
Inspect the ath10k transmit-cleanup implementation. The corrected code uses idr_for_each_entry() when walking pending_tx; vulnerable code uses idr_for_each() while the callback can remove the current pending_tx entry.