dmaengine: dw-edma: Add spinlock to protect DONE_INT_MASK and ABORT_INT_MASK
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7e4b8a4fbe2cecab0959e862604803d063f50029 · < ddbc4a8a4fe296f1fa2e59f7d176fc7c773df640| No fix yet |
| Linux Linux |
|
|
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]
From the CVE record · Linux
The Linux kernel's dw-edma driver does not serialize updates to interrupt-mask registers shared by DMA channels. Concurrent calls to start two channels can race when updating those registers; the input does not specify an attacker access requirement or user interaction.
Anyone running a Linux kernel with the dw-edma driver should check their version; affected versions are not specified.