CVE-2026-139427: wifi: ath12k: Fix NAPI resource leaks in AHB external IRQ paths
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: Fix NAPI resource leaks in AHB external IRQ paths
Currently, NAPI instances and their associated netdevs allocated for AHB external IRQ groups are not released when external IRQ configuration fails. They are also not freed when archinit() fails after ath12kahbconfigirq() succeeds during probe, or when the driver is unloaded.
Fix this by adding a common cleanup helper to release the NAPI instances and associated netdevs. Call it from the external IRQ configuration error path, probe error path, and driver cleanup path.
Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPLSILICONZ-1
[renamed label errfreeirq]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Add and call a common cleanup helper in the ath12k AHB external IRQ configuration-failure path, arch_init() failure path, probe error path, and driver cleanup path to release the NAPI instances, associated netdevs, and external IRQ groups.
Event History
Frequently Asked Questions
Which systems are affected by this resource-leak condition?
The issue is in the Linux kernel ath12k driver’s AHB external IRQ handling. It applies when NAPI instances and associated netdevs are allocated for AHB external IRQ groups and external IRQ configuration, later architecture initialization, or driver cleanup follows the affected paths.
When can the leaked resources occur?
Resources can remain allocated if external IRQ configuration fails, if arch_init() fails after ath12k_ahb_config_irq() has succeeded during probe, or when the driver is unloaded. The fix adds shared cleanup for these error and teardown paths.