{"id":"CVE-2025-71221","revision":"5b65f397333a4da18b72c9f0c72b44c6","records":[{"revision":"5b65f397333a4da18b72c9f0c72b44c6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-71221","aliases":[],"title":"dmaengine: mmp_pdma: Fix race condition in mmp_pdma_residue()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: mmp_pdma: Fix race condition in mmp_pdma_residue()\n\nAdd proper locking in mmp_pdma_residue() to prevent use-after-free when\naccessing descriptor list and descriptor contents.\n\nThe race occurs when multiple threads call tx_status() while the tasklet\non another CPU is freeing completed descriptors:\n\nCPU 0                              CPU 1\n-----                              -----\nmmp_pdma_tx_status()\nmmp_pdma_residue()\n  -> NO LOCK held\n     list_for_each_entry(sw, ..)\n                                   DMA interrupt\n                                   dma_do_tasklet()\n                                     -> spin_lock(&desc_lock)\n                                        list_move(sw->node, ...)\n                                        spin_unlock(&desc_lock)\n  |                                     dma_pool_free(sw) <- FREED!\n  -> access sw->desc <- UAF!\n\nThis issue can be reproduced when running dmatest on the same channel with\nmultiple threads (threads_per_chan > 1).\n\nFix by protecting the chain_running list iteration and descriptor access\nwith the chan->desc_lock spinlock.","state":0,"publishedAt":"2026-02-14T16:27:04.631+00:00","modifiedAt":"2026-10-15T01:11:14.914+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/dma/mmp_pdma.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"1b38da264674d6a0fe26a63996b8f88b88c3da48\",\n                            \"lessThan\": \"3f0e0e2d9e752570041e95fd04635e2580097819\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1b38da264674d6a0fe26a63996b8f88b88c3da48\",\n                            \"lessThan\": \"dfb5e05227745de43b7fd589721817a4337c970d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1b38da264674d6a0fe26a63996b8f88b88c3da48\",\n                            \"lessThan\": \"eba0c75670c022cb1f948600db972524bcfe8166\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1b38da264674d6a0fe26a63996b8f88b88c3da48\",\n                            \"lessThan\": \"fc023b8fab057f0c910856ff36d3e12a30b7af4a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1b38da264674d6a0fe26a63996b8f88b88c3da48\",\n                            \"lessThan\": \"9f665b3c3d9a168410251f27a5d019b7bf93185c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"1b38da264674d6a0fe26a63996b8f88b88c3da48\",\n                            \"lessThan\": \"a143545855bc2c6e1330f6f57ae375ac44af00a7\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/dma/mmp_pdma.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"3.16\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"3.16\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.209\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.167\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.130\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.78\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.10\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.19\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/3f0e0e2d9e752570041e95fd04635e2580097819","https://git.kernel.org/stable/c/dfb5e05227745de43b7fd589721817a4337c970d","https://git.kernel.org/stable/c/eba0c75670c022cb1f948600db972524bcfe8166","https://git.kernel.org/stable/c/fc023b8fab057f0c910856ff36d3e12a30b7af4a","https://git.kernel.org/stable/c/9f665b3c3d9a168410251f27a5d019b7bf93185c","https://git.kernel.org/stable/c/a143545855bc2c6e1330f6f57ae375ac44af00a7"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-71221","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-71221","identifiers":["CVE-2025-71221"]},"retained":false,"historicalAffected":[]}],"coverage":[]}