# CVE-2026-139741: dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-11-30T13:37:32.826Z
- Modified: 2026-11-30T14:20:06.407Z
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from ac803b56860f6506c55a3c9330007837e3f4edda before 388543f737b64a44fdc72678308df56dbcc094d4; from ac803b56860f6506c55a3c9330007837e3f4edda before 284e48d2166d78442b75884bed9ee6aac2ec90a2; from ac803b56860f6506c55a3c9330007837e3f4edda before f0908a5cb329cd43ece59b4ad9a32259701d52d7; from ac803b56860f6506c55a3c9330007837e3f4edda before 48156abf1f13519242ab96e89d6871cff6fbeedb; from ac803b56860f6506c55a3c9330007837e3f4edda before 13f2d32a09609d083ace2d589fbdc68e970ae34c; 6.2 (not affected: before 6.2; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-139741](https://www.cve.org/CVERecord?id=CVE-2026-139741), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139741](https://nvd.nist.gov/vuln/detail/CVE-2026-139741), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139741 · Whole record: https://cve.day/CVE-2026-139741.json · Rebuilt by cve.day 2026-11-30T14:33:12.169Z
