Insufficient validation of untrusted input in ANGLE (CVE-2026-9914)
A chain of three validation gaps in ANGLE lets a compromised renderer submit a native YUV texture format that is not properly recognised as YUV, so restricted operations reach the Vulkan backend and produce malformed multi-planar commands. This could cause undefined driver behaviour and memory corruption in the GPU process, with a possible sandbox escape.
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: A potential vulnerability exists where native YUV textures bypass validation due to a missing isYUV() override in gl::Texture. A compromised renderer can pass an arbitrary YUV format to the passthrough decoder, causing ANGLE to send malformed multi-planar commands to the Vulkan backend. This results in undefined driver behavior and potential GPU process memory corruption.
Affected files:
third_party/angle/src/libANGLE/Texture.hthird_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.hthird_party/angle/src/libANGLE/Texture.cppthird_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cppthird_party/angle/src/libANGLE/Image.cppthird_party/angle/src/libANGLE/validationES.cppthird_party/angle/src/libANGLE/Framebuffer.cpp
Estimated timestamp from git blame: 2023-10-17
Description
A potential vulnerability exists in how ANGLE handles native YUV textures (e.g., GL_G8_B8R8_2PLANE_420_UNORM_ANGLE), allowing a compromised renderer to bypass validation and trigger undefined behavior in the GPU process via Vulkan API violations. This relies on three chained flaws in the GPU process:
- Passthrough Decoder Validation Bypass: The
GLES2DecoderPassthroughImplblindly forwards theinternalformatargument of commands likeTexStorage2DEXTdirectly to ANGLE without validating it against Chrome'svalidators_.texture_internal_format_storage. A compromised renderer can manually construct an IPC to submit arbitrary internal formats. - Missing
gl::Texture::isYUV()Override:gl::Textureinherits fromegl::ImageSiblingbut does not override the virtualisYUV()method. The defaultegl::ImageSibling::isYUV()implementation returnsfalseunless the texture is an EGLImage target (mTargetOf). Native YUV textures created viaglTexStorage2DEXThave a nullmTargetOf, causingisYUV()to incorrectly returnfalse. This causes ANGLE validation functions (e.g.,ValidateCopyTexImageParametersBase) to treat the texture as a standard color format and bypassGL_INVALID_OPERATIONerrors for YUV-restricted operations. - Vulkan Backend Format Misidentification: In the Vulkan backend (e.g.,
ImageHelper::readPixelsImpl), ANGLE checks if a texture requires YUV-to-RGBA staging by evaluatinggetExternalFormat() != 0. Because native Vulkan YUV formats have an external format of0, this check fails, and the safe staging path is skipped.
When these flaws are combined, ANGLE attempts direct operations (e.g., vkCmdCopyImageToBuffer) on the multi-planar YUV image using VK_IMAGE_ASPECT_COLOR_BIT. This violates Vulkan specification requirements (VUID-vkCmdCopyImageToBuffer-srcImage-07971), resulting in undefined behavior and out-of-bounds memory accesses in the underlying graphics driver.
Potential Reproduction Steps
Note: Our tooling agent does not have the ability to run code. These are the suggested steps an attacker would follow.
- Obtain arbitrary code execution within a sandboxed renderer process.
- Write a raw
glRequestExtensionCHROMIUMIPC to the command buffer to enable theGL_ANGLE_yuv_internal_formatextension for the context. - Construct a raw
TexStorage2DEXTIPC, manually setting theinternalformatargument toGL_G8_B8R8_2PLANE_420_UNORM_ANGLE(enum value0x96B1). - Create a Framebuffer Object (FBO) and bind the native YUV texture to color attachment 0. ANGLE will report the framebuffer as
GL_FRAMEBUFFER_COMPLETE. - Trigger a command strictly prohibited for YUV framebuffers, such as
glCopyTexImage2DorglReadPixels. - Because validation is bypassed, the invalid operation reaches the Vulkan backend, passing a malformed command to the driver and triggering a potential sandbox escape.
Suggested Fix
- Override
isYUV()ingl::Texture: Implementgl::Texture::isYUV()to accurately report its state based on its internal format (e.g., checking if the base level description format has the YUV property). - Update Vulkan Backend Checks: Update the backend (e.g.,
ImageHelper::readPixelsImpl) to rely on the actual format's YUV property (getActualFormat().isYUV) instead of strictly checking if the external format is non-zero. - Harden Passthrough Decoder: Implement validation in
GLES2DecoderPassthroughImpl::DoTexStorage2DEXTand related commands to rejectinternalformatvalues that are not explicitly permitted by Chrome's feature info.
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 missing isYUV() override in gl::Texture, combined with a passthrough decoder that forwards internal formats unchecked and a Vulkan backend that detects YUV only via a non-zero external format.
Impact
Could lead to undefined behaviour and out-of-bounds memory access in the graphics driver, potentially allowing a sandbox escape from a compromised renderer; the report notes the steps were not actually executed.
What the attacker needed
Code execution in the renderer; ability to send raw IPC to the GPU process
The fix
The report suggests overriding isYUV() in gl::Texture, having the Vulkan backend check the actual format's YUV property, and validating internal formats in the passthrough decoder.
How it was found
- Gain code execution inside the sandboxed renderer process.
- Send a raw extension request over the command buffer to enable the YUV internal format extension.
- Send a raw texture storage command with a YUV internal format set by hand.
- Create a framebuffer object and attach the YUV texture as a colour attachment.
- Trigger an operation that is forbidden for YUV framebuffers, such as a copy or pixel read.
- The unchecked command reaches the Vulkan driver and may escape the sandbox.
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 web browser splits its work into a renderer, which runs page code, and a GPU process, which talks to the graphics driver. The renderer is meant to be locked down, so anything it sends to the GPU process must be checked carefully. Here, a texture format that holds video-style colour planes was not recognised as such, so checks were skipped and bad instructions reached the driver, which could crash or corrupt the GPU process.
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.