CVE-2026-68272: drm/amdgpu: validate CP_GFX_SHADOW chunk size in CS pass1
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: validate CPGFXSHADOW chunk size in CS pass1
Add a minimum-length check for the AMDGPUCHUNKIDCPGFXSHADOW chunk in amdgpucspass1(), matching the gate already present for the IB, FENCE and BOHANDLES chunk types.
The CPGFXSHADOW case previously shared a bare break with the dependency and syncobj chunk types, which do not dereference a fixed-size struct. When userspace submits this chunk with lengthdw == 0, vmemduparrayuser() is called with size 0 and returns ZEROSIZEPTR, which passes the ISERR() check. amdgpucsp2shadow() then dereferences chunk->kdata as a struct drmamdgpucschunkcpgfxshadow (reading shadow->flags), faulting on the ZEROSIZEPTR and causing a NULL-pointer dereference.
This is reachable by an unprivileged process in the render group. Reject undersized chunks with -EINVAL during pass1 so the bad submission is rejected before pass2 ever dereferences the data.
(cherry picked from commit 7f61b2eef7415eccdb40850aca0de94211948657)
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-68272?
CVE-2026-68272 has a risk rating of 37, indicating a moderate severity level.
How do I fix CVE-2026-68272?
To address CVE-2026-68272, ensure that your Linux kernel is updated to the latest version where this vulnerability has been resolved.
What systems are affected by CVE-2026-68272?
CVE-2026-68272 affects systems using the Linux kernel with the AMDGPU driver.
What type of vulnerability is CVE-2026-68272?
CVE-2026-68272 is a validation vulnerability in the AMD GPU driver related to chunk size checks.
Can CVE-2026-68272 lead to an exploit?
While CVE-2026-68272 has been patched, unaddressed vulnerabilities in driver validation can potentially lead to exploits.