# CVE-2025-71221: dmaengine: mmp\_pdma: Fix race condition in mmp\_pdma\_residue()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-14 · Modified: 2026-11-10
- Aliases: UBUNTU-CVE-2025-71221, DEBIAN-CVE-2025-71221, CGA-284g-48h7-6pmq, CGA-28p5-4h86-jcgw, CGA-3c95-8854-7v7p, CGA-3p49-r64v-9phx, CGA-3rwx-2f75-vxgj, CGA-472v-qwfc-9xfw, CGA-49g7-6xgr-48h4, CGA-55c6-jvqv-34g6, CGA-59pj-ff83-2xrr, CGA-674m-3xqp-99v3, CGA-8vp9-8w4r-6853, CGA-8x6v-jvj7-8xhg, CGA-c2v3-8r5v-hq4m, CGA-cm89-h375-6833, CGA-g7f9-r6gm-mfcj, CGA-gxp6-qhq7-7rfg, CGA-j33x-9977-fxww, CGA-pr4j-qqc4-fv3m, CGA-q729-343r-p47q, CGA-r3g9-98mw-mj27, CGA-r95p-j3rp-vxvx, CGA-v896-w88x-32vp, CGA-vwwr-2v9x-9j9m, CGA-wf6v-7gqw-w589, CGA-x9rv-5vw2-6r3f
- Record: https://cvemate.com/vulnerability/CVE-2025-71221 · JSON: https://cvemate.com/vulnerability/CVE-2025-71221/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

dmaengine: mmp_pdma: Fix race condition in mmp_pdma_residue()

Add proper locking in mmp_pdma_residue() to prevent use-after-free when
accessing descriptor list and descriptor contents.

The race occurs when multiple threads call tx_status() while the tasklet
on another CPU is freeing completed descriptors:

CPU 0                              CPU 1
-----                              -----
mmp_pdma_tx_status()
mmp_pdma_residue()
  -> NO LOCK held
     list_for_each_entry(sw, ..)
                                   DMA interrupt
                                   dma_do_tasklet()
                                     -> spin_lock(&desc_lock)
                                        list_move(sw->node, ...)
                                        spin_unlock(&desc_lock)
  |                                     dma_pool_free(sw) <- FREED!
  -> access sw->desc <- UAF!

This issue can be reproduced when running dmatest on the same channel with
multiple threads (threads_per_chan > 1).

Fix by protecting the chain_running list iteration and descriptor access
with the chan->desc_lock spinlock.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.14%, percentile 3.508%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 166)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.77-r2 \| \< 6.12.78-r0 \| \< 6.12.77-r1 \| \< 6.12.80-r0
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.77-r1 \| \< 6.12.78-r0 \| \< 6.12.80-r0 \| \< 6.12.77-r2
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.77-r2 \| \< 6.12.80-r0 \| \< 6.12.78-r0 \| \< 6.12.77-r1
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.77-r1 \| \< 6.12.80-r0 \| \< 6.12.77-r2 \| \< 6.12.78-r0
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.77-r2 \| \< 6.12.80-r0 \| \< 6.12.78-r0 \| \< 6.12.77-r1
- debian linux (Debian): \< 6.1.170-1 \| \< 6.12.85-1 \| \< 6.18.10-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-186.196 \| \< 6.8.0-136.136
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119 \| \< 6.8.0-1061.64
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 43)

- <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>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://ubuntu.com/security/CVE-2025-71221>
- <https://www.cve.org/CVERecord?id=CVE-2025-71221>
- <https://git.kernel.org/linus/a143545855bc2c6e1330f6f57ae375ac44af00a7>
- <https://ubuntu.com/security/notices/USN-8567-1>
- <https://ubuntu.com/security/notices/USN-8574-1>
- <https://ubuntu.com/security/notices/USN-8575-1>
- <https://ubuntu.com/security/notices/USN-8576-1>
- <https://ubuntu.com/security/notices/USN-8574-2>
- <https://ubuntu.com/security/notices/USN-8595-1>
- <https://ubuntu.com/security/notices/USN-8596-1>
- <https://ubuntu.com/security/notices/USN-8575-2>
- <https://ubuntu.com/security/notices/USN-8576-2>

---

Data as of 2026-12-05T06:34:25.164Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
