CVE-2026-64099CWE-416

CVE-2026-64099

High · published July 19, 2026

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

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

drm/v3d: Fix use-after-free of CPU job query arrays on error path

The CPU job ioctl's fail label calls kvfree() on cpu_job's timestamp and

performance query arrays after v3d_job_cleanup(), which drops the job's

last reference and frees cpu_job. Reading cpu_job at that point is a

use-after-free. Also, on the early v3d_job_init() failure path, it is a

NULL dereference, since v3d_job_deallocate() zeroes the local pointer.

In the success path, the arrays are released from the scheduler's

.free_job callback, but on the error path, they are freed manually, as

the job was never pushed to the scheduler. While the success path deals

with this correctly, the fail path doesn't.

On top of that, the manual kvfree() calls only free the array storage;

they don't drm_syncobj_put() the per-query syncobjs that

v3d_timestamp_query_info_free() and v3d_performance_query_info_free()

release on the success path. So the same fail path that triggers the

use-after-free also leaks one syncobj reference per query.

Unify the CPU job teardown into the CPU job's kref destructor, mirroring

v3d_render_job_free(). The scheduler's .free_job slot reverts to the

generic v3d_sched_job_free() and the fail label drops the manual

kvfree() calls, leaving a single teardown path that is reached from both

the scheduler and the ioctl error path. That removes the use-after-free,

the NULL dereference, and the syncobj leak by construction.

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.00134 · 2.7th percentile
Weakness
CWE-416 · Use After Free
Published
2026-07-19T20:17Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 6.8, < 6.12.936.12.93
linux/linux_kernel≥ 6.13, < 6.18.346.18.34
linux/linux_kernel≥ 6.19, < 7.0.117.0.11
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (4)
EPSS history
Timeline
  • 19 JUL 15:40Z
    drm/v3d: Fix use-after-free of CPU job query arrays on error path
    cvelistv5