CVE-2026-139740

dmaengine: xilinx_dma: Move descriptors to done list based on completion bit

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: xilinx_dma: Move descriptors to done list based on completion bit

In AXI MCDMA, xilinx_dma_complete_descriptor() walks the channel's
active_list and unconditionally moves every entry to the done_list. The
MCDMA IOC interrupt handler invokes this function on every
interrupt-on-completion, but with interrupt coalescing (IRQThreshold > 1)
an IOC interrupt may fire after only a subset of the queued descriptors
have actually been processed by the hardware. As a result, descriptors
whose completion bit is not yet set in the BD status were being reported
as completed to client drivers.

Add a check for the descriptor completion bit before moving entries from
the active list to the done list, using the appropriate direction-
specific status field (s2mm_status for DMA_DEV_TO_MEM, mm2s_status for
DMA_MEM_TO_DEV).

This mirrors the AXIDMA fix in commit 7bcdaa658102 ("dmaengine:
xilinx_dma: Freeup active list based on descriptor completion bit").

Analysis

AI-generated

Technical impact

The defect lies in the Xilinx MCDMA driver of the Linux kernel where descriptors are moved to the completed list without verifying that the hardware has set the completion bit. As a result, descriptors whose transfer is still in progress are reported as finished to user‑space drivers. This can cause client drivers to believe data transfers are complete, leading to premature cleanup or reuse of buffers and potentially causing data corruption or memory errors. The flaw is a logic error that arises because the driver unconditionally processes all active descriptors on each interrupt, ignoring whether individual descriptors have truly completed.

Affected Systems

The vulnerability affects the Xilinx DMA driver (xilinx_dma) built into the Linux kernel. Any Linux system running a kernel that includes this driver, particularly those using AXI MCDMA hardware, is susceptible. No specific kernel versions are listed in the advisory, so all installations containing the unpatched driver are considered at risk.

Risk and Exploitability

No CVSS score, EPSS score, or KEV listing is available for this issue, making the exact severity and exploitation probability unclear. The flaw originates in kernel code and would require local execution on a system that can trigger the relevant DMA operations; it does not appear to be exploitable remotely or from a network context. Nonetheless, because it can lead to driver crashes or memory corruption, it is prudent to treat it as a potential local privilege escalation or denial‑of‑service vector until a patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the fix for the xilinx_dma driver.
  • If an upgrade is not immediately possible, disable the Xilinx DMA driver or ensure it is not loaded on systems that do not use the affected hardware.
  • Set the interrupt coalescing threshold (IRQThreshold) to 1 or disable coalescing for the MCDMA channel to avoid processing incomplete descriptors.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-606
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dmaengine: xilinx_dma: Move descriptors to done list based on completion bit In AXI MCDMA, xilinx_dma_complete_descriptor() walks the channel's active_list and unconditionally moves every entry to the done_list. The MCDMA IOC interrupt handler invokes this function on every interrupt-on-completion, but with interrupt coalescing (IRQThreshold > 1) an IOC interrupt may fire after only a subset of the queued descriptors have actually been processed by the hardware. As a result, descriptors whose completion bit is not yet set in the BD status were being reported as completed to client drivers. Add a check for the descriptor completion bit before moving entries from the active list to the done list, using the appropriate direction- specific status field (s2mm_status for DMA_DEV_TO_MEM, mm2s_status for DMA_MEM_TO_DEV). This mirrors the AXIDMA fix in commit 7bcdaa658102 ("dmaengine: xilinx_dma: Freeup active list based on descriptor completion bit").
Title dmaengine: xilinx_dma: Move descriptors to done list based on completion bit
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition

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