Skip to contentSkip to conversation

CVE-2026-93040: dmaengine: dw-edma: Serialize channel state checks

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: dw-edma: Serialize channel state checks

pause() and resume() read and update channel state without holding vc.lock, while the interrupt handlers update the same state under it. Take the same lock around those state checks so that request, status, and configured stay consistent.

For example, pause() can observe EDMA_ST_BUSY right before the interrupt handler completes the final descriptor and moves the channel to EDMA_ST_IDLE, and then record EDMA_REQ_PAUSE on an already idle channel. No further interrupt will acknowledge the request, and since issue_pending() requires EDMA_REQ_NONE, the channel is wedged for good: terminate_all() leaves the stale request behind, so even reconfiguring the channel does not recover it.

issue_pending() already runs under vc.lock, but it tests configured before taking it. Move that test under the lock as well, so configured, request, and status are evaluated as one channel-state snapshot.

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

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

	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 5.10.270 with commit be0072af8ce6e9458cc586e0e8b41a251e7d4316
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 5.15.221 with commit 2d76b91deeab973dd8a8c2ee587ce27f881de768
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.1.188 with commit 3001cfcee30dcc81f8b3774319c12067f126e49a
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.6.157 with commit b6293a8a38f4d5866ce1a264c138265a02e4c53a
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.12.110 with commit da16a02f0998a0d455ce6265b836b29ad92e6e58
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 6.18.52 with commit fe0ffa0190e862ed71e8c1a476090f648c9cb7d9
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 7.2.6 with commit 6fc436e1500c5e4f0dde2a3dbadf6d898057be8f
	Issue introduced in 5.3 with commit e63d79d1ffcd2201a2dbff1d7a1184b8f3ec74cf and fixed in 7.3-rc1 with commit f7d1619f3e10c619b62c6cd6d95371b5c526c85a

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-93040

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/dw-edma/dw-edma-core.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/be0072af8ce6e9458cc586e0e8b41a251e7d4316
	https://git.kernel.org/stable/c/2d76b91deeab973dd8a8c2ee587ce27f881de768
	https://git.kernel.org/stable/c/3001cfcee30dcc81f8b3774319c12067f126e49a
	https://git.kernel.org/stable/c/b6293a8a38f4d5866ce1a264c138265a02e4c53a
	https://git.kernel.org/stable/c/da16a02f0998a0d455ce6265b836b29ad92e6e58
	https://git.kernel.org/stable/c/fe0ffa0190e862ed71e8c1a476090f648c9cb7d9
	https://git.kernel.org/stable/c/6fc436e1500c5e4f0dde2a3dbadf6d898057be8f
	https://git.kernel.org/stable/c/f7d1619f3e10c619b62c6cd6d95371b5c526c85a