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

Use after free in ANGLE (CVE-2026-11040)

A use-after-free in ANGLE's Vulkan backend occurs when an image falls back from tile memory, leaving a dangling pointer in a tracking list. An attacker could exploit this to execute arbitrary code in the GPU process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A potential Use-After-Free vulnerability exists in ANGLE's Vulkan backend on devices supporting tile memory (e.g., Qualcomm Adreno). An image falling back from tile memory clears its tracking flag without being removed from the context's tracking list, causing it to be skipped during destruction cleanup. Subsequent command submissions dereference the freed pointer, which could allow a compromised renderer to execute arbitrary code in the GPU process.

Affected files:

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

Estimated timestamp from git blame: 2026-01-08

Vulnerability Details

In ANGLE's Vulkan backend, ContextVk maintains a list of images currently utilizing transient tile memory via std::vector<vk::ImageHelper *> mImagesWithTileMemory.

The vulnerability stems from a state desynchronization when an image is forced out of tile memory before its destruction:

  1. When glReadPixels is called on an active tile memory attachment, Vulkan transfer limitations force ANGLE to fall back to regular memory.
  2. vk::ImageHelper::readPixelsImpl calls fallbackFromTileMemory (vk_helpers.cpp), which copies the image state and explicitly sets mUseTileMemory = false on the original ImageHelper object.
  3. Crucially, fallbackFromTileMemory does not remove the ImageHelper from ContextVk::mImagesWithTileMemory.
  4. When the attacker subsequently deletes the renderbuffer, RenderbufferVk::onDestroy initiates image cleanup.
  5. The cleanup routine calls ImageHelper::finalizeImageLayoutInShareContexts. This function dictates list removal using the condition if (mUseTileMemory) { ... removeImageWithTileMemory(this); }.
  6. Because mUseTileMemory was previously cleared, the removal loop is bypassed. The ImageHelper object is then freed via SafeDelete, leaving a dangling raw pointer inside ContextVk::mImagesWithTileMemory.

When a context containing the dangling pointer flushes its command buffer (e.g., via glFlush), ContextVk::finalizeImagesWithTileMemory iterates over mImagesWithTileMemory, dereferencing the freed pointer and invoking methods on it.

Potential Impact

This is a potential Renderer-to-GPU sandbox escape. ImageHelper inherits from angle::Subject, which contains an inline FastVector of observer pointers. By grooming the heap, an attacker can reclaim the freed ImageHelper memory and populate the observer list with a fake ObserverBindingBase pointer.

When ContextVk::finalizeImagesWithTileMemory calls fallbackFromTileMemory on the attacker-controlled object, it eventually triggers onStateChange(). This iterates over the attacker's fake observers and executes a virtual function call (binding->getObserver()->onSubjectStateChange()), granting Remote Code Execution (RCE) in the GPU process. MiraclePtr (BRP) does not mitigate this, as the vector stores raw pointers.

Suggested Reproduction Steps

Note: These are theoretical steps, as our AI tooling does not currently possess the ability to run and verify proof-of-concept code.

  1. Prerequisite: Run Chrome on a device with a Vulkan driver supporting VK_QCOM_tile_memory_heap.
  2. In WebGL, create a GL_DEPTH_COMPONENT24 renderbuffer, attach it to an FBO, and issue a draw call to place the attachment into the context's mImagesWithTileMemory list.
  3. Bind a PBO and call glReadPixels on the depth attachment. This triggers fallbackFromTileMemory, setting mUseTileMemory = false.
  4. Call glDeleteRenderbuffers on the renderbuffer. The ImageHelper is deleted, but the pointer remains in the context's tracking list.
  5. Allocate similarly sized WebGL objects to reclaim the freed memory chunk, injecting a fake angle::Subject state and vtable pointers.
  6. Call glFlush() to trigger ContextVk::submitCommands, which loops over the dangling pointer and executes the hijacked virtual call.

Proposed Fix

There are two primary ways to fix this:

  1. Update Tracking in Fallback: Ensure that ImageHelper::fallbackFromTileMemory explicitly calls removeImageWithTileMemory for all contexts in the share group before (or concurrently with) setting mUseTileMemory to false.
  2. Unconditional Removal: Modify ImageHelper::finalizeImageLayoutInShareContexts to unconditionally check if the image is in the mImagesWithTileMemory list, rather than gating the removal loop behind the if (mUseTileMemory) check.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


Results from 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

Likely, the fallbackFromTileMemory function clears the mUseTileMemory flag without removing the image from the context's tracking list, so later cleanup skips removal and leaves a dangling pointer.

Impact

This could allow a compromised renderer to execute arbitrary code in the GPU process, potentially escaping the sandbox, and MiraclePtr does not mitigate it.

What the attacker needed

Chrome on device with Vulkan tile memory support; Compromised renderer

The fix

The fix should ensure that fallbackFromTileMemory removes the image from the tracking list, or that finalizeImageLayoutInShareContexts unconditionally checks for list membership.

How it was found

  1. Run Chrome on a device with a Vulkan driver supporting VK_QCOM_tile_memory_heap.
  2. In WebGL, create a depth renderbuffer, attach it to an FBO, and draw to place it in the tile memory list.
  3. Bind a PBO and call glReadPixels on the depth attachment to trigger fallbackFromTileMemory.
  4. Call glDeleteRenderbuffers to delete the renderbuffer, leaving a dangling pointer.
  5. Allocate similarly sized WebGL objects to reclaim the freed memory and inject fake data.
  6. Call glFlush to trigger command submission, which dereferences the dangling pointer and executes a hijacked virtual call.

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.

This is a use-after-free bug: a program frees memory but keeps a pointer to it, then later uses that pointer. In this case, a graphics component called ANGLE keeps a list of images using special memory, but when an image is moved out of that memory, it is not removed from the list. Later, when the list is used, the program accesses the freed memory, which an attacker could control to run their own code.

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.