Uninitialized Use in ANGLE (CVE-2026-9944)
ANGLE backends fail to enable shader output initialisation for non-WebGL hardened contexts, so a compromised renderer can request a native GLES context and supply shaders with uninitialised outputs. This could allow reading sensitive cross-origin GPU memory residue, bypassing Site Isolation.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 42 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 Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.
Overview: ANGLE backends (Metal, GL, Vulkan) fail to enable shader output initialization for non-WebGL hardened contexts. A compromised renderer can exploit this by requesting a native GLES context and supplying shaders with uninitialized outputs. This potentially allows the renderer to read sensitive cross-origin GPU memory residue, bypassing Site Isolation.
Affected files:
third_party/angle/src/libANGLE/renderer/metal/ShaderMtl.mmthird_party/angle/src/libANGLE/renderer/gl/ShaderGL.cpp
Estimated timestamp from git blame: 2026-01-14
Description
In Chromium, a compromised sandboxed renderer process can request the creation of native GLES contexts (e.g., CONTEXT_TYPE_OPENGLES3) via the GpuChannel::CreateCommandBuffer IPC interface. To ensure security when untrusted processes access non-WebGL contexts, the command buffer service marks these contexts as "hardened" by setting attribs.hardened_context = true (while webgl_compatibility_context is correctly false) before passing them to EGL and ANGLE.
While ANGLE's front-end compiler correctly applies several security mitigations (like limiting call stack depth) if a context isWebGL() OR isHardenedContext(), a critical mitigation is missed in the backend implementations. The initOutputVariables compile option, which forces the zero-initialization of shader output variables to prevent reading stale GPU memory, is gated solely on isWebGL() in the Metal, GL, and Vulkan backends. Because a hardened native GLES context is not a WebGL context, this mitigation is bypassed.
By intentionally leaving a vertex shader output (varying) uninitialized, an attacker can cause the subsequent fragment shader to read stale, uninitialized interpolator or tile memory. This memory often contains sensitive residue from previous GPU operations, such as cross-origin rendering performed by the browser compositor.
Root Cause
The vulnerability stems from the implementation of the compile method in several ANGLE backends, where the decision to enable initOutputVariables ignores isHardenedContext():
- Metal Backend (
third_party/angle/src/libANGLE/renderer/metal/ShaderMtl.mmlines 73-76):C++ if (context->isWebGL() && mState.getShaderType() != gl::ShaderType::Compute) { options->initOutputVariables = true; } - GL Backend (
third_party/angle/src/libANGLE/renderer/gl/ShaderGL.cpplines 131-136):C++ bool isWebGL = context->isWebGL(); if (isWebGL || ...) { options->initOutputVariables = true; } - Vulkan Backend (
third_party/angle/src/libANGLE/renderer/vulkan/ShaderVk.cpplines 28-42):C++ if (context->isWebGL() && ...) { options->initOutputVariables = true; // ... }
Because initOutputVariables remains false, the ANGLE translator (Compiler.cpp) skips the initializeOutputVariables AST transformation step. Note that while InitializeUninitializedLocals runs, it explicitly ignores global interface variables like shader outputs.
Impact
An attacker with arbitrary code execution in a renderer process can read out-of-bounds cross-origin GPU memory. This is a Site Isolation bypass, leading to the potential disclosure of sensitive information belonging to other origins or the browser process.
Suggested Reproduction Steps
(Note: These are potential steps based on code analysis; our tooling agent does not yet have the ability to run code to verify this directly).
- From a compromised renderer, send an IPC to create a GLES command buffer with
context_typeset toCONTEXT_TYPE_OPENGLES3. - Compile a shader program with a vertex shader that declares an
outvariable (e.g.,out vec4 leaked_data;) but contains a control flow path that intentionally leaves it uninitialized. - Provide a fragment shader that takes this
in vec4 leaked_data;and assigns it to the fragment output color. - Link the program, bind an offscreen framebuffer, and perform a draw call.
- Execute
glReadPixelsto read the framebuffer contents back into the renderer process. The returned pixels will contain stale residue from the GPU's uninitialized memory.
Suggested Fix
Update the backend shader compilation methods (ShaderMtl::compile, ShaderGL::compile, and ShaderVk::compile) to enable initOutputVariables when the context is a hardened context, aligning it with the logic used in the front-end gl::Shader::compile.
For example, change the conditions to:
if ((context->isWebGL() || context->isHardenedContext()) && ...)
Evaluated with Chrome root at commit: 661452647ddb2827305122ff3273bd5dea403f09
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 backend shader compilation methods gate the initOutputVariables option solely on isWebGL(), ignoring isHardenedContext(), so the zero-initialisation of shader outputs is skipped for hardened native GLES contexts.
Impact
An attacker with arbitrary code execution in a renderer process could read out-of-bounds cross-origin GPU memory, bypassing Site Isolation and potentially disclosing sensitive information from other origins or the browser process.
What the attacker needed
Compromised renderer process; ability to send IPC to create GLES context
The fix
The backend shader compilation methods should enable initOutputVariables when the context is a hardened context, aligning with the front-end logic.
How it was found
- From a compromised renderer, send an IPC to create a GLES command buffer with context_type set to CONTEXT_TYPE_OPENGLES3.
- Compile a shader program with a vertex shader that declares an out variable but contains a control flow path that intentionally leaves it uninitialized.
- Provide a fragment shader that takes this in variable and assigns it to the fragment output color.
- Link the program, bind an offscreen framebuffer, and perform a draw call.
- Execute glReadPixels to read the framebuffer contents back into the renderer process.
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 is the part of the browser that draws web pages; if an attacker takes it over, they should still be blocked from reading data belonging to other websites. Here, a security check that normally clears graphics memory before use was skipped for a special type of graphics context, so leftover data from other sites might be read. The report is based on code review, not a working exploit.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.