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

Insufficient validation of untrusted input in ANGLE (CVE-2026-13877)

The GPU process did not check the context type requested by a renderer over the GpuChannel Mojo interface, so a compromised renderer could ask for a non-WebGL context and skip ANGLE's WebGL-only validation. This let it set up a texture feedback loop and read uninitialised GPU memory on the Metal backend, leaking data across processes and origins.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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 compromised renderer can request a non-WebGL context (e.g., kOpenGLES2) via the GpuChannel Mojo IPC, bypassing ANGLE's isWebGL() validation checks. This allows an attacker to bypass texture feedback loop protections and leak uninitialized GPU memory on the Metal backend.

Affected files:

  • gpu/ipc/service/gpu_channel.cc
  • gpu/ipc/common/gpu_channel.mojom
  • gpu/ipc/common/context_type_mojom_traits.h
  • gpu/ipc/service/gles2_command_buffer_stub.cc
  • gpu/command_buffer/service/service_utils.cc
  • ui/gl/gl_context_egl.cc
  • third_party/angle/src/libANGLE/renderer/metal/TextureMtl.mm
  • third_party/angle/src/libANGLE/validationES.cpp

Estimated timestamp from git blame: 2026-01-04

Background

ANGLE performs extensive validation when executing WebGL contexts, relying on the isWebGL() flag to enforce security boundaries, such as preventing texture feedback loops and ensuring robust resource initialization.

Potential Vulnerability

A compromised renderer process can potentially bypass these WebGL-specific validation checks by requesting a command buffer with CONTEXT_TYPE_OPENGLES2 via the GpuChannel Mojo interface.

In gpu/ipc/service/gpu_channel.cc, the GpuChannel::CreateCommandBuffer method receives mojom::CreateCommandBufferParams containing the requested context_type. The GPU process does not validate that a renderer-provided context_type is restricted to WebGL types. It fails to check the is_gpu_host_ flag to ensure untrusted renderers cannot request native GLES contexts. Because the Mojo default for context_type in GLESCreationAttribs is kOpenGLES2, explicitly setting it (or omitting the field) triggers the creation of an ANGLE context where isWebGL() evaluates to false.

Impact

By establishing a context where isWebGL() is false, an attacker bypasses approximately 79 validation sites across the ANGLE frontend and backends.

A severe consequence of this bypass is a potential uninitialized GPU memory leak on the Metal backend. An attacker can set up a texture copying feedback loop (which bypasses validation in validationES.cpp) and trigger an out-of-bounds copy via glCopyTexImage2D. Because isWebGL() is false, TextureMtl::copyImage skips the initializeContents call when allocating the new, larger texture backing:

C++
// third_party/angle/src/libANGLE/renderer/metal/TextureMtl.mm
if (context->isWebGL() && !fbRect.encloses(sourceArea))
{
    ANGLE_TRY(initializeContents(context, GL_NONE, index));
}

This leaves the out-of-bounds region of the new texture uninitialized. The attacker can then read this texture to access uninitialized GPU memory, leading to a reliable cross-process/cross-origin information leak.

Potential Steps to Trigger

The following are suggested potential steps an attacker would follow to trigger the vulnerability:

  1. From a compromised renderer, obtain the GpuChannel Mojo remote.
  2. Construct mojom::CreateCommandBufferParams with attribs.context_type set to kOpenGLES2.
  3. Call CreateCommandBuffer over the IPC. The GPU process creates a context where isWebGL() is false.
  4. Create a texture, initialize it fully, and attach it to the current read framebuffer.
  5. Issue a glCopyTexImage2D operation where the sourceArea extends beyond the source framebuffer bounds, copying into the same texture (a feedback loop). This bypasses frontend initialization checks since it copies to itself.
  6. The Metal backend redefines the texture size but skips initialization. Read from the texture to access uninitialized GPU memory contents.

Suggested Fix

In gpu/ipc/service/gpu_channel.cc within GpuChannel::CreateCommandBuffer (or earlier in the message filter), add validation to verify the requested context_type. If the requester is an untrusted renderer (!is_gpu_host_), the context_type must be restricted to WebGL/WebGPU types (e.g., CONTEXT_TYPE_WEBGL1 or CONTEXT_TYPE_WEBGL2). If an unauthorized type is requested, the command buffer creation should fail and potentially trigger a mojo::ReportBadMessage.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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 GPU process trusted the renderer-supplied context_type in CreateCommandBuffer without restricting untrusted renderers to WebGL types or checking the is_gpu_host_ flag.

Impact

An attacker could bypass roughly 79 validation sites and potentially leak uninitialised GPU memory across processes and origins, though this depends on the Metal backend and on the renderer already being compromised.

What the attacker needed

Compromised renderer process; Metal backend (macOS/iOS); ability to send GpuChannel Mojo IPC

The fix

The GPU process should reject non-WebGL context types from untrusted renderers and fail the command buffer creation, possibly reporting a bad message.

How it was found

  1. From a compromised renderer, obtain the GpuChannel Mojo remote.
  2. Build CreateCommandBufferParams with the context type set to kOpenGLES2.
  3. Call CreateCommandBuffer over IPC so the GPU process makes a context where isWebGL() is false.
  4. Create a texture, initialise it fully, and attach it to the current read framebuffer.
  5. Issue a glCopyTexImage2D where the source area extends past the framebuffer bounds, copying into the same texture.
  6. The Metal backend resizes the texture but skips initialisation; read the texture to obtain uninitialised GPU memory.

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 process, which runs page code, and a GPU process, which draws graphics. The renderer asks the GPU process for a drawing context, and here the GPU process trusted the renderer's choice of context type. Because of that, a renderer that had already been taken over could ask for a type that skips safety checks and then read leftover graphics memory it should never see.

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.