CVE-2026-99726: drm/v3d: Widen cache_clean_lock over the whole L2TCACTL sequence
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/v3d: Widen cache_clean_lock over the whole L2TCACTL sequence
v3d_clean_caches() and v3d_flush_l2t() both write the single L2TCACTL register and poll its status bits. The mutex cache_clean_lock exists to serialize them, but v3d_clean_caches() only took the lock around its final FLM_CLEAN write.
These functions run concurrently: v3d_flush_l2t() is issued from the BIN/RENDER/CSD invalidate path while v3d_clean_caches() runs from the CACHE_CLEAN queue, and each queue's scheduler uses its own ordered workqueue, so their run_job callbacks execute in parallel.
Because clean locked only its final write, a concurrent flush can write L2TCACTL during clean's unlocked phase. Both use non read-modify-write writes to the one register, so whichever lands last wins: clean's TMUWCF write can land on the flush's in-flight L2TFLS invalidate, triggering the GFXH-1897 hazard of writing L2TCACTL while a flush is pending.
Hold cache_clean_lock across the entire L2TCACTL access sequence so it is fully mutually exclusive with v3d_flush_l2t(), which already takes the lock around its own write.
The Linux kernel CVE team has assigned CVE-2026-99726 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18.36 with commit 11e9bdf8824b9e4e3c06d532c2663edb797c06f0 and fixed in 6.18.64 with commit ea7ed4ab14f9ae79bd798bb156025bc751c71a9b Issue introduced in 7.1 with commit abf888b03a9805a3bc37948a0df443553b1c0910 and fixed in 7.3.5 with commit 1b48fe8b323103e278fbc5145231b763577e2487 Issue introduced in 7.1 with commit abf888b03a9805a3bc37948a0df443553b1c0910 and fixed in 7.4-rc2 with commit 994ba6e5c87d6a3d471ea987fe8622168f092334 Issue introduced in 7.0.13 with commit bdc2a495659f78ca01e6d5f18fb74419aaa1db0c
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-99726
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_gem.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/ea7ed4ab14f9ae79bd798bb156025bc751c71a9b https://git.kernel.org/stable/c/1b48fe8b323103e278fbc5145231b763577e2487 https://git.kernel.org/stable/c/994ba6e5c87d6a3d471ea987fe8622168f092334