CVE-2026-139741: dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: athdmac: Fix use-after-free by proper tasklet cleanup
Current cleanup paths have a use-after-free vulnerability: - vchaninit() creates tasklets that access atdmachan memory - freeirq() only waits for IRQ handler, NOT tasklets - atdma is devm-managed and freed after probe/remove - Running tasklets accessing freed memory → Use-After-Free!
The fix requires careful ordering: - freeirq() FIRST to synchronize with running IRQ handlers and prevent them from scheduling new tasklets - Then kill tasklets to wait for already-scheduled ones to complete - Only then free other resources
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the at_hdmac cleanup paths, call free_irq() first to synchronize with running IRQ handlers and prevent them from scheduling new tasklets; then kill the tasklets and wait for scheduled ones to complete before freeing other resources, including the devm-managed atdma memory.