Skip to content
Memory corruption Advisory Advanced CVE-2026-11672

Out of bounds write in GPU (CVE-2026-11672)

The validating command decoder updates a texture's metadata and marks it immutable before the native driver allocation call, without checking for errors or rolling back. If that allocation fails, later sub-image writes are validated against the oversized recorded dimensions and can cause a heap out-of-bounds write in the GPU process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 14 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential state desynchronization vulnerability in the validating command decoder's texture storage implementation can allow a texture's metadata to mismatch the actual driver state. If a native storage allocation call fails, the decoder continues to track the texture with oversized dimensions and immutable status. This allows subsequent sub-image writes to bypass validation and trigger a heap out-of-bounds write in the GPU process.

Affected files:

  • gpu/command_buffer/service/gles2_cmd_decoder.cc
  • gpu/command_buffer/service/texture_manager.cc

Estimated timestamp from git blame: 2016-02-16

Description

A potential state desynchronization vulnerability exists in the GLES2 validating command decoder's texture storage implementation.

Unlike other allocation paths in the validating decoder (e.g., DoTexImage via ValidateAndDoTexImage) which verify that the underlying allocation succeeded using ERRORSTATE_PEEK_GL_ERROR before updating the metadata, GLES2DecoderImpl::TexStorageImpl in gpu/command_buffer/service/gles2_cmd_decoder.cc updates the decoder's internal texture level metadata and sets the texture as immutable before invoking the native GL driver, without any trailing error checking or rollback mechanism.

C++
    for (int ii = 0; ii < levels; ++ii) {
      ...
      } else {
        texture_manager()->SetLevelInfo(
            texture_ref, target, ii, adjusted_internal_format, level_width,
            level_height, level_depth, 0, format, type, gfx::Rect());
      }
      ...
    }
    texture->ApplyFormatWorkarounds(feature_info_.get());
    texture->SetImmutable(true, true); // Overwrites metadata before the GL call
  }

  if (dimension == ContextState::k2D) {
    api()->glTexStorage2DEXTFn(target, levels, compatibility_internal_format,
                               width, height);
  } else { ... }
  // No trailing GL error check or rollback

If the native driver allocation fails (for example, generating GL_OUT_OF_MEMORY or GL_INVALID_OPERATION), the actual driver-side texture dimensions remain unchanged (or unallocated). However, the validating decoder's internal metadata permanently records the new oversized dimensions and flags the texture as immutable.

Potential Impact & Exploitation Vector

This desynchronization allows subsequent TexSubImage2D operations to potentially bypass bounds checks:

  1. A texture is created and allocated with safe, small dimensions (e.g., 64x64).
  2. TexStorage2DEXT is invoked with oversized dimensions (e.g., 16384x16384) designed to cause native allocation failure.
  3. The validating decoder updates its tracking metadata (SetLevelInfo and SetImmutable(true, true)) to the new dimensions and state, but the subsequent native glTexStorage2DEXTFn call fails.
  4. The native driver-side allocation remains 64x64, while the decoder tracks the texture as 16384x16384 and immutable.
  5. When TexSubImage2D is called with larger dimensions, ValidateTexSubImage checks bounds against the decoder's recorded dimensions (16384x16384) and succeeds.
  6. Because texture->IsImmutable() is true, the redefinition paths are skipped, forcing execution into the raw glTexSubImage2D forwarding branch.
  7. The native GLES driver receives a sub-image update of 16384x16384 against the actual 64x64 allocation, potentially resulting in a heap out-of-bounds write in the GPU process.

Since the validating command decoder is used on specific blocklisted Android models, and since the GPU process is unsandboxed on Android, this could potentially lead to GPU process compromise/RCE.

Note: These are potential steps and analysis based on source code auditing; our tooling agent does not have the ability to run or verify functional exploit code on active hardware.

Suggested Fix

Defer updating the decoder's texture metadata and immutability flags until after verifying that the native storage call succeeded with no GL errors, mimicking the robust behavior of DoTexImage. Alternatively, perform a trailing GL error check after the native glTexStorage2DEXTFn / glTexStorage3DFn calls, and rollback the level info metadata and immutability flags if an error is detected.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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 decoder records the new texture dimensions and immutable flag before the native storage call and has no trailing error check or rollback, unlike other allocation paths.

Impact

This could lead to a heap out-of-bounds write in the GPU process and, since the GPU process is unsandboxed on Android and the decoder is used on specific blocklisted Android models, potentially GPU process compromise or remote code execution; the report notes the steps are unverified analysis.

What the attacker needed

Specific blocklisted Android models; ability to make native allocation fail; ability to issue GPU command buffer calls

The fix

The metadata and immutability flags should only be updated after the native storage call succeeds with no GL errors, or a trailing error check should roll them back.

How it was found

  1. Create a texture and allocate it with small, safe dimensions.
  2. Call the storage function with oversized dimensions chosen to make the native allocation fail.
  3. The decoder records the oversized dimensions and immutable state while the driver call fails.
  4. Call the sub-image update with larger dimensions; bounds validation passes against the recorded size.
  5. Because the texture is marked immutable, the update is forwarded raw to the driver against the small real allocation.

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 program that sits between web content and the graphics driver keeps its own notes about each texture, such as its size. It writes those notes before asking the driver to actually create the texture, and never checks whether that request worked. If the driver refuses because it is out of memory, the notes still say the texture is huge, so a later write of that size is allowed through and can spill past the real, small allocation.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.