# CVE-2025-38584: padata: Fix pd UAF once and for all

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-19 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-38584, DEBIAN-CVE-2025-38584, CGA-279f-xj33-3wjv, CGA-27qq-j82w-8hr6, CGA-294v-85g4-pc49, CGA-2xrw-9vw7-5r25, CGA-33hr-p682-cp47, CGA-3gj8-6x2m-2478, CGA-3mxg-xm5r-qjfr, CGA-3wvf-vmc2-qgfq, CGA-4673-c542-9mwq, CGA-49r3-7gqx-wjgr, CGA-4cfj-7qc5-645p, CGA-4f57-f335-62w3, CGA-4qx5-mv5v-54rg, CGA-4xhj-q6vg-m73q, CGA-537q-836w-ghw4, CGA-53fj-vmcv-cpc3, CGA-56hq-4gf8-5wvx, CGA-5867-gpv2-4xhh, CGA-5c48-jr7m-p3c9, CGA-5fg5-w4p2-8ggp, CGA-5jp5-pwch-qcfv, CGA-66jc-hxqp-9x7q, CGA-6g7p-f63h-xh8x, CGA-723f-qmf7-p5vm, CGA-723j-4mwx-8jm3, CGA-72qf-6p8m-7mvx, CGA-7f2h-mpfr-5m24, CGA-7f6x-j357-mc75, CGA-7f73-rjmg-cqv5, CGA-7j9c-56wf-p974, CGA-7jh4-2w43-5ppf, CGA-84p4-jfxg-9326, CGA-86f4-w7q5-v2hf, CGA-885h-g3qf-wch4, CGA-8f25-8pc7-wjm3, CGA-8fwg-3qm6-rqfp, CGA-8g24-7p56-r7xh, CGA-8jgw-9r2g-r949, CGA-8jj6-8hr8-2h67, CGA-8pgg-gxcc-qq3h, CGA-8wgf-c6q5-5prw, CGA-92h4-4rm4-pgm5, CGA-9m3g-6v5p-8qqp, CGA-9rj6-6x9w-vc25, CGA-9x6h-cr3h-48c5, CGA-cx5x-ggcw-fpq6, CGA-f26f-2mv4-cm2c, CGA-f7rq-xc2p-mf6h, CGA-f8c7-hv2q-r62h, CGA-f8w4-7hv9-j7j6, CGA-f9c8-jrxg-rm2x, CGA-ff2r-2xv3-v3wv, CGA-fgf6-hxp9-xjc6, CGA-fwxg-cjp5-6w27, CGA-g3gp-688j-j33c, CGA-g5m4-5457-5f78, CGA-g6mm-q2f6-6h44, CGA-g6xm-hqxj-4cq6, CGA-gj7q-89r3-x345, CGA-hm9x-49vv-grrr, CGA-hq7h-mcxw-7r4f, CGA-hxc2-563f-hh24, CGA-j5qw-6g83-r265, CGA-jchj-c5cj-h6vx, CGA-jff4-c2cv-hgff, CGA-jfm9-q9gf-7cr7, CGA-m2cj-3wq4-rcfg, CGA-m4p5-f5v5-jqqg, CGA-m52m-q43x-f2w6, CGA-mcq7-ffjp-95j4, CGA-mffx-x9j2-qfvp, CGA-mj48-hxf7-25j7, CGA-mmh3-8c3v-vjvh, CGA-mqm5-324w-2mq6, CGA-mv65-8598-rhx7, CGA-mvrj-vcpx-cmwh, CGA-mwfh-x3vj-qq8p, CGA-mxfg-6c7h-hvcg, CGA-p843-9w85-3w7x, CGA-pgf7-973x-v478, CGA-ph9q-pxv7-wx9g, CGA-pvqf-8g8p-xwpq, CGA-q46v-xm8j-9fj6, CGA-q5jf-cwm6-q3c4, CGA-q7x9-j3cm-pp83, CGA-q9rh-4wc2-gwm9, CGA-qc7g-xr9g-fjjq, CGA-qg64-cwhq-g5jv, CGA-rmh7-ph5f-r2h4, CGA-rqmq-588f-8mj9, CGA-rr2v-62g3-c8qq, CGA-rrq4-5mpw-wcgm, CGA-rx27-m6f5-crp8, CGA-v683-3fp3-2vrr, CGA-vf3q-grxf-836q, CGA-vfgh-69v8-w565, CGA-vqw6-jq5c-42hr, CGA-vvcj-4qxr-48vc, CGA-vw6x-h79x-xp4g, CGA-w293-jg7h-347c, CGA-w7w7-4vg3-x2mr, CGA-w838-7fhx-6g3q, CGA-wf3w-q8jr-83fc, CGA-wg8r-cp57-rwg7, CGA-wj56-q4pv-vvr3, CGA-wvrj-v66p-65h9, CGA-wx9v-643m-mr37, CGA-x37f-84g2-ww59, CGA-x3qw-63jm-q93h, CGA-x79r-gcgj-v838, CGA-x7rf-92p9-qqcm, CGA-x9v3-6f66-gc4r, CGA-xph8-xj7h-w62c, CGA-xv39-9cp6-g8w6, CGA-xwjh-64cg-jxcm
- Record: https://cvemate.com/vulnerability/CVE-2025-38584 · JSON: https://cvemate.com/vulnerability/CVE-2025-38584/json

