CVE-2026-64008CWE-416

CVE-2026-64008

High · published July 19, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
6.4
In the wild
Unconfirmed
What it is

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

accel/rocket: fix UAF via dangling GEM handle in create_bo

rocket_ioctl_create_bo() inserts a GEM handle into the file's IDR via

drm_gem_handle_create() early on, then performs several operations that

can fail (sgt allocation, drm_mm insert, iommu_map). If any fail after

the handle is live, the error path calls drm_gem_shmem_object_free()

which kfree's the object without removing the handle from the IDR.

This leaves a dangling handle pointing to freed slab memory. Any

subsequent ioctl using that handle (PREP_BO, FINI_BO, SUBMIT) calls

drm_gem_object_lookup() and dereferences freed memory (UAF).

Fix by moving drm_gem_handle_create() to after all fallible operations

succeed, matching the pattern used by panfrost, lima, and etnaviv.

Also fix drm_mm_insert_node_generic() whose return value was silently

overwritten by iommu_map_sgtable() on the next line. Add the missing

error check.

[tomeu: Move handle creation to the very end]

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00173 · 6.4th percentile
Weakness
CWE-416 · Use After Free
Published
2026-07-19T20:17Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 6.18, < 6.18.356.18.35
linux/linux_kernel≥ 6.19, < 7.0.127.0.12
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (3)
EPSS history
Timeline
  • 19 JUL 14:56Z
    accel/rocket: fix UAF via dangling GEM handle in create_bo
    cvelistv5