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

> 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.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-19T15:40:04.925Z
- **Modified:** 2026-08-11T16:05:40.573Z

## Who should check

- Anyone running Linux \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< acd55ea40d03e06f20a9986363019e0e5173990e; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< 0f8efc45740b0628a787d1b0be8a0ddabd700625; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< 69c2a1fec2e7ca25598180816f3bc56e1842eb41; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< b0fe80c0b9250b35e2211bf3117e7aca814a21b0
- Anyone running Linux 6.8

## Description

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.

## Affected and fixed versions

- Linux: \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< acd55ea40d03e06f20a9986363019e0e5173990e; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< 0f8efc45740b0628a787d1b0be8a0ddabd700625; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< 69c2a1fec2e7ca25598180816f3bc56e1842eb41; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< b0fe80c0b9250b35e2211bf3117e7aca814a21b0 (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-2026-64099. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64099.md
Affected: Linux >= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, < acd55ea40d03e06f20a9986363019e0e5173990e; >= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, < 0f8efc45740b0628a787d1b0be8a0ddabd700625; >= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, < 69c2a1fec2e7ca25598180816f3bc56e1842eb41; >= 9ba0ff3e083f6a4a0b6698f…
Fixed in: Linux 0f8efc45740b0628a787d1b0be8a0ddabd700625, Linux 69c2a1fec2e7ca25598180816f3bc56e1842eb41

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-2026-64099 being exploited?

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

### How serious is CVE-2026-64099?

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

### Which versions are affected by CVE-2026-64099?

Linux \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< acd55ea40d03e06f20a9986363019e0e5173990e; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< 0f8efc45740b0628a787d1b0be8a0ddabd700625; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< 69c2a1fec2e7ca25598180816f3bc56e1842eb41; \>= 9ba0ff3e083f6a4a0b6698f06bfff74805fefa5f, \< b0fe80c0b9250b35e2211bf3117e7aca814a21b0; Linux 6.8.

### Is there a fix for CVE-2026-64099?

Yes. Fixed in Linux 0f8efc45740b0628a787d1b0be8a0ddabd700625, Linux 69c2a1fec2e7ca25598180816f3bc56e1842eb41. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64099?

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/acd55ea40d03e06f20a9986363019e0e5173990e>
- patch: <https://git.kernel.org/stable/c/0f8efc45740b0628a787d1b0be8a0ddabd700625>
- patch: <https://git.kernel.org/stable/c/69c2a1fec2e7ca25598180816f3bc56e1842eb41>
- patch: <https://git.kernel.org/stable/c/b0fe80c0b9250b35e2211bf3117e7aca814a21b0>

## 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-2026-64099>

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