AZL-117316: CVE-2026-139741 affecting package kernel 6.6.161.1-1
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 path, call free_irq() first to synchronize with running IRQ handlers and prevent them from scheduling new tasklets; then kill tasklets and wait for scheduled ones to complete before freeing other resources, including atdma.
Event History
Frequently Asked Questions
Which systems are most relevant to assess?
Systems using the at_hdmac DMA engine driver are relevant, because the vulnerable cleanup path involves tasklets created for at_dma_chan objects.
What condition is required for the use-after-free to occur?
A tasklet must still be running or scheduled while the driver’s resources are being released. The unsafe sequence allows tasklets to access at_dma_chan memory after the devm-managed DMA controller object has been freed.
What cleanup ordering avoids the issue?
The IRQ must be freed first so active IRQ handlers finish and cannot schedule additional tasklets. Tasklets must then be killed before other resources are freed.