CVE-2026-139741

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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

Analysis

AI-generated

Technical impact

The Linux kernel contains a use‑after‑free flaw in the dmaengine at_hdmac subsystem. During cleanup, tasklets that were previously scheduled are not properly stopped, allowing them to access memory that has already been freed by the device manager. This results in a use‑after‑free condition that can be exploited to corrupt kernel memory or execute arbitrary code at elevated privileges.

Affected Systems

All Linux kernel builds that include the affected dmaengine at_hdmac code before the reported fix are impacted. The flaw applies to any distribution kernel that has not applied the commit referenced in the advisory, regardless of version number.

Risk and Exploitability

The vulnerability is a memory corruption flaw (CWE‑416) that enables local privilege escalation by a user with the ability to trigger device access or tasklet scheduling. No exploit has been reported in public catalogs, and the EPSS score is not available, implying limited or private exploitation. However, because the flaw occurs in kernel space, any successfully triggered attack can lead to complete compromise of the affected host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update your Linux distribution to a kernel version that incorporates the dmaengine at_hdmac use‑after‑free fix (the commit referenced in the advisory).
  • Reboot the system to load the new kernel into memory.
  • If an immediate kernel upgrade is not possible, disable the at_hdmac DMA engine module or prevent its use until the patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 01:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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
Title dmaengine: at_hdmac: Fix use-after-free by proper tasklet cleanup
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM