DEV Community

Ioneyrezende
Ioneyrezende

Posted on

Xilinx AXI MCDMA completion accounting: when a descriptor is marked before hardware finishes

Xilinx AXI MCDMA completion accounting: when a descriptor is marked before hardware finishes

CVE-2026-139740 affects the Linux Xilinx DMA driver used with AXI Multi-Channel DMA hardware. When interrupt coalescing is enabled, a completion interrupt may arrive after only part of a queued batch has finished. The affected driver moved every descriptor from the active list to the done list, even when the hardware completion bit was not yet set.

Why early completion corrupts data

A client driver that receives the early completion signal can read a buffer before the DMA engine has finished writing it. For device-to-memory transfers, the result may be stale, partial, or mixed data. For memory-to-device transfers, the driver may reuse or release a descriptor while hardware still needs it.

Red Hat rates the issue Moderate with CVSS 3.1 score 5.3. Exploitation requires local access on a system with the specialized Xilinx FPGA hardware and does not create a general remote privilege boundary. The main impact is data integrity or denial of service in an edge, industrial, or custom-appliance workload.

Identify the right systems

Look for kernels built with the Xilinx DMA driver, AXI MCDMA hardware, and interrupt-coalescing settings above one. The package name alone is insufficient because the driver may be built as a module or omitted from a server kernel. Check loaded modules, device-tree entries, kernel configuration, and the actual FPGA image.

Document which data paths use the engine. A camera pipeline, radio front end, storage accelerator, or industrial capture system may depend on completion ordering. The operational owner should know whether a partial buffer becomes a bad sample, a corrupt block, or a failed transaction.

Update and validate

Apply the kernel fix from the supported distribution. Fixed upstream releases include 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, and 7.4-rc1. Vendors can backport the change, so check the distribution advisory as well as the visible kernel version.

After the update, test with interrupt coalescing enabled and a queue depth larger than one. Confirm that completion callbacks occur only after the direction-specific completion bit is set. Compare input and output checksums across long runs and watch for descriptor timeouts or socket-buffer errors.

References

Top comments (0)