Skip to content
Info disclosure Advisory Advanced CVE-2026-9942

Uninitialized Use in ANGLE (CVE-2026-9942)

ANGLE's Vulkan backend fails to enable shader variable initialisation flags for hardened non-WebGL contexts, allowing a compromised renderer to compile shaders with uninitialised local variables that read residual cross-origin GPU memory. The leaked memory can be read back via an FBO, 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's Vulkan backend fails to enable shader variable initialization flags for hardened, non-WebGL contexts. This allows a compromised renderer to compile shaders with uninitialized local variables that read residual cross-origin GPU memory. The leaked memory can then be read back via an FBO, bypassing Site Isolation.

Affected files:

  • third_party/angle/src/libANGLE/renderer/vulkan/ShaderVk.cpp
  • third_party/angle/src/libANGLE/Shader.cpp

Estimated timestamp from git blame: 2022-08-09

Summary

There is a potential security gap in ANGLE's Vulkan backend where it fails to enable specific shader translator hardening flags—initializeUninitializedLocals and initOutputVariables—for "hardened" GLES contexts. While these flags are correctly enabled for WebGL contexts, they are missing for standard renderer contexts that have been specifically marked as hardened via EGL_CONTEXT_HARDENED_ANGLE. This discrepancy could allow a compromised renderer to bypass intended security boundaries and leak uninitialized GPU memory containing cross-origin data.

Technical Details

Chrome uses the hardened_context attribute (which maps to EGL_CONTEXT_HARDENED_ANGLE) to provide extra security for standard GLES2/GLES3 contexts requested by potentially compromised renderers, specifically when using the passthrough command decoder on Android/Linux.

In the ANGLE frontend (src/libANGLE/Shader.cpp), the logic correctly identifies these contexts and enables several security options:

C++
// src/libANGLE/Shader.cpp
if (context->isWebGL() || context->isHardenedContext())
{
    options.initGLPosition             = true;
    options.limitCallStackDepth        = true;
    options.initSharedVariables        = true;
    // ... (initializeUninitializedLocals is NOT set here)
}

However, the Vulkan backend (src/libANGLE/renderer/vulkan/ShaderVk.cpp) gates the critical variable initialization flags solely on isWebGL():

C++
// src/libANGLE/renderer/vulkan/ShaderVk.cpp
if (context->isWebGL())
{
    // Only WebGL requires initialization of local variables, others don't.
    options->initializeUninitializedLocals = true;
    // ...
    options->initOutputVariables = true;
}

Because isHardenedContext() is not checked here, a shader compiled in a hardened (but non-WebGL) context will skip the AST transformations that insert zero-initializers. When the shader is translated to SPIR-V, it will result in OpVariable Function declarations without initializers. The Vulkan specification does not mandate zero-initialization for function-local variables, meaning they will contain whatever residual data was left in the physical GPU registers or scratch memory by previous execution units.

Potential Exploitation Steps

(Note: These are suggested steps based on architectural analysis; a working exploit has not been executed.)

  1. Renderer Compromise: An attacker achieves arbitrary code execution within the sandboxed renderer process.
  2. Context Request: The compromised renderer requests a standard GLES2 context via the GpuChannel Mojo interface. The GPU process passthrough decoder automatically flags this as a hardened_context.
  3. Malicious Shader: The attacker compiles a fragment shader that declares uninitialized local variables (e.g., vec4 leak;) and writes them directly to the shader output (gl_FragColor = leak;).
  4. Execution & Exfiltration: The attacker binds an FBO and issues a draw call. The shader executes, reading residual cross-origin data (e.g., compositor tile rasterization or other WebGL contexts) from uninitialized GPU registers, and writes it to the FBO. The attacker then uses glReadPixels to pull the leaked data back across the IPC boundary into the renderer process.

Suggested Fix

Modify ShaderVk::compile in third_party/angle/src/libANGLE/renderer/vulkan/ShaderVk.cpp to enable initializeUninitializedLocals and initOutputVariables when context->isHardenedContext() is true, matching the security posture applied to context->isWebGL().

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 checks only whether the context is WebGL, not whether it is a hardened context, so it skips enabling initialisation of local variables for hardened non-WebGL contexts.

Impact

A compromised renderer could read residual cross-origin GPU memory, potentially bypassing Site Isolation, though no working exploit has been executed.

What the attacker needed

Compromised renderer process; Android or Linux with passthrough decoder; hardened GLES context

The fix

Modify ShaderVk::compile to enable initializeUninitializedLocals and initOutputVariables when context->isHardenedContext() is true, matching the security posture applied to context->isWebGL().

How it was found

  1. An attacker achieves arbitrary code execution within the sandboxed renderer process.
  2. The compromised renderer requests a standard GLES2 context via the GpuChannel Mojo interface, which is automatically flagged as a hardened_context.
  3. The attacker compiles a fragment shader that declares uninitialized local variables and writes them directly to the shader output.
  4. The attacker binds an FBO and issues a draw call, causing the shader to read residual cross-origin data from uninitialized GPU registers and write it to the FBO.
  5. The attacker uses glReadPixels to pull the leaked data back across the IPC boundary 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.

When a computer runs a program, it sometimes reuses memory without clearing it first. If a program can read that leftover memory, it might see data from another program. Here, a graphics component called ANGLE did not properly clear certain memory used by shaders, so a malicious program could potentially read leftover data from other websites.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.