## Description

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

padata: Fix pd UAF once and for all

There is a race condition/UAF in padata_reorder that goes back
to the initial commit.  A reference count is taken at the start
of the process in padata_do_parallel, and released at the end in
padata_serial_worker.

This reference count is (and only is) required for padata_replace
to function correctly.  If padata_replace is never called then
there is no issue.

In the function padata_reorder which serves as the core of padata,
as soon as padata is added to queue->serial.list, and the associated
spin lock released, that padata may be processed and the reference
count on pd would go away.

Fix this by getting the next padata before the squeue->serial lock
is released.

In order to make this possible, simplify padata_reorder by only
calling it once the next padata arrives.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.208%, percentile 11.51%, 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 156)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.77-r1 \| \< 6.12.69-r0 \| \< 6.12.77-r2 \| \< 6.12.62-r1 \| \< 6.12.68-r1 \| \< 6.12.67-r0 \| \< 6.12.65-r1 \| \< 6.12.74-r1 \| \< 6.12.71-r0 \| \< 6.12.77-r0 \| \< 6.12.60-r4 \| \< 6.12.62-r0 \| \< 6.12.65-r0 \| \< 6.12.63-r0 \| \< 6.12.76-r0 \| \< 6.12.78-r0 \| \< 6.12.66-r0 \| \< 6.12.68-r0 \| \< 6.12.80-r0 \| \< 6.12.70-r0 \| \< 6.12.65-r2 \| \< 6.12.72-r1 \| \< 6.12.62-r2 \| \< 6.12.74-r0 \| \< 6.12.72-r0
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.62-r2 \| \< 6.12.63-r0 \| \< 6.12.74-r1 \| \< 6.12.65-r2 \| \< 6.12.77-r0 \| \< 6.12.62-r0 \| \< 6.12.69-r0 \| \< 6.12.74-r0 \| \< 6.12.78-r0 \| \< 6.12.68-r0 \| \< 6.12.60-r3 \| \< 6.12.71-r0 \| \< 6.12.76-r0 \| \< 6.12.77-r2 \| \< 6.12.60-r4 \| \< 6.12.70-r0 \| \< 6.12.80-r0 \| \< 6.12.65-r3 \| \< 6.12.77-r1 \| \< 6.12.65-r4 \| \< 6.12.62-r1 \| \< 6.12.66-r0 \| \< 6.12.72-r0 \| \< 6.12.67-r0 \| \< 6.12.65-r1
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.60-r3 \| \< 6.12.68-r1 \| \< 6.12.65-r2 \| \< 6.12.78-r0 \| \< 6.12.62-r1 \| \< 6.12.62-r0 \| \< 6.12.70-r0 \| \< 6.12.71-r0 \| \< 6.12.76-r0 \| \< 6.12.68-r0 \| \< 6.12.60-r4 \| \< 6.12.69-r0 \| \< 6.12.77-r1 \| \< 6.12.66-r0 \| \< 6.12.65-r0 \| \< 6.12.74-r1 \| \< 6.12.62-r2 \| \< 6.12.77-r2 \| \< 6.12.80-r0 \| \< 6.12.72-r0 \| \< 6.12.67-r0 \| \< 6.12.63-r0 \| \< 6.12.77-r0 \| \< 6.12.65-r1 \| \< 6.12.74-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.78-r0 \| \< 6.12.65-r2 \| \< 6.12.68-r0 \| \< 6.12.66-r0 \| \< 6.12.77-r2 \| \< 6.12.77-r1 \| \< 6.12.74-r0 \| \< 6.12.77-r0 \| \< 6.12.76-r0 \| \< 6.12.69-r0 \| \< 6.12.72-r0 \| \< 6.12.74-r1 \| \< 6.12.80-r0 \| \< 6.12.65-r1 \| \< 6.12.70-r0 \| \< 6.12.67-r0 \| \< 6.12.71-r0
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.78-r0 \| \< 6.12.76-r0 \| \< 6.12.65-r2 \| \< 6.12.80-r0 \| \< 6.12.68-r1 \| \< 6.12.70-r0 \| \< 6.12.65-r1 \| \< 6.12.66-r0 \| \< 6.12.69-r0 \| \< 6.12.77-r0 \| \< 6.12.77-r1 \| \< 6.12.77-r2 \| \< 6.12.74-r0 \| \< 6.12.74-r1 \| \< 6.12.68-r0 \| \< 6.12.72-r0 \| \< 6.12.67-r0 \| \< 6.12.71-r0
- debian linux (Debian): \< 6.1.176-1 \| \< 6.12.86-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-170.180 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1100.107 \| \< 6.8.0-1046.49
- 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-1100.107~20.04.2
- 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): \< 6.14.0-1017.17~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 52)

