Heap buffer overflow in ANGLE (CVE-2026-9915)
ANGLE's Vulkan backend fails to scale offsets for subsampled chroma planes during YUV texture updates, allowing a compromised renderer to bypass Luma-based validation and trigger an out-of-bounds write in GPU memory. This could lead to code execution within the GPU process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the security team.
Overview: ANGLE's Vulkan backend fails to scale offsets for subsampled chroma planes during YUV texture updates. A compromised renderer can bypass Luma-based validation to trigger a Vulkan OOB memory write. This enables a potential GPU sandbox escape.
Affected files:
third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cppthird_party/angle/src/libANGLE/validationES3.cpp
Estimated timestamp from git blame: 2021-07-19
Final Impact
This vulnerability culminates in a confirmed out-of-bounds write of attacker-controlled data into adjacent VkDeviceMemory via a vkCmdCopyBufferToImage command, granting a compromised renderer process a direct path to code execution within the highly-privileged GPU process.
Vulnerability Details
Initial logic and parameters are validated. A compromised renderer process establishes a standard GLES3 context utilizing the Passthrough Command Decoder and successfully enables the GL_ANGLE_yuv_internal_format extension. When the attacker issues a glTexSubImage2D command for a YUV texture, the validation routine in ValidateES3TexImageParametersBase (third_party/angle/src/libANGLE/validationES3.cpp:705) evaluates the provided xoffset and yoffset against the overall texture dimensions (the full Luma plane).
From here, execution jumps directly to the final transformation in the Vulkan backend (ImageHelper::stageSubresourceUpdateImpl within vk_helpers.cpp). The logic iterates through the YUV planes and maps the parameters into a VkBufferImageCopy structure. For subsampled chroma planes, the code directly applies gl_vk::GetOffset(offset, ©.imageOffset). This injects the unscaled, luma-space offset into the command stream for a half-sized chroma plane. The Vulkan driver executes vkCmdCopyBufferToImage using an out-of-bounds destination coordinate, corrupting adjacent GPU heap memory.
Potential Reproduction Steps
(Note: These are suggested/potential steps as our tooling agent doesn't yet have the ability to run code.)
- From a compromised renderer, initialize a GLES3 context via the passthrough command decoder and request the
GL_ANGLE_yuv_internal_formatextension. - Allocate a 1024x1024 4:2:0 YUV texture (e.g.,
GL_G8_B8R8_2PLANE_420_UNORM_ANGLE) usingglTexStorage2DEXT. - Issue a
glTexSubImage2Dcommand with an offset of 768 and dimensions of 256. Standard processing applies. - Validation passes because 768 + 256 <= 1024 (the luma plane dimension).
- The Vulkan backend stages the copy for Plane 1 (the 512x512 chroma plane) with an unscaled offset of 768, triggering the OOB write upon execution.
Suggested Fix
In third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp within ImageHelper::stageSubresourceUpdateImpl, apply the correct subsampling division to the offset when computing copy.imageOffset for chroma planes, identical to how yuvInfo.planeExtent correctly scales the width and height.
Evaluated with Chrome root at commit: f200f57a19490707ff8bc7aa5de3cbc443a3afad
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the Vulkan backend applies the texture offset directly to subsampled chroma planes without dividing by the subsampling factor, so the offset is too large for the smaller plane.
Impact
A compromised renderer could achieve code execution within the GPU process, potentially escaping the sandbox.
What the attacker needed
Compromised renderer process; GLES3 context with passthrough decoder; YUV internal format extension enabled
The fix
The offset for chroma planes should be divided by the subsampling factor when computing the image offset, matching how width and height are scaled.
How it was found
- Initialize a GLES3 context via the passthrough command decoder and enable the YUV internal format extension.
- Allocate a 1024x1024 4:2:0 YUV texture using glTexStorage2DEXT.
- Issue a glTexSubImage2D command with an offset of 768 and dimensions of 256.
- Validation passes because 768 + 256 <= 1024 (the luma plane dimension).
- The Vulkan backend stages the copy for the chroma plane with an unscaled offset of 768, triggering the out-of-bounds write.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A renderer process (the part of the browser that draws web pages) is normally sandboxed for safety. This bug lets a compromised renderer trick the GPU driver into writing data outside the intended memory buffer, which could let an attacker run code with higher privileges.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.