CVE-2026-53140: drm/v3d: Fix vaddr leak when indirect CSD has zeroed workgroups
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/v3d: Fix vaddr leak when indirect CSD has zeroed workgroups
v3d_rewrite_csd_job_wg_counts_from_indirect() maps both the indirect buffer and the workgroup buffer and is expected to release them before returning. When any of the workgroup counts read from the buffer is zero, the function bailed out early and skipped the cleanup, leaking the vaddr mappings of both BOs.
Jump to the cleanup path instead of returning directly, so the mappings are always dropped.
The Linux kernel CVE team has assigned CVE-2026-53140 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit 18b8413b25b7070fa2e55858a2c808e6909581d0 and fixed in 6.12.94 with commit 0b59d0946913a0df7d1a033013e259e9b6a76546 Issue introduced in 6.8 with commit 18b8413b25b7070fa2e55858a2c808e6909581d0 and fixed in 6.18.36 with commit 90b629269088a9fe24a02c032be9f08357f47873 Issue introduced in 6.8 with commit 18b8413b25b7070fa2e55858a2c808e6909581d0 and fixed in 7.0.13 with commit 60ebeb23eaf3d7fd2e0551fe304309305e31d424 Issue introduced in 6.8 with commit 18b8413b25b7070fa2e55858a2c808e6909581d0 and fixed in 7.1 with commit ae7676952790f421c40918e2586a2c9f12a682b6
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-53140
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/0b59d0946913a0df7d1a033013e259e9b6a76546 https://git.kernel.org/stable/c/90b629269088a9fe24a02c032be9f08357f47873 https://git.kernel.org/stable/c/60ebeb23eaf3d7fd2e0551fe304309305e31d424 https://git.kernel.org/stable/c/ae7676952790f421c40918e2586a2c9f12a682b6