Skip to contentSkip to conversation

CVE-2026-53139: drm/v3d: Skip CSD when it has zeroed workgroups

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

drm/v3d: Skip CSD when it has zeroed workgroups

A compute shader dispatch encodes its workgroup counts in the CFG0..CFG2 registers. Kicking off a dispatch with a zero count in any of the three dimensions is invalid. First, the hardware will process 0 as 65536, while the user-space driver exposes a maximum of 65535. Over that, a submission with a zeroed workgroup dimension should be a no-op.

These zeroed counts can reach the dispatch path through an indirect CSD job, whose workgroup counts are only known once the indirect buffer is read and may legitimately be zero, but such scenario should only result in a no-op.

Overwrite the indirect CSD job workgroup counts with the indirect BO ones, even if they are zeroed, and don't submit the job to the hardware when any of the workgroup counts is zero, so the job completes immediately instead of running the shader.

The Linux kernel CVE team has assigned CVE-2026-53139 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.3 with commit d223f98f02099b002903b9b22b56febae16ef80d and fixed in 6.18.36 with commit 9655b56b6de918e1c22b92f3880ae41b052cbd00
	Issue introduced in 5.3 with commit d223f98f02099b002903b9b22b56febae16ef80d and fixed in 7.0.13 with commit 11e6432836394e00d39e468cd514f9ddb66f1e49
	Issue introduced in 5.3 with commit d223f98f02099b002903b9b22b56febae16ef80d and fixed in 7.1 with commit 7f93fad5ea0affc9e1505dd0f7596c0fdb496213

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-53139

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_sched.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/9655b56b6de918e1c22b92f3880ae41b052cbd00
	https://git.kernel.org/stable/c/11e6432836394e00d39e468cd514f9ddb66f1e49
	https://git.kernel.org/stable/c/7f93fad5ea0affc9e1505dd0f7596c0fdb496213