dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup
Current cleanup paths have a use-after-free vulnerability: - vchan_init() creates tasklets that access at_dma_chan memory - free_irq() 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: - free_irq() 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
| Product | Versions |
|---|---|
| Linux Linux | ac803b56860f6506c55a3c9330007837e3f4edda to before 388543f737b64a44fdc72678308df56dbcc094d4 Affectedac803b56860f6506c55a3c9330007837e3f4edda to before 284e48d2166d78442b75884bed9ee6aac2ec90a2 Affectedac803b56860f6506c55a3c9330007837e3f4edda to before f0908a5cb329cd43ece59b4ad9a32259701d52d7 Affectedac803b56860f6506c55a3c9330007837e3f4edda to before 48156abf1f13519242ab96e89d6871cff6fbeedb Affectedac803b56860f6506c55a3c9330007837e3f4edda to before 13f2d32a09609d083ace2d589fbdc68e970ae34c Affected |
| Linux Linux | 6.2 Affectedbefore 6.2 Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/388543f737b64a44fdc72678308df56dbcc094d4
- https://git.kernel.org/stable/c/284e48d2166d78442b75884bed9ee6aac2ec90a2
- https://git.kernel.org/stable/c/f0908a5cb329cd43ece59b4ad9a32259701d52d7
- https://git.kernel.org/stable/c/48156abf1f13519242ab96e89d6871cff6fbeedb
- https://git.kernel.org/stable/c/13f2d32a09609d083ace2d589fbdc68e970ae34c
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.