dmaengine: xilinx_dma: Fix channel idle state management in AXIDMA and MCDMA interrupt handlers
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in 7f4b989d7d87381927b98d64492f8dcf979f57ab; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in 5459e02707b27a964ae72e028d3ff72a3b687c4a; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in 425630e9eea1f9f8912b8c6abf01e0dab1e27917; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in fdaf297ab275c6efecac5e87669c31bc89b74297; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in c27d16fd2358b2fc3e1ffaca03afd11dc28630ea; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in ec927657524be4438447944a58173c7baf7f2384; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in c3e943490ced0b9ad475844eda7661f6a9bcfb4a; From c0bba3a99f0709c24c2c7ada7cb098966b1d791f · fixed in 0b6d055edb55ecadadf54e930c2b4fab76fa9a5a
- Linux Linux
4.7
- KernelLinux
From 4.7.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/7f4b989d7d87381927b98d64492f8dcf979f57ab
- stable/c/5459e02707b27a964ae72e028d3ff72a3b687c4a
- stable/c/425630e9eea1f9f8912b8c6abf01e0dab1e27917
- stable/c/fdaf297ab275c6efecac5e87669c31bc89b74297
- stable/c/c27d16fd2358b2fc3e1ffaca03afd11dc28630ea
- stable/c/ec927657524be4438447944a58173c7baf7f2384
- stable/c/c3e943490ced0b9ad475844eda7661f6a9bcfb4a
- stable/c/0b6d055edb55ecadadf54e930c2b4fab76fa9a5a