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

Uninitialized Use in ANGLE (CVE-2026-17668)

A logic error in ANGLE's Vulkan backend incorrectly aggregates cube map face masks, causing valid texture data to be dropped during respecification. This may allow a WebGL context to read uninitialized GPU memory, potentially containing cross-origin data.

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 Chrome Security team. 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 Vulkan backend incorrectly aggregates cube map face masks, causing it to drop valid texture data during texture respecification. This may allow a WebGL context to read uninitialized GPU memory by bypassing robust resource initialization. The leaked memory could potentially contain cross-origin data from the GPU process.

Affected files:

  • third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/TextureVk.cpp
  • third_party/angle/src/libANGLE/renderer/renderer_utils.cpp
  • third_party/angle/src/libANGLE/Texture.cpp

Estimated timestamp from git blame: 2023-10-30

Summary

A potential vulnerability exists in ANGLE's Vulkan backend where incorrect aggregation of cube map face masks leads to the disclosure of uninitialized GPU memory. When a cube map texture is respecified (e.g., due to a base level change), the backend may fail to preserve the data of non-redefined faces. Because the frontend remains unaware of this data loss, robust resource initialization is bypassed, allowing subsequent reads to access uninitialized memory from the newly allocated VkImage.

Root Cause Analysis

The issue stems from the use of OR-aggregation when determining which levels of a cube map should be skipped during data preservation. Specifically, the AggregateSkipLevels helper function in third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp computes the union of redefined level masks across all six cube faces:

C++
gl::TexLevelMask AggregateSkipLevels(const gl::CubeFaceArray<gl::TexLevelMask> &skipLevels)
{
    gl::TexLevelMask skipLevelsAllFaces = skipLevels[0];
    for (size_t face = 1; face < gl::kCubeFaceCount; ++face)
        skipLevelsAllFaces |= skipLevels[face]; // Incorrectly uses OR aggregation
    return skipLevelsAllFaces;
}

This aggregated mask is used in ImageHelper::stageSelfAsSubresourceUpdates to decide if a VkImage must be staged for preservation before storage respecification. The function returns early if every allocated level has at least one face being redefined:

C++
// third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp:9821
if ((~skipLevelsAllFaces & levelsMask).none())
{
    return; // Early return drops all faces if ANY face per level is redefined
}

When this early return occurs, any faces that were NOT redefined are silently discarded. A similar logic error exists in IsTextureLevelRedefined (third_party/angle/src/libANGLE/renderer/renderer_utils.cpp), which also uses OR-aggregation. This function is used in TextureVk::reinitImageAsRenderable to skip preservation of entire levels during format-change respecification if any single face was redefined.

Bypassing Robust Resource Initialization

Robust resource initialization is intended to prevent reading uninitialized memory by zero-clearing new resources. However, it is bypassed here because:

  1. The frontend's robust initialization check (Texture::initState) relies on per-face states. Since the dropped faces were previously uploaded with valid data, their state remains Initialized.
  2. The frontend is unaware that the backend discarded the data and therefore does not trigger a clear of the new VkImage memory.

Potential Reproduction Steps

  1. Initialize a WebGL2 context on ANGLE Vulkan with robust resource initialization enabled.
  2. Create a GL_TEXTURE_CUBE_MAP and set GL_TEXTURE_BASE_LEVEL to 1.
  3. Upload valid data to all six faces at level 1 and force an allocation (e.g., via a draw call).
  4. Change GL_TEXTURE_BASE_LEVEL to 0.
  5. Call glTexImage2D for GL_TEXTURE_CUBE_MAP_POSITIVE_X at level 1 with an incompatible size. This sets a bit in mRedefinedLevels for one face of level 1.
  6. Issue a command (like glReadPixels on level 0) that triggers respecifyImageStorage. This hits the buggy early-return in stageSelfAsSubresourceUpdates, discarding level 1 data for the other five faces.
  7. Restore the original size for POSITIVE_X level 1 to regain completeness.
  8. Bind one of the silently discarded faces (e.g., NEGATIVE_X) to a framebuffer and call glReadPixels. The read may return uninitialized GPU memory from the new allocation.

Suggested Fix

The aggregation logic in AggregateSkipLevels and IsTextureLevelRedefined should use AND-aggregation (&=) for cube maps when the intent is to skip an operation only if the entire level (all six faces) is affected. Alternatively, the early return in stageSelfAsSubresourceUpdates should be removed to allow the per-face preservation loop to execute correctly.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 the use of OR-aggregation instead of AND-aggregation when combining per-face skip masks for cube maps, causing the backend to skip preservation of entire levels if any single face is redefined.

Impact

A WebGL context could read uninitialized GPU memory, potentially containing cross-origin data from the GPU process.

What the attacker needed

WebGL2 context on ANGLE Vulkan; robust resource initialization enabled

The fix

The aggregation logic should use AND-aggregation for cube maps, or the early return in stageSelfAsSubresourceUpdates should be removed.

How it was found

  1. Initialize a WebGL2 context on ANGLE Vulkan with robust resource initialization enabled.
  2. Create a cube map texture and set its base level to 1.
  3. Upload valid data to all six faces at level 1 and force an allocation.
  4. Change the base level to 0.
  5. Call glTexImage2D for one face at level 1 with an incompatible size.
  6. Issue a command that triggers respecification, discarding data for the other five faces.

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 texture is resized or changed, the graphics driver should keep the old data for parts that are not being changed. A mistake in how the driver decides which parts to keep means it sometimes throws away data for some faces of a cube map. Later, when the program reads those faces, it gets whatever was left in memory, which could be secret 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.