dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c0bba3a99f0709c24c2c7ada7cb098966b1d791f · < ec927657524be4438447944a58173c7baf7f2384| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
A race condition in the Linux kernel's AXIDMA and MCDMA interrupt handlers can mark a channel idle while descriptors are still active, causing premature transfer attempts, potential descriptor corruption, or missed completions. It occurs when multiple descriptors are queued and an interrupt fires after some complete. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels that use the xilinx_dma AXIDMA or MCDMA handlers should check their deployments; affected versions are not specified.