Skip to contentSkip to conversation

CVE-2026-93170: dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlers

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlers

Fix a race condition in AXIDMA and MCDMA irq handlers where the channel could be incorrectly marked as idle and attempt spurious transfers when descriptors are still being processed.

The issue occurs when:
1. Multiple descriptors are queued and active.
2. An interrupt fires after completing some descriptors.
3. xilinx_dma_complete_descriptor() moves completed descriptors to done_list.
4. Channel is marked idle and start_transfer() is called even though active_list still contains unprocessed descriptors.
5. This leads to premature transfer attempts and potential descriptor corruption or missed completions.

Only mark the channel as idle and start new transfers when the active list is actually empty, ensuring proper channel state management and avoiding spurious transfer attempts.

The Linux kernel CVE team has assigned CVE-2026-93170 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 5.10.270 with commit 7f4b989d7d87381927b98d64492f8dcf979f57ab
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 5.15.221 with commit 5459e02707b27a964ae72e028d3ff72a3b687c4a
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 6.1.188 with commit 425630e9eea1f9f8912b8c6abf01e0dab1e27917
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 6.6.157 with commit fdaf297ab275c6efecac5e87669c31bc89b74297
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 6.12.110 with commit c27d16fd2358b2fc3e1ffaca03afd11dc28630ea
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 6.18.52 with commit ec927657524be4438447944a58173c7baf7f2384
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 7.2.6 with commit c3e943490ced0b9ad475844eda7661f6a9bcfb4a
	Issue introduced in 4.7 with commit c0bba3a99f0709c24c2c7ada7cb098966b1d791f and fixed in 7.3-rc1 with commit 0b6d055edb55ecadadf54e930c2b4fab76fa9a5a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-93170

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/dma/xilinx/xilinx_dma.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/7f4b989d7d87381927b98d64492f8dcf979f57ab
	https://git.kernel.org/stable/c/5459e02707b27a964ae72e028d3ff72a3b687c4a
	https://git.kernel.org/stable/c/425630e9eea1f9f8912b8c6abf01e0dab1e27917
	https://git.kernel.org/stable/c/fdaf297ab275c6efecac5e87669c31bc89b74297
	https://git.kernel.org/stable/c/c27d16fd2358b2fc3e1ffaca03afd11dc28630ea
	https://git.kernel.org/stable/c/ec927657524be4438447944a58173c7baf7f2384
	https://git.kernel.org/stable/c/c3e943490ced0b9ad475844eda7661f6a9bcfb4a
	https://git.kernel.org/stable/c/0b6d055edb55ecadadf54e930c2b4fab76fa9a5a