CVE-2026-72148: dmaengine: dw-edma: Add spinlock to protect DONE_INT_MASK and ABORT_INT_MASK
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: dw-edma: Add spinlock to protect DONE_INT_MASK and ABORT_INT_MASK
The DONE_INT_MASK and ABORT_INT_MASK registers are shared by all DMA channels, and modifying them requires a read-modify-write sequence. Because this operation is not atomic, concurrent calls to dw_edma_v0_core_start() can introduce race conditions if two channels update these registers simultaneously.
Add a spinlock to serialize access to these registers and prevent race conditions.
[den: update dw_edma.lock comment]
The Linux kernel CVE team has assigned CVE-2026-72148 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit 7e4b8a4fbe2cecab0959e862604803d063f50029 and fixed in 6.1.178 with commit 2247cc25a91fb1b5b86586ed55fdd5b725a7477c Issue introduced in 5.3 with commit 7e4b8a4fbe2cecab0959e862604803d063f50029 and fixed in 6.6.145 with commit 3ee0f478bb29b4ee892b178179a9a76ddd194149 Issue introduced in 5.3 with commit 7e4b8a4fbe2cecab0959e862604803d063f50029 and fixed in 6.12.97 with commit 21a9834f56d6249aaa6ca7c2d8c182d66c48c3e1 Issue introduced in 5.3 with commit 7e4b8a4fbe2cecab0959e862604803d063f50029 and fixed in 6.18.40 with commit ddbc4a8a4fe296f1fa2e59f7d176fc7c773df640 Issue introduced in 5.3 with commit 7e4b8a4fbe2cecab0959e862604803d063f50029 and fixed in 7.1.5 with commit 1553ca96e9df158d8f37137cf4bf5fb0dc981d94 Issue introduced in 5.3 with commit 7e4b8a4fbe2cecab0959e862604803d063f50029 and fixed in 7.2-rc1 with commit 8ffba0171c6bbce5f093c6dba5a02c0805b31203
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-72148
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.h
drivers/dma/dw-edma/dw-edma-v0-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/2247cc25a91fb1b5b86586ed55fdd5b725a7477c https://git.kernel.org/stable/c/3ee0f478bb29b4ee892b178179a9a76ddd194149 https://git.kernel.org/stable/c/21a9834f56d6249aaa6ca7c2d8c182d66c48c3e1 https://git.kernel.org/stable/c/ddbc4a8a4fe296f1fa2e59f7d176fc7c773df640 https://git.kernel.org/stable/c/1553ca96e9df158d8f37137cf4bf5fb0dc981d94 https://git.kernel.org/stable/c/8ffba0171c6bbce5f093c6dba5a02c0805b31203