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

Uninitialized Use in ANGLE (CVE-2026-14413)

A logic error in ANGLE's Vulkan backend leaves stale access flags in a buffer's synchronization tracker after re-initialization, causing necessary memory barriers to be skipped. This could allow a compromised renderer to read uninitialized or cross-origin GPU memory on Android.

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 Vulkan backend prevents the synchronization state of buffers from being fully cleared during re-initialization. Stale access flags from previous buffer uses can persist, causing subsequent memory barriers to be incorrectly skipped. This can lead to read-after-write hazards and potential cross-origin information leaks in the GPU process on Android.

Affected files:

  • third_party/angle/src/libANGLE/renderer/vulkan/vk_ref_counted_event.h
  • third_party/angle/src/libANGLE/renderer/vulkan/vk_ref_counted_event.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/vk_helpers.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/BufferVk.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/ContextVk.cpp

Estimated timestamp from git blame: 2025-02-05

Background

In ANGLE's Vulkan backend, the RefCountedEventArrayWithAccessFlags class is used to track Vulkan events and their associated access flags (VkAccessFlags) to optimize synchronization. It inherits from RefCountedEventArray. This tracking allows the backend to skip redundant memory barriers if a specific access type has already been synchronized for a given pipeline stage.

Description

A potential vulnerability exists where RefCountedEventArrayWithAccessFlags fails to override the release(Renderer*) and release(Context*) methods from its base class. While it shadows releaseToEventCollector, the standard release methods (defined in vk_ref_counted_event.cpp, lines 135-153) only reset the mBitMask and release the underlying events, but have no knowledge of the mAccessFlags map introduced in the derived class.

When a BufferHelper is re-initialized or orphaned (e.g., via glBufferData), initializeBarrierTracker calls mCurrentReadEvents.release(renderer) (vk_helpers.cpp, line 4867). This call resolves to the base class implementation, leaving the mAccessFlags map populated with stale data from the buffer's previous incarnation.

In the new incarnation, the first call to replaceEventAtStage for a specific stage will OR-accumulate new access flags into the stale ones: mAccessFlags[eventStage] |= accessFlags (vk_ref_counted_event.h, line 294). Subsequent calls to hasEventAndAccess then return false positives for access types that were only present in the stale data:

C++
bool hasEventAndAccess(EventStage eventStage, VkAccessFlags accessType) const {
    return mBitMask.test(eventStage) && (mAccessFlags[eventStage] & accessType) == accessType;
}

This causes recordReadBarrier to incorrectly skip necessary Vulkan memory barriers:

C++
if (mCurrentReadEvents.hasEventAndAccess(eventStage, readAccessType)) {
    return;    // Potential incorrect barrier skip
}

Potential Impact

This synchronization failure leads to read-after-write hazards. Specifically, it can cause the GPU to skip the barrier required for the zero-initialization write performed during robust_resource_initialization. An attacker could exploit this to read uninitialized GPU memory or data previously residing in memory allocated to other origins.

On Android, the GPU process is shared across origins and is not sandboxed by default. A compromised renderer could leverage this flaw to exfiltrate cross-origin GPU data, which constitutes a sandbox escape.

Suggested Reproducer Steps

Note: These steps are based on source code analysis; a functional PoC has not been executed.

  1. From a compromised renderer, create a GL buffer and perform read operations (e.g., uniform reads) to populate the access flag tracker.
  2. Re-initialize the buffer using glBufferData with the same size to trigger BufferHelper reuse.
  3. Perform a new operation that involves a write followed by a read with the same access type as the stale flags.
  4. Observe if the Vulkan memory barrier for the second read is omitted in the command stream, allowing the read to occur before the write (e.g., the zero-fill) is visible.

Suggested Fix

RefCountedEventArrayWithAccessFlags should override both release(Renderer *renderer) and release(Context *context) to explicitly clear the mAccessFlags map. For example:

C++
void release(Renderer *renderer) {
    RefCountedEventArray::release(renderer);
    mAccessFlags.fill(0);
}

void release(Context *context) {
    RefCountedEventArray::release(context);
    mAccessFlags.fill(0);
}

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 the derived class RefCountedEventArrayWithAccessFlags does not override the release methods to clear its mAccessFlags map, so stale flags survive buffer re-initialization.

Impact

A compromised renderer could read uninitialized GPU memory or data from other origins, constituting a sandbox escape on Android where the GPU process is shared and not sandboxed by default.

What the attacker needed

Compromised renderer; Android platform; GPU process shared across origins

The fix

The derived class should override both release methods to explicitly clear the mAccessFlags map after calling the base implementation.

How it was found

  1. From a compromised renderer, create a GL buffer and perform read operations to populate the access flag tracker.
  2. Re-initialize the buffer using glBufferData with the same size to trigger BufferHelper reuse.
  3. Perform a new operation that involves a write followed by a read with the same access type as the stale flags.
  4. Observe if the Vulkan memory barrier for the second read is omitted, allowing the read to occur before the write is visible.

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 program reuses a buffer, it should forget old information about which memory operations were already synchronized. Here, some of that old information is kept, so the system wrongly thinks a memory barrier is unnecessary. Skipping the barrier can let one part of the GPU read data that another part wrote or left behind, potentially leaking information between 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.