# CVE-2025-21688: drm/v3d: Assign job pointer to NULL before signaling the fence

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-02-10T15:58:44.717Z
- **Modified:** 2026-06-17T08:44:01.470Z

## Who should check

- Anyone running Linux \>= 1bd6303d08c85072ce40ac01a767ab67195105bd, \< 9793206fbf5293534c3a79d78f196e2cbb48c22d; \>= a34050f70e7955a359874dff1a912a748724a140, \< 1f66a3a1a516e4d545906916b3f3c8d1c5e909e6; \>= 14e0a874488e79086340ba8e2d238cb9596b68a8, \< 6cfafcad46e95351c477da0ae7e3acb8f7550ada; \>= 2a1c88f7ca5c12dff6fa6787492ac910bb9e4407, \< a9401cd5d1bb5a0b8d2bef09623ca43551cd6e8a; \>= 63195bae1cbf78f1d392b1bc9ae4b03c82d0ebf3, \< 431fb709db434565b5e7cee82a11bd681a794fd3; \>= b22467b1ae104073dcb11aa78562a331cd7fb0e0, \< 01a7e3a43ee2e6607169a75889412344c10b37fd; \>= e4b5ccd392b92300a2b341705cc4805681094e49, \< 3059e7aaa280daea57bb069fbc65225e1bb95014; \>= e4b5ccd392b92300a2b341705cc4805681094e49, \< 6e64d6b3a3c39655de56682ec83e894978d23412; \>= 5.15.177, \< 5.15.178; \>= 6.1.127, \< 6.1.128; …
- Anyone running Linux 6.13

## Description

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

drm/v3d: Assign job pointer to NULL before signaling the fence

