drm/v3d: Assign job pointer to NULL before signaling the fence
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
Summary
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---
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.15.177 to before 5.15.178; 6.1.127 to before 6.1.128; 6.6.74 to before 6.6.75; 6.12.11 to before 6.12.12 | 5.15.178, 6.1.128, 6.6.75, 6.12.12 | Patch available | CNA |
| Linux | Linux | 6.13 and later | 5.15.178, 6.1.128, 6.6.75, 6.12.12, 6.13.1, 6.14 | Patch available | CNA |
- Linux VendorLinux Affected 5.15.177 to before 5.15.178; 6.1.127 to before 6.1.128; 6.6.74 to before 6.6.75; 6.12.11 to before 6.12.12 Fixed in 5.15.178, 6.1.128, 6.6.75, 6.12.12 Patch available CNA
- Linux VendorLinux Affected 6.13 and later Fixed in 5.15.178, 6.1.128, 6.6.75, 6.12.12, 6.13.1, 6.14 Patch available CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:5.15.177:*:*:*:*:*:*:* | 5.15.177 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.1.127:*:*:*:*:*:*:* | 6.1.127 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.6.74:*:*:*:*:*:*:* | 6.6.74 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.12.11:*:*:*:*:*:*:* | 6.12.11 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.13:-:*:*:*:*:*:* | 6.13 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:5.15.177:*:*:*:*:*:*:* Versions 5.15.177 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.1.127:*:*:*:*:*:*:* Versions 6.1.127 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.6.74:*:*:*:*:*:*:* Versions 6.6.74 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.12.11:*:*:*:*:*:*:* Versions 6.12.11 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.13:-:*:*:*:*:*:* Versions 6.13 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.15.178, 6.1.128, 6.6.75, 6.12.12
- Fix · CNA Linux (Linux) Fixed in 5.15.178, 6.1.128, 6.6.75, 6.12.12, 6.13.1, 6.14
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
Not affected: 4 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2025-21688
- 2026-10-03 Alias added: GHSA-gjcc-jpc7-jff7
References
Patch 8
- https://git.kernel.org/stable/c/9793206fbf5293534c3a79d78f196e2cbb48c22d
- https://git.kernel.org/stable/c/1f66a3a1a516e4d545906916b3f3c8d1c5e909e6
- https://git.kernel.org/stable/c/6cfafcad46e95351c477da0ae7e3acb8f7550ada
- https://git.kernel.org/stable/c/a9401cd5d1bb5a0b8d2bef09623ca43551cd6e8a
- https://git.kernel.org/stable/c/431fb709db434565b5e7cee82a11bd681a794fd3
- https://git.kernel.org/stable/c/01a7e3a43ee2e6607169a75889412344c10b37fd
- https://git.kernel.org/stable/c/3059e7aaa280daea57bb069fbc65225e1bb95014
- https://git.kernel.org/stable/c/6e64d6b3a3c39655de56682ec83e894978d23412
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2025-21688 · CVE Program
- CVE-2025-21688 · NVD
- FIRST EPSS
- GHSA-gjcc-jpc7-jff7 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-21688 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences