CVE-2026-139736: wifi: ath12k: Free allocated external IRQs on request_irq() failure
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: Free allocated external IRQs on requestirq() failure
When external IRQ configuration fails, the driver does not release all IRQs that were successfully requested before the failure. This can leak IRQ resources during probe failure.
Free previously requested external IRQs when external IRQ configuration fails.
Also remove the NAPI instance with netifnapidel() before freeing the associated netdev to properly clean up the NAPI resources.
Store the IRQ number only after requestirq() succeeds to avoid recording an IRQ that was not successfully requested.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPLSILICONZ-1
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the ath12k driver, free all external IRQs successfully requested before an external IRQ configuration or request_irq() failure.
- Compensating control
Store the IRQ number only after request_irq() succeeds, so an IRQ that was not successfully requested is not recorded.
- Compensating control
Call netif_napi_del() on the NAPI instance before freeing its associated netdev.
Event History
Frequently Asked Questions
Under what condition can the resource leak occur?
It occurs when ath12k external IRQ configuration fails after one or more IRQs have already been successfully requested during driver probe.
What resources are left uncleared by the affected failure path?
Previously requested external IRQs can remain allocated. The failure path can also fail to remove the associated NAPI instance before freeing its netdev.
Which hardware configuration was explicitly tested for the fix?
The fix was tested on QCN9274 hardware revision 2.0 using PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1.