# CVE-2025-38187: drm/nouveau: fix a use-after-free in r535_gsp_rpc_push()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:13.126Z
- Modified: 2026-10-21T13:18:09.247Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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 ]

(As written by CVE List.)

## Affected

- Linux Linux: from 176fdcbddfd288408ce8571c1760ad618d962096 before 69270d24af7694494ac4116bcad30a812ca49ca7; from 176fdcbddfd288408ce8571c1760ad618d962096 before cd4677407c0ee250fc21e36439c8a442ddd62cc1; from 176fdcbddfd288408ce8571c1760ad618d962096 before 9802f0a63b641f4cddb2139c814c2e95cb825099; 6.7 (not affected: before 6.7; from 6.12.114 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.7 before 6.15.4; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/69270d24af7694494ac4116bcad30a812ca49ca7>
- <https://git.kernel.org/stable/c/cd4677407c0ee250fc21e36439c8a442ddd62cc1> (patch)
- <https://git.kernel.org/stable/c/9802f0a63b641f4cddb2139c814c2e95cb825099> (patch)

## Sources

- CVE List: [CVE-2025-38187](https://www.cve.org/CVERecord?id=CVE-2025-38187), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2025-38187](https://nvd.nist.gov/vuln/detail/CVE-2025-38187), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2025-38187 · Whole record: https://cve.day/CVE-2025-38187.json · Rebuilt by cve.day 2026-11-25T22:59:00.630Z
