# CVE-2025-38189: drm/v3d: Avoid NULL pointer dereference in \`v3d\_job\_update\_stats()\`

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-04T13:37:14.428Z
- **Modified:** 2026-08-05T12:00:14.943Z

## Who should check

- Anyone running Linux \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< c886784000934d5486621106da0614c85bcd76a8; \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< 4f4701489d0f768a232b10d281491184f34bacf0; \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< e1bc3a13bd775791cca0bb144d977b00f3598042
- Anyone running Linux 6.8

## Description

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

drm/v3d: Avoid NULL pointer dereference in \`v3d\_job\_update\_stats()\`

The following kernel Oops was recently reported by Mesa CI:

\[  800.139824\] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000588
\[  800.148619\] Mem abort info:
\[  800.151402\]   ESR = 0x0000000096000005
\[  800.155141\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[  800.160444\]   SET = 0, FnV = 0
\[  800.163488\]   EA = 0, S1PTW = 0
\[  800.166619\]   FSC = 0x05: level 1 translation fault
\[  800.171487\] Data abort info:
\[  800.174357\]   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
\[  800.179832\]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
\[  800.184873\]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[  800.190176\] user pgtable: 4k pages, 39-bit VAs, pgdp=00000001014c2000
\[  800.196607\] \[0000000000000588\] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
\[  800.205305\] Internal error: Oops: 0000000096000005 \[\#1\] PREEMPT SMP
\[  800.211564\] Modules linked in: vc4 snd\_soc\_hdmi\_codec drm\_display\_helper v3d cec gpu\_sched drm\_dma\_helper drm\_shmem\_helper drm\_kms\_helper drm drm\_panel\_orientation\_quirks snd\_soc\_core snd\_compress snd\_pcm\_dmaengine snd\_pcm i2c\_brcmstb snd\_timer snd backlight
\[  800.234448\] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.12.25+rpt-rpi-v8 \#1  Debian 1:6.12.25-1+rpt1
\[  800.244182\] Hardware name: Raspberry Pi 4 Model B Rev 1.4 (DT)
\[  800.250005\] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  800.256959\] pc : v3d\_job\_update\_stats+0x60/0x130 \[v3d\]
\[  800.262112\] lr : v3d\_job\_update\_stats+0x48/0x130 \[v3d\]
\[  800.267251\] sp : ffffffc080003e60
\[  800.270555\] x29: ffffffc080003e60 x28: ffffffd842784980 x27: 0224012000000000
\[  800.277687\] x26: ffffffd84277f630 x25: ffffff81012fd800 x24: 0000000000000020
\[  800.284818\] x23: ffffff8040238b08 x22: 0000000000000570 x21: 0000000000000158
\[  800.291948\] x20: 0000000000000000 x19: ffffff8040238000 x18: 0000000000000000
\[  800.299078\] x17: ffffffa8c1bd2000 x16: ffffffc080000000 x15: 0000000000000000
\[  800.306208\] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
\[  800.313338\] x11: 0000000000000040 x10: 0000000000001a40 x9 : ffffffd83b39757c
\[  800.320468\] x8 : ffffffd842786420 x7 : 7fffffffffffffff x6 : 0000000000ef32b0
\[  800.327598\] x5 : 00ffffffffffffff x4 : 0000000000000015 x3 : ffffffd842784980
\[  800.334728\] x2 : 0000000000000004 x1 : 0000000000010002 x0 : 000000ba4c0ca382
\[  800.341859\] Call trace:
\[  800.344294\]  v3d\_job\_update\_stats+0x60/0x130 \[v3d\]
\[  800.349086\]  v3d\_irq+0x124/0x2e0 \[v3d\]
\[  800.352835\]  \_\_handle\_irq\_event\_percpu+0x58/0x218
\[  800.357539\]  handle\_irq\_event+0x54/0xb8
\[  800.361369\]  handle\_fasteoi\_irq+0xac/0x240
\[  800.365458\]  handle\_irq\_desc+0x48/0x68
\[  800.369200\]  generic\_handle\_domain\_irq+0x24/0x38
\[  800.373810\]  gic\_handle\_irq+0x48/0xd8
\[  800.377464\]  call\_on\_irq\_stack+0x24/0x58
\[  800.381379\]  do\_interrupt\_handler+0x88/0x98
\[  800.385554\]  el1\_interrupt+0x34/0x68
\[  800.389123\]  el1h\_64\_irq\_handler+0x18/0x28
\[  800.393211\]  el1h\_64\_irq+0x64/0x68
\[  800.396603\]  default\_idle\_call+0x3c/0x168
\[  800.400606\]  do\_idle+0x1fc/0x230
\[  800.403827\]  cpu\_startup\_entry+0x40/0x50
\[  800.407742\]  rest\_init+0xe4/0xf0
\[  800.410962\]  start\_kernel+0x5e8/0x790
\[  800.414616\]  \_\_primary\_switched+0x80/0x90
\[  800.418622\] Code: 8b170277 8b160296 11000421 b9000861 (b9401ac1)
\[  800.424707\] ---\[ end trace 0000000000000000 \]---
\[  800.457313\] ---\[ end Kernel panic - not syncing: Oops: Fatal exception in interrupt \]---

This issue happens when the file descriptor is closed before the jobs
submitted by it are completed. When the job completes, we update the
global GPU stats and the per-fd GPU stats, which are exposed through
fdinfo. If the file descriptor was closed, then the struct \`v3d\_file\_priv\`
and its stats were already freed and we can't update the per-fd stats.

Therefore, if the file descriptor was already closed, don't u
---truncated---

## Affected and fixed versions

- Linux: \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< c886784000934d5486621106da0614c85bcd76a8; \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< 4f4701489d0f768a232b10d281491184f34bacf0; \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< e1bc3a13bd775791cca0bb144d977b00f3598042 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38189. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38189.md
Affected: Linux >= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, < c886784000934d5486621106da0614c85bcd76a8; >= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, < 4f4701489d0f768a232b10d281491184f34bacf0; >= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, < e1bc3a13bd775791cca0bb144d977b00f3598042; Linux 6.8
Fixed in: Linux 4f4701489d0f768a232b10d281491184f34bacf0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38189 being exploited?

There is no confirmed exploitation: CVE-2025-38189 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38189?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38189?

Linux \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< c886784000934d5486621106da0614c85bcd76a8; \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< 4f4701489d0f768a232b10d281491184f34bacf0; \>= 09a93cc4f7d1893777f6b788bffe60d64e4d5df7, \< e1bc3a13bd775791cca0bb144d977b00f3598042; Linux 6.8.

### Is there a fix for CVE-2025-38189?

Yes. Fixed in Linux 4f4701489d0f768a232b10d281491184f34bacf0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38189?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c886784000934d5486621106da0614c85bcd76a8>
- patch: <https://git.kernel.org/stable/c/4f4701489d0f768a232b10d281491184f34bacf0>
- patch: <https://git.kernel.org/stable/c/e1bc3a13bd775791cca0bb144d977b00f3598042>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38189>

HTML: <https://flawdb.com/CVE-2025-38189> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38189>
