CVE-2026-93047: drm/v3d: Associate BOs with every job that accesses them
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/v3d: Associate BOs with every job that accesses them
A submission can expand into a chain of jobs (e.g. bin + render + cache clean). Implicit synchronization in v3d_submit_lock_reservations() is gated on each job's bo[], but the BO list was only ever attached to the last job of the chain. When that last job is a trailing CACHE_CLEAN job, the job that actually consumes the BOs (that is, a RENDER or CSD job) was left with bo_count == 0 and picked up no implicit dependencies. It could therefore be dispatched to the hardware and read a BO while another context was still writing it, leading to data corruption.
Attach the BOs to the job that consumes them, so (1) it acquires the correct implicit dependencies during reservation locking and (2) they are kept mapped until the end of the submission. Give it references to all consuming job's BOs through v3d_job_reference_bos() instead of looking the handles up a second time; that avoids a redundant lookup and guarantees both jobs reference the exact same objects.
As the CACHE_CLEAN job now carries a BO array as well, add a per-job has_implicit_dep flag so that only the consuming jobs take implicit dependencies. The CACHE_CLEAN job (a global flush) and the BIN job (binning waiting on another context is not a realistic scenario) are excluded.
The Linux kernel CVE team has assigned CVE-2026-93047 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit dffa9b7a78c4361e55e21b3acb54e0d34ad15ea0 and fixed in 7.2.6 with commit 7244dd0f12629484a1936dc5c5837670d8d9f80c Issue introduced in 5.3 with commit dffa9b7a78c4361e55e21b3acb54e0d34ad15ea0 and fixed in 7.3-rc1 with commit fa98563ab00dbe62fcedfef6bdd34ded7a860d9f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93047
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/v3d/v3d_drv.h drivers/gpu/drm/v3d/v3d_submit.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7244dd0f12629484a1936dc5c5837670d8d9f80c https://git.kernel.org/stable/c/fa98563ab00dbe62fcedfef6bdd34ded7a860d9f