In commit e4b5ccd392b9 ("drm/v3d: Ensure job pointer is set to NULL
after job completion"), we introduced a change to assign the job pointer
to NULL after completing a job, indicating job completion.

However, this approach created a race condition between the DRM
scheduler workqueue and the IRQ execution thread. As soon as the fence is
signaled in the IRQ execution thread, a new job starts to be executed.
This results in a race condition where the IRQ execution thread sets the
job pointer to NULL simultaneously as the \`run\_job()\` function assigns
a new job to the pointer.

This race condition can lead to a NULL pointer dereference if the IRQ
execution thread sets the job pointer to NULL after \`run\_job()\` assigns
it to the new job. When the new job completes and the GPU emits an
interrupt, \`v3d\_irq()\` is triggered, potentially causing a crash.

\[  466.310099\] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000c0
\[  466.318928\] Mem abort info:
\[  466.321723\]   ESR = 0x0000000096000005
\[  466.325479\]   EC = 0x25: DABT (current EL), IL = 32 bits
\[  466.330807\]   SET = 0, FnV = 0
\[  466.333864\]   EA = 0, S1PTW = 0
\[  466.337010\]   FSC = 0x05: level 1 translation fault
\[  466.341900\] Data abort info:
\[  466.344783\]   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
\[  466.350285\]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
\[  466.355350\]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
\[  466.360677\] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000089772000
\[  466.367140\] \[00000000000000c0\] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
\[  466.375875\] Internal error: Oops: 0000000096000005 \[\#1\] PREEMPT SMP
\[  466.382163\] Modules linked in: rfcomm snd\_seq\_dummy snd\_hrtimer snd\_seq snd\_seq\_device algif\_hash algif\_skcipher af\_alg bnep binfmt\_misc vc4 snd\_soc\_hdmi\_codec drm\_display\_helper cec brcmfmac\_wcc spidev rpivid\_hevc(C) drm\_client\_lib brcmfmac hci\_uart drm\_dma\_helper pisp\_be btbcm brcmutil snd\_soc\_core aes\_ce\_blk v4l2\_mem2mem bluetooth aes\_ce\_cipher snd\_compress videobuf2\_dma\_contig ghash\_ce cfg80211 gf128mul snd\_pcm\_dmaengine videobuf2\_memops ecdh\_generic sha2\_ce ecc videobuf2\_v4l2 snd\_pcm v3d sha256\_arm64 rfkill videodev snd\_timer sha1\_ce libaes gpu\_sched snd videobuf2\_common sha1\_generic drm\_shmem\_helper mc rp1\_pio drm\_kms\_helper raspberrypi\_hwmon spi\_bcm2835 gpio\_keys i2c\_brcmstb rp1 raspberrypi\_gpiomem rp1\_mailbox rp1\_adc nvmem\_rmem uio\_pdrv\_genirq uio i2c\_dev drm ledtrig\_pattern drm\_panel\_orientation\_quirks backlight fuse dm\_mod ip\_tables x\_tables ipv6
\[  466.458429\] CPU: 0 UID: 1000 PID: 2008 Comm: chromium Tainted: G         C         6.13.0-v8+ \#18
\[  466.467336\] Tainted: \[C\]=CRAP
\[  466.470306\] Hardware name: Raspberry Pi 5 Model B Rev 1.0 (DT)
\[  466.476157\] pstate: 404000c9 (nZcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[  466.483143\] pc : v3d\_irq+0x118/0x2e0 \[v3d\]
\[  466.487258\] lr : \_\_handle\_irq\_event\_percpu+0x60/0x228
\[  466.492327\] sp : ffffffc080003ea0
\[  466.495646\] x29: ffffffc080003ea0 x28: ffffff80c0c94200 x27: 0000000000000000
\[  466.502807\] x26: ffffffd08dd81d7b x25: ffffff80c0c94200 x24: ffffff8003bdc200
\[  466.509969\] x23: 0000000000000001 x22: 00000000000000a7 x21: 0000000000000000
\[  466.517130\] x20: ffffff8041bb0000 x19: 0000000000000001 x18: 0000000000000000
\[  466.524291\] x17: ffffffafadfb0000 x16: ffffffc080000000 x15: 0000000000000000
\[  466.531452\] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
\[  466.538613\] x11: 0000000000000000 x10: 0000000000000000 x9 : ffffffd08c527eb0
\[  466.545777\] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
\[  466.552941\] x5 : ffffffd08c4100d0 x4 : ffffffafadfb0000 x3 : ffffffc080003f70
\[  466.560102\] x2 : ffffffc0829e8058 x1 : 0000000000000001 x0 : 0000000000000000
\[  466.567263\] Call trace:
\[  466.569711\]  v3d\_irq+0x118/0x2e0 \[v3d\] (P)
\[  466.
---truncated---

## Affected and fixed versions

- Linux: \>= 1bd6303d08c85072ce40ac01a767ab67195105bd, \< 9793206fbf5293534c3a79d78f196e2cbb48c22d; \>= a34050f70e7955a359874dff1a912a748724a140, \< 1f66a3a1a516e4d545906916b3f3c8d1c5e909e6; \>= 14e0a874488e79086340ba8e2d238cb9596b68a8, \< 6cfafcad46e95351c477da0ae7e3acb8f7550ada; \>= 2a1c88f7ca5c12dff6fa6787492ac910bb9e4407, \< a9401cd5d1bb5a0b8d2bef09623ca43551cd6e8a; \>= 63195bae1cbf78f1d392b1bc9ae4b03c82d0ebf3, \< 431fb709db434565b5e7cee82a11bd681a794fd3; \>= b22467b1ae104073dcb11aa78562a331cd7fb0e0, \< 01a7e3a43ee2e6607169a75889412344c10b37fd; \>= e4b5ccd392b92300a2b341705cc4805681094e49, \< 3059e7aaa280daea57bb069fbc65225e1bb95014; \>= e4b5ccd392b92300a2b341705cc4805681094e49, \< 6e64d6b3a3c39655de56682ec83e894978d23412; \>= 5.15.177, \< 5.15.178; \>= 6.1.127, \< 6.1.128; … (cvelist)
- Linux: 6.13 (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-21688. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21688.md
Affected: Linux >= 1bd6303d08c85072ce40ac01a767ab67195105bd, < 9793206fbf5293534c3a79d78f196e2cbb48c22d; >= a34050f70e7955a359874dff1a912a748724a140, < 1f66a3a1a516e4d545906916b3f3c8d1c5e909e6; >= 14e0a874488e79086340ba8e2d238cb9596b68a8, < 6cfafcad46e95351c477da0ae7e3acb8f7550ada; >= 2a1c88f7ca5c12dff6fa678…
Fixed in: Linux 9793206fbf5293534c3a79d78f196e2cbb48c22d, Linux 1f66a3a1a516e4d545906916b3f3c8d1c5e909e6, Linux 6cfafcad46e95351c477da0ae7e3acb8f7550ada, Linux 431fb709db434565b5e7cee82a11bd681a794fd3, Linux 01a7e3a43ee2e6607169a75889412344c10b37fd, Linux 3059e7aaa280daea57bb069fbc65225e1bb95014, Linux 6e64d…

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-21688 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 1bd6303d08c85072ce40ac01a767ab67195105bd, \< 9793206fbf5293534c3a79d78f196e2cbb48c22d; \>= a34050f70e7955a359874dff1a912a748724a140, \< 1f66a3a1a516e4d545906916b3f3c8d1c5e909e6; \>= 14e0a874488e79086340ba8e2d238cb9596b68a8, \< 6cfafcad46e95351c477da0ae7e3acb8f7550ada; \>= 2a1c88f7ca5c12dff6fa6787492ac910bb9e4407, \< a9401cd5d1bb5a0b8d2bef09623ca43551cd6e8a; \>= 63195bae1cbf78f1d392b1bc9ae4b03c82d0ebf3, \< 431fb709db434565b5e7cee82a11bd681a794fd3; \>= b22467b1ae104073dcb11aa78562a331cd7fb0e0, \< 01a7e3a43ee2e6607169a75889412344c10b37fd; \>= e4b5ccd392b92300a2b341705cc4805681094e49, \< 3059e7aaa280daea57bb069fbc65225e1bb95014; \>= e4b5ccd392b92300a2b341705cc4805681094e49, \< 6e64d6b3a3c39655de56682ec83e894978d23412; \>= 5.15.177, \< 5.15.178; \>= 6.1.127, \< 6.1.128; …; Linux 6.13.

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

Yes. Fixed in Linux 9793206fbf5293534c3a79d78f196e2cbb48c22d, Linux 1f66a3a1a516e4d545906916b3f3c8d1c5e909e6, Linux 6cfafcad46e95351c477da0ae7e3acb8f7550ada, Linux 431fb709db434565b5e7cee82a11bd681a794fd3, Linux 01a7e3a43ee2e6607169a75889412344c10b37fd, Linux 3059e7aaa280daea57bb069fbc65225e1bb95014, Linux 6e64d6b3a3c39655de56682ec83e894978d23412, Linux 5.15.178, Linux 6.1.128. No fix listed yet: follow the vendor advisory.

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

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/9793206fbf5293534c3a79d78f196e2cbb48c22d>
- patch: <https://git.kernel.org/stable/c/1f66a3a1a516e4d545906916b3f3c8d1c5e909e6>
- patch: <https://git.kernel.org/stable/c/6cfafcad46e95351c477da0ae7e3acb8f7550ada>
- patch: <https://git.kernel.org/stable/c/a9401cd5d1bb5a0b8d2bef09623ca43551cd6e8a>
- patch: <https://git.kernel.org/stable/c/431fb709db434565b5e7cee82a11bd681a794fd3>
- patch: <https://git.kernel.org/stable/c/01a7e3a43ee2e6607169a75889412344c10b37fd>
- patch: <https://git.kernel.org/stable/c/3059e7aaa280daea57bb069fbc65225e1bb95014>
- patch: <https://git.kernel.org/stable/c/6e64d6b3a3c39655de56682ec83e894978d23412>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## 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-21688>

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