Skip to content
Medium 4.1

dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup

CVE-2026-139741 First seen on SecPulse

Affected packages

PackageAffected → Fixed
LinuxLinux —
LinuxKernel
≥ 6.2.0, < 6.6.163→ 6.6.163
≥ 6.7.0, < 6.12.119→ 6.12.119
≥ 6.13.0, < 6.18.65→ 6.18.65
≥ 6.19.0, < 7.3.6→ 7.3.6

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details