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.cppthird_party/angle/src/libANGLE/renderer/vulkan/ContextVk.cppthird_party/angle/src/libANGLE/renderer/vulkan/ContextVk.hthird_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:
- When
glReadPixelsis called on an active tile memory attachment, Vulkan transfer limitations force ANGLE to fall back to regular memory. vk::ImageHelper::readPixelsImplcallsfallbackFromTileMemory(vk_helpers.cpp), which copies the image state and explicitly setsmUseTileMemory = falseon the originalImageHelperobject.- Crucially,
fallbackFromTileMemorydoes not remove theImageHelperfromContextVk::mImagesWithTileMemory. - When the attacker subsequently deletes the renderbuffer,
RenderbufferVk::onDestroyinitiates image cleanup. - The cleanup routine calls
ImageHelper::finalizeImageLayoutInShareContexts. This function dictates list removal using the conditionif (mUseTileMemory) { ... removeImageWithTileMemory(this); }. - Because
mUseTileMemorywas previously cleared, the removal loop is bypassed. TheImageHelperobject is then freed viaSafeDelete, leaving a dangling raw pointer insideContextVk::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.
- Prerequisite: Run Chrome on a device with a Vulkan driver supporting
VK_QCOM_tile_memory_heap. - In WebGL, create a
GL_DEPTH_COMPONENT24renderbuffer, attach it to an FBO, and issue a draw call to place the attachment into the context'smImagesWithTileMemorylist. - Bind a PBO and call
glReadPixelson the depth attachment. This triggersfallbackFromTileMemory, settingmUseTileMemory = false. - Call
glDeleteRenderbufferson the renderbuffer. TheImageHelperis deleted, but the pointer remains in the context's tracking list. - Allocate similarly sized WebGL objects to reclaim the freed memory chunk, injecting a fake
angle::Subjectstate and vtable pointers. - Call
glFlush()to triggerContextVk::submitCommands, which loops over the dangling pointer and executes the hijacked virtual call.
Proposed Fix
There are two primary ways to fix this:
- Update Tracking in Fallback: Ensure that
ImageHelper::fallbackFromTileMemoryexplicitly callsremoveImageWithTileMemoryfor all contexts in the share group before (or concurrently with) settingmUseTileMemorytofalse. - Unconditional Removal: Modify
ImageHelper::finalizeImageLayoutInShareContextsto unconditionally check if the image is in themImagesWithTileMemorylist, rather than gating the removal loop behind theif (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.
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
- Run Chrome on a device with a Vulkan driver supporting VK_QCOM_tile_memory_heap.
- In WebGL, create a depth renderbuffer, attach it to an FBO, and draw to place it in the tile memory list.
- Bind a PBO and call glReadPixels on the depth attachment to trigger fallbackFromTileMemory.
- Call glDeleteRenderbuffers to delete the renderbuffer, leaving a dangling pointer.
- Allocate similarly sized WebGL objects to reclaim the freed memory and inject fake data.
- 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.