# CVE-2025-38187: drm/nouveau: fix a use-after-free in r535\_gsp\_rpc\_push()

- 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: 2025-07-04 · Modified: 2026-10-21
- Aliases: UBUNTU-CVE-2025-38187, DEBIAN-CVE-2025-38187, CGA-224m-p4hq-8xhh, CGA-2437-xg2v-wvmg, CGA-24v4-2p4j-8jj3, CGA-25cr-6w2q-frq2, CGA-2862-8hq4-fhm3, CGA-29f3-5j74-78wx, CGA-2gj4-frgw-j9fp, CGA-2gv5-xwjp-2vgp, CGA-2jwr-966x-4vc9, CGA-2m53-f92h-93xx, CGA-2mqx-vw75-q5qh, CGA-2vj9-367p-qp85, CGA-35qv-p3xx-fh37, CGA-3frf-fqv9-8xmw, CGA-3xhg-8586-g29w, CGA-44rr-q6xf-4cqp, CGA-44xj-pchf-72xr, CGA-457m-58x6-384m, CGA-458r-23g3-2jv2, CGA-4h4r-w2jr-7qmh, CGA-4r47-cqfv-5m3p, CGA-59rv-7h2j-6g88, CGA-5cm3-9rrp-wp7g, CGA-5qgx-8v3h-x632, CGA-64wj-qqw9-mhwv, CGA-66qm-qcfr-qchh, CGA-67pf-7vph-92p7, CGA-683c-g825-qqw9, CGA-6x9f-r675-chx2, CGA-72vq-q756-754w, CGA-7rq5-mh59-wwfj, CGA-7xjr-3h9f-rp5r, CGA-857f-7fhg-wrvm, CGA-8854-r5jr-m984, CGA-8cm5-46mj-gf83, CGA-8r73-xmvx-6x97, CGA-8vc4-999p-8mwh, CGA-8vvf-g4c5-vxvg, CGA-9424-gjr3-qg9v, CGA-9795-73rc-mq4p, CGA-9g8r-6c67-gfjr, CGA-c5wm-6xhh-r5wv, CGA-cc2r-wxxx-94v2, CGA-f3fh-7wh4-fw5j, CGA-f43v-vmw4-hrw6, CGA-f4px-h73w-w92w, CGA-f6xw-fhm8-673c, CGA-ff44-rjch-9c5w, CGA-fg4r-f43f-6v9j, CGA-fqqf-9q27-g6r6, CGA-fvhq-xg2q-9q3h, CGA-fwrg-5h69-mv37, CGA-g8p8-62xc-qwf7, CGA-gfmg-fp95-c86m, CGA-gqc9-9g55-mwc3, CGA-gvwg-5r9r-rq8g, CGA-gw36-jv44-6c39, CGA-h4v7-r6q2-2m8j, CGA-h6jc-pw54-8wmh, CGA-hgp9-wmvx-fw49, CGA-hgvx-jhg2-gccx, CGA-hqv2-9q43-v6jr, CGA-hvvh-c528-xp5g, CGA-j594-3xrv-g5p9, CGA-jcw5-8q79-8xv8, CGA-jf47-8g59-pgvw, CGA-jfg3-8cgj-xrhj, CGA-jfh5-mgqm-wjmw, CGA-jxc7-43fg-9hr5, CGA-m57w-6v74-mvxr, CGA-m6jm-g2vm-24m8, CGA-m8pr-w85g-f9rr, CGA-mg5r-rvcv-fhrf, CGA-mj97-fv3p-776h, CGA-mjv4-8j76-qxcj, CGA-p7h3-vrvh-3pgh, CGA-p844-95p6-xmhg, CGA-pfvg-2v6v-m2rc, CGA-pjx8-3f9g-h85f, CGA-pqjj-x2x8-x6c3, CGA-pr3p-mhg8-h32j, CGA-pr86-7rv2-m8x7, CGA-q3pq-4j3q-mpfm, CGA-q6ff-jghf-gcjj, CGA-qg8c-8cg8-q368, CGA-qhvc-q6cv-fvrr, CGA-qpv5-hpr3-p57v, CGA-qpwr-2rr9-239m, CGA-qqqh-hrxf-ccvm, CGA-qr8x-pr7f-xrg7, CGA-qxp3-grf7-rffg, CGA-r249-33f8-xh7f, CGA-r323-w4h3-q5vx, CGA-r58m-22pc-pjpx, CGA-r9rm-66x5-hrr5, CGA-rcwv-8rm5-wf25, CGA-rhm8-26q9-7p5j, CGA-rqvv-2cg8-29vw, CGA-v5cc-g997-m767, CGA-v5f2-pv2h-m565, CGA-v853-mq75-49w9, CGA-vj58-h3p4-p8mp, CGA-vrf5-569j-gmmf, CGA-vw24-w4f8-rx44, CGA-vwj9-qc59-j728, CGA-w629-93fm-xm3x, CGA-w93w-cvmp-jrj4, CGA-wf47-r687-5mxg, CGA-wr94-m8c2-435r, CGA-wx7w-6g33-39x4, CGA-x5vw-2g2x-mqj5, CGA-xph9-77hm-3wx2, CGA-xphv-5458-jrrm, CGA-xq43-j2qg-7xxx, CGA-xv2h-4636-fj98
- Record: https://cvemate.com/vulnerability/CVE-2025-38187 · JSON: https://cvemate.com/vulnerability/CVE-2025-38187/json

## Description

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

drm/nouveau: fix a use-after-free in r535_gsp_rpc_push()

The RPC container is released after being passed to r535_gsp_rpc_send().

