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

Inappropriate implementation in GPU (CVE-2026-9912)

A logic error in Chrome's GPU command decoder skips updating the internal state tracker for ES3 sampler types, so Chrome believes a sampler points to texture unit 0 while the driver uses another unit. An attacker could bypass the clearing of uninitialised textures and read back uninitialised GPU memory, potentially disclosing cross-origin data.

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 logic error in GLES2DecoderImpl::DoUniform1iv skips updating the internal state tracker for ES3-specific sampler types. This causes Chrome to lose track of which texture units are active, allowing an attacker to bypass pre-draw security checks like ClearUnclearedTextures(). This can lead to a potential leak of uninitialized GPU memory, disclosing sensitive cross-origin data.

Affected files:

  • gpu/command_buffer/service/gles2_cmd_decoder.cc
  • gpu/command_buffer/service/program_manager.h
  • gpu/command_buffer/service/program_manager.cc

Estimated timestamp from git blame: 2025-05-26

Description

A state desynchronization vulnerability exists in the GLES2 validating command decoder (GLES2DecoderImpl), which is currently the default on Android.

When setting sampler uniforms via glUniform1iv, Chrome needs to track which texture unit the sampler points to in order to perform security validations before a draw call. However, in gpu/command_buffer/service/gles2_cmd_decoder.cc, the DoUniform1iv function explicitly restricts the state update (Program::SetSamplers()) to legacy ES2 sampler types:

C++
  if (type == GL_SAMPLER_2D || type == GL_SAMPLER_2D_RECT_ANGLE ||
      type == GL_SAMPLER_CUBE || type == GL_SAMPLER_EXTERNAL_OES) {
    if (!state_.current_program->SetSamplers(
            state_.texture_units.size(), fake_location, count, safe_values)) {
      // ... error handling ...
      return;
    }
  }
  api()->glUniform1ivFn(real_location, count, safe_values);

If an ES3 sampler type is used (e.g., GL_SAMPLER_2D_ARRAY, GL_SAMPLER_3D), the if condition evaluates to false, and SetSamplers() is skipped. As a result, Chrome's internal tracker (uniform_info->texture_units) retains its default value of 0. However, the uniform is still forwarded to the underlying GPU driver via api()->glUniform1ivFn.

This creates a critical desynchronization: the GPU driver correctly uses texture unit N for the sampler, while Chrome's validation logic incorrectly believes the program is sampling from unit 0.

Security Impact

This desynchronization allows an attacker to bypass critical security-enforcement routines:

  1. Bypass of ClearUnclearedTextures() (Information Leak): Chrome lazily clears uninitialized textures before they are sampled to prevent leaking sensitive cross-origin GPU memory. Because the validator checks the state of the wrong texture unit (unit 0), an attacker can easily bypass this by placing a cleared decoy texture on unit 0, while placing an uncleared texture on unit N.
  2. Missing Bounds Checks: Because SetSamplers() is skipped, the check ensuring the uniform value does not exceed state_.texture_units.size() is bypassed, allowing out-of-bounds uniform indices to be sent directly to the underlying driver.

Suggested Exploitation Steps

These are potential steps an attacker could follow from malicious WebGL2 JavaScript (tooling limitations prevent runtime verification):

  1. Create a texture T (e.g., TEXTURE_2D_ARRAY), allocate its storage, but leave it uninitialized (e.g., pass null to texImage3D).
  2. Create a decoy texture D and fully initialize it with safe zeros.
  3. Bind the decoy texture D to TEXTURE0.
  4. Bind the uninitialized texture T to TEXTURE1.
  5. Compile a shader program with an ES3 sampler: uniform sampler2DArray u_sampler;.
  6. Trigger the bug by using gl.uniform1iv to set u_sampler to point to unit 1. Chrome records the sampler as pointing to unit 0, but the driver points it to unit 1.
  7. Issue a draw call. ClearUnclearedTextures inspects unit 0, sees the safe decoy D, and allows the draw. The GPU executes the shader, sampling from the uninitialized texture T on unit 1.
  8. Read back the rendered pixels to exfiltrate uninitialized GPU memory.

Suggested Fix

Instead of a hardcoded list of ES2 sampler types, DoUniform1iv should rely on a generalized check to determine if the uniform is a sampler. The UniformInfo struct already possesses an IsSampler() method that covers all ES2 and ES3 sampler types. Alternatively, an explicit check matching the one in IsSampler() can be used to ensure SetSamplers() is correctly called for all samplers.

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.

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

The `DoUniform1iv` function only calls `SetSamplers()` for legacy ES2 sampler types, so ES3 sampler uniforms leave Chrome's internal texture-unit tracker at its default value while the real GPU driver uses the attacker-chosen unit.

Impact

An attacker could read uninitialised GPU memory that may contain sensitive cross-origin data, and could also send out-of-bounds uniform indices to the driver; the report notes that runtime verification was not possible due to tooling limitations.

What the attacker needed

Victim visits a malicious page; WebGL2 support in Chrome on Android

The fix

The check should use the existing `IsSampler()` method, or an equivalent explicit list, so that `SetSamplers()` is called for all ES2 and ES3 sampler types.

How it was found

  1. Create an uninitialised array texture and a fully initialised decoy texture.
  2. Bind the decoy to texture unit 0 and the uninitialised texture to unit 1.
  3. Compile a shader with an ES3 sampler uniform.
  4. Set the sampler to unit 1 with a uniform call, which Chrome records as unit 0.
  5. Issue a draw call so the validation checks the decoy and the GPU samples the uninitialised texture.
  6. Read back the rendered pixels to obtain the 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.

Chrome checks that textures are safe before a shader reads them, but it keeps its own note of which texture slot a shader uses. For newer sampler types that note is never updated, so Chrome checks the wrong slot. A malicious web page could then make the graphics card read leftover memory and copy it back to the page.

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.