CVE-2026-139423: wifi: ath12k: avoid IDR mutation during pending mgmt TX cleanup
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: avoid IDR mutation during pending mgmt TX cleanup
The pending management TX cleanup walks txmgmtidr with idrforeach(), and its callback removes the current entry. This can invalidate the radix-tree iterator retained by idrforeach().
Use idrforeachentry() so every iteration starts with a fresh lookup. Continue to remove each entry under txmgmtidrlock before freeing its skb, preventing concurrent TX completion from finding a stale skb pointer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ath12k pending management TX cleanup, use idr_for_each_entry() instead of idr_for_each(), and remove each entry under txmgmt_idr_lock before freeing its skb.