When sending the initial fragment of a large RPC and passing the
caller's RPC container, the container will be freed prematurely. Subsequent
attempts to send remaining fragments will therefore result in a
use-after-free.

Allocate a temporary RPC container for holding the initial fragment of a
large RPC when sending. Free the caller's container when all fragments
are successfully sent.

[ Rebase onto Blackwell changes. - Danilo ]
```

## 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.229%, percentile 14.583%, 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 133)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.65-r1 \| \< 6.12.67-r0 \| \< 6.12.65-r0 \| \< 6.12.71-r0 \| \< 6.12.62-r0 \| \< 6.12.78-r0 \| \< 6.12.62-r2 \| \< 6.12.63-r0 \| \< 6.12.72-r0 \| \< 6.12.60-r4 \| \< 6.12.70-r0 \| \< 6.12.80-r0 \| \< 6.12.77-r0 \| \< 6.12.69-r0 \| \< 6.12.74-r1 \| \< 6.12.77-r2 \| \< 6.12.77-r1 \| \< 6.12.65-r2 \| \< 6.12.66-r0 \| \< 6.12.74-r0 \| \< 6.12.72-r1 \| \< 6.12.62-r1 \| \< 6.12.76-r0 \| \< 6.12.68-r0 \| \< 6.12.68-r1
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.74-r1 \| \< 6.12.60-r4 \| \< 6.12.66-r0 \| \< 6.12.65-r2 \| \< 6.12.80-r0 \| \< 6.12.62-r2 \| \< 6.12.67-r0 \| \< 6.12.78-r0 \| \< 6.12.70-r0 \| \< 6.12.63-r0 \| \< 6.12.77-r0 \| \< 6.12.60-r3 \| \< 6.12.74-r0 \| \< 6.12.62-r1 \| \< 6.12.68-r0 \| \< 6.12.72-r0 \| \< 6.12.76-r0 \| \< 6.12.65-r1 \| \< 6.12.71-r0 \| \< 6.12.65-r4 \| \< 6.12.69-r0 \| \< 6.12.62-r0 \| \< 6.12.65-r3 \| \< 6.12.77-r2 \| \< 6.12.77-r1
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.67-r0 \| \< 6.12.70-r0 \| \< 6.12.77-r1 \| \< 6.12.63-r0 \| \< 6.12.72-r0 \| \< 6.12.65-r0 \| \< 6.12.65-r1 \| \< 6.12.62-r1 \| \< 6.12.68-r1 \| \< 6.12.76-r0 \| \< 6.12.74-r1 \| \< 6.12.62-r0 \| \< 6.12.65-r2 \| \< 6.12.60-r3 \| \< 6.12.80-r0 \| \< 6.12.77-r0 \| \< 6.12.60-r4 \| \< 6.12.74-r0 \| \< 6.12.68-r0 \| \< 6.12.71-r0 \| \< 6.12.69-r0 \| \< 6.12.77-r2 \| \< 6.12.66-r0 \| \< 6.12.62-r2 \| \< 6.12.78-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.77-r1 \| \< 6.12.70-r0 \| \< 6.12.74-r1 \| \< 6.12.67-r0 \| \< 6.12.76-r0 \| \< 6.12.68-r0 \| \< 6.12.77-r2 \| \< 6.12.72-r0 \| \< 6.12.69-r0 \| \< 6.12.78-r0 \| \< 6.12.66-r0 \| \< 6.12.80-r0 \| \< 6.12.74-r0 \| \< 6.12.65-r1 \| \< 6.12.77-r0 \| \< 6.12.65-r2 \| \< 6.12.71-r0
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.77-r2 \| \< 6.12.76-r0 \| \< 6.12.68-r0 \| \< 6.12.70-r0 \| \< 6.12.67-r0 \| \< 6.12.72-r0 \| \< 6.12.65-r2 \| \< 6.12.77-r0 \| \< 6.12.65-r1 \| \< 6.12.78-r0 \| \< 6.12.74-r1 \| \< 6.12.74-r0 \| \< 6.12.71-r0 \| \< 6.12.80-r0 \| \< 6.12.69-r0 \| \< 6.12.66-r0 \| \< 6.12.77-r1 \| \< 6.12.68-r1
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.115-2 \| \< 6.16.3-1
- debian linux-6.12 (Debian): \< 6.12.115-2~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-147.147
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1067.70
- 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.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (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.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1

## References

- <https://git.kernel.org/stable/c/cd4677407c0ee250fc21e36439c8a442ddd62cc1>
- <https://git.kernel.org/stable/c/9802f0a63b641f4cddb2139c814c2e95cb825099>
- <https://ubuntu.com/security/CVE-2025-38187>
- <https://www.cve.org/CVERecord?id=CVE-2025-38187>
- <https://git.kernel.org/linus/9802f0a63b641f4cddb2139c814c2e95cb825099>
- <https://ubuntu.com/security/notices/USN-8781-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-38187>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38187.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-38187>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>
- <https://ubuntu.com/security/notices/USN-8917-1>
- <https://ubuntu.com/security/notices/USN-8918-1>
- <https://git.kernel.org/stable/c/69270d24af7694494ac4116bcad30a812ca49ca7>
- <https://ubuntu.com/security/notices/USN-9025-1>
- <https://ubuntu.com/security/notices/USN-9024-1>
- <https://ubuntu.com/security/notices/USN-9026-1>
- <https://ubuntu.com/security/notices/USN-9040-1>
- <https://ubuntu.com/security/notices/USN-9066-1>
- <https://ubuntu.com/security/notices/USN-9192-1>

---

Data as of 2026-12-05T03:20:43.709Z. 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
