CVE-2026-143384: wifi: ath12k: fix IRQ disable imbalance in AHB ext interrupt handler
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix IRQ disable imbalance in AHB ext interrupt handler
On AHB platforms such as IPQ5332, IRQ group 3 maps multiple hardware rings to a single NAPI instance. Each ring is assigned its own IRQ line, but all IRQs in the group share one napi struct and one poll function.
When two IRQs from the same group fire simultaneously on different CPUs, both handlers call ath12kahbextgrpdisable(), which invokes disableirqnosync() for every IRQ in the group. This increments the interrupt controller's disable reference count for each IRQ twice. The single NAPI poll that runs calls ath12kahbextgrpenable() once, decrementing each count from 2 to 1. Because the count never reaches 0, all IRQs in the group remain permanently masked by the interrupt controller.
With no further interrupts, TX completions stop being reaped from the WBM release ring. The pending TX descriptor count grows until the WBM idle link descriptor pool is exhausted. Once full, TX ring allocation fails and no new packets including management frames can be enqueued. This causes stations to disassociate with reason 34 (DISASSOCLOWACK) and ath12kmacflush() to time out: "failed to flush transmit queue, data pkts req N pending N" where N equals ATH12KNUMPOOLTXDESC(ab).
Fix this by using napischeduleprep() to atomically test-and-set NAPISTATESCHED before disabling IRQs. Only the first CPU to win the atomic operation disables the group and calls napischedule(). Any concurrent handler that loses the race skips the disable entirely, keeping the reference count balanced. Guard the enableirq() call in the poll routine with the return value of napicompletedone() to prevent an unbalanced enable if the NAPI instance was re-scheduled before the poll completed.
Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.7-00587-QCAHKSWPLSILICONZ-1
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.7-1
Event History
Frequently Asked Questions
Which deployments are exposed to this condition?
It affects ath12k on AHB platforms where an IRQ group maps multiple hardware rings to a single NAPI instance, such as IPQ5332. The affected design has separate IRQ lines for the rings but a shared NAPI structure and poll function.
What event is required to trigger the failure?
Two IRQs belonging to the same group must fire simultaneously on different CPUs. Both interrupt handlers then disable every IRQ in the group, while the shared NAPI poll reenables them only once.
How can an operator recognize that the issue has occurred?
The group's IRQs remain masked, preventing TX completions from being reaped from the WBM release ring. Pending TX descriptors grow until the WBM idle link descriptor pool is exhausted, after which TX ring allocation and packet enqueueing fail and stations may disassociate with reason 34 (DISASSOC_LOW_ACK).