{"id":"CVE-2026-139740","aliases":["CVE-2026-139740"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: xilinx_dma: Move descriptors to done list based on completion bit","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: xilinx_dma: Move descriptors to done list based on completion bit\n\nIn AXI MCDMA, xilinx_dma_complete_descriptor() walks the channel's\nactive_list and unconditionally moves every entry to the done_list. The\nMCDMA IOC interrupt handler invokes this function on every\ninterrupt-on-completion, but with interrupt coalescing (IRQThreshold > 1)\nan IOC interrupt may fire after only a subset of the queued descriptors\nhave actually been processed by the hardware. As a result, descriptors\nwhose completion bit is not yet set in the BD status were being reported\nas completed to client drivers.\n\nAdd a check for the descriptor completion bit before moving entries from\nthe active list to the done list, using the appropriate direction-\nspecific status field (s2mm_status for DMA_DEV_TO_MEM, mm2s_status for\nDMA_MEM_TO_DEV).\n\nThis mirrors the AXIDMA fix in commit 7bcdaa658102 (\"dmaengine:\nxilinx_dma: Freeup active list based on descriptor completion bit\").","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: xilinx_dma: Move descriptors to done list based on completion bit\n\nIn AXI MCDMA, xilinx_dma_complete_descriptor() walks the channel's\nactive_list and unconditionally moves every entry to the done_list. The\nMCDMA IOC interrupt handler invokes this function on every\ninterrupt-on-completion, but with interrupt coalescing (IRQThreshold > 1)\nan IOC interrupt may fire after only a subset of the queued descriptors\nhave actually been processed by the hardware. As a result, descriptors\nwhose completion bit is not yet set in the BD status were being reported\nas completed to client drivers.\n\nAdd a check for the descriptor completion bit before moving entries from\nthe active list to the done list, using the appropriate direction-\nspecific status field (s2mm_status for DMA_DEV_TO_MEM, mm2s_status for\nDMA_MEM_TO_DEV).\n\nThis mirrors the AXIDMA fix in commit 7bcdaa658102 (\"dmaengine:\nxilinx_dma: Freeup active list based on descriptor completion bit\").","source":"cvelist"}],"published":"2026-11-30T13:37:32.280Z","modified":"2026-11-30T14:20:06.263Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"66590fdaebdd5fe18e8fae60de1b5f24fe112d00","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"2a17053016c7441a741bb6f05049134bdd9f7090","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"0ea00f9346bff74c980feff2158d6e6929681310","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"763c58e14dadac95a0e4faddac7281a8bb5101a4","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"484671b5d0074c0745f55717451e5e741b3fc94b","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"a46a5393c1eab0bb111783be686626247270b6f2","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"a4c863dab7f9a0bdfd814d8594a2543f799b2f7d","status":"affected"},{"type":"git","introduced":"6ccd692bfb7fc44a6b4acd97874d8be78ecb5c91","fixed":"5b585cc8778185ae7a7c9903f8cd70d562b91282","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/66590fdaebdd5fe18e8fae60de1b5f24fe112d00","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a17053016c7441a741bb6f05049134bdd9f7090","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ea00f9346bff74c980feff2158d6e6929681310","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/763c58e14dadac95a0e4faddac7281a8bb5101a4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/484671b5d0074c0745f55717451e5e741b3fc94b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a46a5393c1eab0bb111783be686626247270b6f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a4c863dab7f9a0bdfd814d8594a2543f799b2f7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b585cc8778185ae7a7c9903f8cd70d562b91282","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139740","url":"https://www.cve.org/CVERecord?id=CVE-2026-139740","licence":"CVE Terms of Use","modified":"2026-11-30T13:37:32.280Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139740","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139740","licence":"Public domain","modified":"2026-11-30T14:20:06.263Z"}],"updatedAt":"2026-11-30T14:33:31.541Z","epss":{"score":0.0037,"percentile":0.32968,"date":"2026-12-01T12:00:22.000Z"}}