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

Uninitialized Use in ANGLE (CVE-2026-13833)

A logic error in ANGLE's Metal backend lets a texture's native GPU storage fall out of sync with its per-level image definitions, so a mip level can stay uninitialised while the frontend marks it as initialised. An attacker could then sample uninitialised GPU memory in a shader, potentially leaking cross-origin data such as decoded video frames.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 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 logic error in ANGLE's Metal backend allows a texture's native storage to become desynchronized from its per-level image definitions. This can lead to shaders sampling from uninitialized GPU memory, potentially leaking cross-origin data such as decoded video frames or other web content.

Affected files:

  • third_party/angle/src/libANGLE/renderer/metal/TextureMtl.mm
  • third_party/angle/src/libANGLE/renderer/metal/FrameBufferMtl.mm
  • third_party/angle/src/libANGLE/renderer/metal/mtl_resources.mm
  • third_party/angle/src/libANGLE/Texture.cpp

Estimated timestamp from git blame: 2024-05-14

Summary

A vulnerability in ANGLE's Metal backend (used in Chrome on macOS and iOS) can potentially lead to cross-origin GPU memory disclosure. The issue stems from a desynchronization between per-level ImageDefinitionMtl objects (which hold standalone texture data) and mNativeTextureStorage (the actual MTLTexture used by shaders). This allows an attacker to sample from uninitialized GPU memory that may contain sensitive data from other origins.

Root Cause Analysis

The vulnerability is located in third_party/angle/src/libANGLE/renderer/metal/TextureMtl.mm and involves two primary sites:

1. Native Storage Creation (Site A)

When ensureNativeStorageCreated is called, it allocates a new native texture storage and attempts to transfer data from previously defined standalone images (mTexImageDefs) into this storage. However, the loop at line 971 silently skips any level where the standalone image's format does not match the native storage's format. In such cases, the native storage's mip level remains uninitialized, while the ImageDefinitionMtl for that level remains non-null, pointing to the old standalone texture.

2. Image Redefinition (Site B)

When a mip level is later redefined (via glTexImage2D) to a format that does match the existing native storage, redefineImage checks for compatibility at line 2042. If the format and size match the storage, it avoids deallocating the storage. It then enters a conditional block at line 2061:

C++
if (mNativeTextureStorage && imageDef.image && imageWithinNativeStorageLevels)
{
    ASSERT(imageDef.image->textureType() == ... &&
           imageDef.formatID == mNativeTextureStorage->getFormat().intendedFormatId &&
           imageDef.image->sizeAt0() == size);
}

In release builds, this block is a no-op because it only contains an ASSERT. If the level was previously skipped at Site A, imageDef.image still points to the stale, detached texture of the old format. The backend fails to update or clear this stale reference, leading to a desynchronization.

Impact

Subsequent pixel uploads are routed to the detached standalone texture because getImageDefinition prefers an existing imageDef.image. However, when the texture is bound for sampling in a draw call, the backend binds the mNativeTextureStorage. Consequently, the shader samples from the uninitialized native storage (VRAM) instead of the uploaded data. Since the frontend marks the level as Initialized upon upload, ANGLE's robustness checks (which would otherwise zero-fill the storage) are bypassed.

Potential Reproduction Steps (Not verified by execution)

  1. Create a texture with TEXTURE_MAX_LEVEL set to 1.
  2. Define Level 0 as RGBA8 and Level 1 as RGBA16F using glTexImage2D with no data.
  3. Force native storage creation by binding the texture to a framebuffer and performing a clear. The native storage will be RGBA8. Level 1 will be skipped during synchronization because of the format mismatch, leaving its storage uninitialized.
  4. Redefine Level 1 to RGBA8 and upload data. Due to the logic error, the data is uploaded to a detached texture, while the native storage remains uninitialized.
  5. Draw using the texture and sample from mip level 1 in a shader. The resulting colors will contain leaked GPU memory contents.

Suggested Fix

In TextureMtl::redefineImage, the condition at line 2061 should be modified to ensure the existing imageDef.image is actually synchronized with the native storage and matches the intended format. For example, include the formatID and size checks as part of the if condition rather than solely within an ASSERT block. This ensures that a new, correct image definition (or view) is created when a desynchronization is detected in release builds.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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

Likely a release-build no-op: when a mip level's format did not match the native storage it was skipped during synchronisation, and the later redefinition path only checked the stale image reference inside an ASSERT, so the detached image was never replaced.

Impact

A shader could sample uninitialised GPU memory and potentially disclose cross-origin data, though the reproduction steps were not verified by execution and the report is from an experimental project that notes its deductions may be wrong.

What the attacker needed

Chrome on macOS or iOS (Metal backend); Attacker-controlled web content; Victim loads the page

The fix

The redefinition check should verify in the actual condition, not just an ASSERT, that the existing image matches the native storage's format and size, creating a fresh image definition when they diverge.

How it was found

  1. Create a texture with the maximum mip level set to 1.
  2. Define level 0 as RGBA8 and level 1 as RGBA16F with no data.
  3. Force native storage creation by binding the texture to a framebuffer and clearing; level 1 is skipped due to the format mismatch.
  4. Redefine level 1 to RGBA8 and upload data, which goes to the detached texture.
  5. Draw with the texture and sample mip level 1 in a shader to read leaked 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 page can ask the graphics card to draw with textures, and the browser is meant to keep each site's picture data separate. Here a bookkeeping mistake meant the browser thought a texture level was filled in when the graphics memory behind it had never been written. A malicious page could then read whatever leftover data happened to be sitting in that graphics memory, which might belong to another site.

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.