CVE-2026-139461

dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case

Published Nov 30, 2026 CVSS 3.1 · 5.3 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case

Commit 849facea92fa ("dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING
handling") moved the DMA_ATTR_NO_KERNEL_MAPPING shortcut in
dma_direct_alloc() in front of the arch_dma_alloc() call. Architectures
providing their own DMA coherent allocator (CONFIG_ARCH_HAS_DMA_ALLOC)
therefore no longer see such requests. ARM 32bit is one of such. Lack of
the call to arch_dma_alloc() results in the lack of proper cache
management on HighMem pages.

Take the dma-direct shortcut only for coherent devices or when the
architecture doesn't provide arch_dma_alloc(). While touching this,
move that check into separate function to avoid duplication in alloc
and free paths.

Analysis

AI-generated

Technical impact

In the Linux kernel, the dma‑direct subsystem omitted a call to arch_dma_alloc() when the DMA_ATTR_NO_KERNEL_MAPPING flag was set. The missing call prevented the required cache maintenance on high‑memory pages for architectures that implement arch_dma_alloc(), such as ARM 32‑bit. This oversight left caches stale and allowed the CPU to read or write outdated data, potentially corrupting kernel structures or destabilizing the system. The flaw represents an improper memory management weakness that can cause data corruption and unexpected crashes.

Affected Systems

All Linux kernel releases before the inclusion of commit 849facea92fa are affected on architectures with CONFIG_ARCH_HAS_DMA_ALLOC. The flaw is present on ARM 32‑bit and any other architecture that provides a custom arch_dma_alloc() implementation. Kernel builds that lack the arch_dma_alloc() function or do not use the DMA_ATTR_NO_KERNEL_MAPPING flag are not impacted.

Risk and Exploitability

An attacker with local privileged code that can invoke dma_direct_alloc() with DMA_ATTR_NO_KERNEL_MAPPING could trigger the bug. Because the vulnerability arises from omitted cache synchronization rather than a boundary violation, exploitation is unlikely to enable remote code execution; instead, it would lead to internal data corruption or service disruption. No CVSS or EPSS score is published, and the flaw is not listed in CISA’s KEV catalog, indicating no active exploitation at the time. The risk remains significant for systems that use the affected attribute on HighMem devices.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the fixed arch_dma_alloc() call—apply the revision that restores the missing call.
  • If an update is not immediately possible, modify or disable drivers or applications that request DMA_ATTR_NO_KERNEL_MAPPING, ensuring that arch_dma_alloc() is exercised for DMA allocations.
  • Verify that high‑memory DMA allocations for coherent devices go through arch_dma_alloc() by reviewing driver source or applying a local patch that enforces the correct path.

Generated by OpenCVE AI on December 1, 2026 at 05:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-820
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case Commit 849facea92fa ("dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING handling") moved the DMA_ATTR_NO_KERNEL_MAPPING shortcut in dma_direct_alloc() in front of the arch_dma_alloc() call. Architectures providing their own DMA coherent allocator (CONFIG_ARCH_HAS_DMA_ALLOC) therefore no longer see such requests. ARM 32bit is one of such. Lack of the call to arch_dma_alloc() results in the lack of proper cache management on HighMem pages. Take the dma-direct shortcut only for coherent devices or when the architecture doesn't provide arch_dma_alloc(). While touching this, move that check into separate function to avoid duplication in alloc and free paths.
Title dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case
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:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM