CVE-2026-139742

dmaengine: sun6i-dma: Fix use-after-free in error handling paths

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: sun6i-dma: Fix use-after-free in error handling paths

In error handling paths, the for loop frees v_lli in the loop body,
then accesses v_lli->v_lli_next and v_lli->p_lli_next in the
increment expression, which is use-after-free.

Fix by refactoring the cleanup into a helper function sun6i_dma_free_desc()
that saves both the next virtual and physical pointers before freeing the
current node, preventing the use-after-free.

Analysis

AI-generated

Technical impact

The kernel driver contains a use‑after‑free flaw in its error cleanup paths. The loop frees a descriptor before accessing its next pointer fields, causing a read on freed memory. If an attacker can trigger the error path, the corrupted memory may be read or overwritten, allowing privileged kernel code to execute or tampering with system stability.

Affected Systems

The flaw exists in the Linux kernel’s sun6i DMA engine driver. All installations that load this driver, regardless of distribution, are affected. No specific kernel release range is listed in the data, so any build that includes the unpatched code is vulnerable.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, indicating no known public exploitation yet. However, use‑after‑free vulnerabilities in kernel drivers can lead to remote privilege escalation if an attacker has a means to trigger the error path. The severity has not been quantified with CVSS in the current data, so cautious assessment recommends immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Linux kernel patch that introduces the sun6i_dma_free_desc cleanup function, or upgrade to a kernel version containing this fix.
  • If the sun6i DMA driver is not needed, disable and unload the module to eliminate the attack surface.
  • Until a kernel update is available, monitor logs for DMA error events and apply any upstream patches that mitigate use‑after‑free conditions.

Generated by OpenCVE AI on December 1, 2026 at 02:27 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: sun6i-dma: Fix use-after-free in error handling paths In error handling paths, the for loop frees v_lli in the loop body, then accesses v_lli->v_lli_next and v_lli->p_lli_next in the increment expression, which is use-after-free. Fix by refactoring the cleanup into a helper function sun6i_dma_free_desc() that saves both the next virtual and physical pointers before freeing the current node, preventing the use-after-free.
Title dmaengine: sun6i-dma: Fix use-after-free in error handling paths
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