- <https://git.kernel.org/stable/c/a2048e475e22b13dc3e53d485b7e6e11464ed9a6>
- <https://git.kernel.org/stable/c/73f132e60857038416540c3599b1de6033d7575a>
- <https://git.kernel.org/stable/c/609e59193fc6d9dd323f1c6ae1fdd721f1c79680>
- <https://git.kernel.org/stable/c/a11a12a9880ab37342b73c93cfe1a3ada02ff0db>
- <https://git.kernel.org/stable/c/f231d5d001ec75f5886c02d496a4c79edc383d45>
- <https://git.kernel.org/stable/c/dbe3e911a59bda6de96e7cae387ff882c2c177fa>
- <https://git.kernel.org/stable/c/cdf79bd2e1ecb3cc75631c73d8f4149be6019a52>
- <https://git.kernel.org/stable/c/71203f68c7749609d7fc8ae6ad054bdedeb24f91>
- <https://ubuntu.com/security/CVE-2025-38584>
- <https://www.cve.org/CVERecord?id=CVE-2025-38584>
- <https://git.kernel.org/linus/71203f68c7749609d7fc8ae6ad054bdedeb24f91>
- <https://ubuntu.com/security/notices/USN-7879-1>
- <https://ubuntu.com/security/notices/USN-7879-2>
- <https://ubuntu.com/security/notices/USN-7880-1>
- <https://ubuntu.com/security/notices/USN-7879-3>
- <https://ubuntu.com/security/notices/USN-7879-4>
- <https://ubuntu.com/security/notices/USN-7934-1>
- <https://ubuntu.com/security/notices/USN-8028-1>
- <https://ubuntu.com/security/notices/USN-8028-2>
- <https://ubuntu.com/security/notices/USN-8031-1>

---

Data as of 2026-12-05T06:22:37.395Z. 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
