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

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

A logic error in ANGLE's Vulkan backend causes cached VkBuffer handles to become stale when a shared vertex conversion buffer is reallocated, leading to a heap-use-after-free. An attacker could exploit this via a malicious WebGL script to potentially achieve arbitrary memory read or disclosure in the GPU process.

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 go/chrome-ai-generated-security-bugs-faq for more information.

Overview: A potential logic error in ANGLE's Vulkan backend can lead to a heap-use-after-free (UAF) vulnerability during vertex attribute conversion. When multiple attributes share a conversion buffer that requires reallocation, previously cached Vulkan buffer handles are not updated, leaving them pointing to freed memory. Reusing these stale handles in subsequent draw calls after garbage collection triggers a UAF in the GPU process.

Affected files:

  • third_party/angle/src/libANGLE/renderer/vulkan/VertexArrayVk.cpp
  • third_party/swiftshader/src/Vulkan/VkBuffer.cpp
  • third_party/angle/src/libANGLE/renderer/vulkan/ContextVk.cpp

Estimated timestamp from git blame: 2025-09-25

Description

A potential heap-use-after-free (UAF) exists in ANGLE's Vulkan backend due to stale VkBuffer handle caching within VertexArrayVk.

During a draw call, VertexArrayVk::syncState processes vertex attributes that require format conversion sequentially based on their index. If two attributes (e.g., attribute 0 and attribute 1) share the same VertexConversionBuffer (which occurs if their formats match and the offset gap is a multiple of their stride), a vulnerability can be triggered. When attribute 0 is processed, a vk::BufferHelper is allocated and its VkBuffer handle is cached in mCurrentArrayBufferHandles[0].

If attribute 1 is subsequently processed and has a smaller offset, it requires a larger buffer to cover the extended range. ContextVk::initBufferForVertexConversion will release the existing vk::BufferHelper to the garbage list and allocate a new one. However, the previously cached handle in mCurrentArrayBufferHandles[0] is never updated.

If a pipeline flush is forced (e.g., via glReadPixels), Renderer::cleanupGarbage executes and permanently destroys the released buffer. A subsequent draw call with no VAO state changes will bypass syncState and directly pass the stale VkBuffer handle to the Vulkan driver (e.g., vkCmdBindVertexBuffers), resulting in a UAF in the GPU process.

Potential Exploitation Steps

Note: These are suggested potential steps derived from code analysis, as our tooling agent cannot execute code to provide a working proof-of-concept.

  1. An attacker executes a malicious WebGL 2.0 script in the sandboxed renderer.
  2. The script creates a large vertex buffer and enables two vertex attributes (Attribute 0 and 1).
  3. Attribute 0 is configured with a format that requires Vulkan conversion, a specific stride (e.g., 16), and a large offset (e.g., 10MB).
  4. Attribute 1 is configured with the same format and stride, but with a 0 offset.
  5. The script calls gl.drawArrays(). In ANGLE's GPU process backend, syncState processes Attribute 0 first, allocating a conversion buffer and caching its VkBuffer handle. It then processes Attribute 1, determines they can share a conversion buffer, but reallocates it to accommodate the larger range. Attribute 0's cached handle becomes stale.
  6. The script synchronously calls gl.readPixels(). This forces ANGLE to flush the command queue and wait for the GPU, which consequently triggers Renderer::cleanupGarbage, freeing the old conversion buffer memory.
  7. The script calls gl.drawArrays() a second time. Because the VAO state hasn't changed, ANGLE reuses the cached handles, passing the stale, freed VkBuffer handle to the Vulkan driver.
  8. The Vulkan driver (or a software fallback like SwiftShader) dereferences the freed handle/object during vertex fetching, triggering a UAF. An attacker could potentially groom the GPU process heap between step 6 and 7 to control the freed memory, turning this into an arbitrary memory read/disclosure primitive. Since the GPU process is unsandboxed on Android, this is highly privileged.

Suggested Fix

When ContextVk::initBufferForVertexConversion reallocates a VertexConversionBuffer, ANGLE must ensure that any other attributes currently sharing that buffer have their cached VkBuffer handles updated. This could be achieved by tracking all attributes bound to a given VertexConversionBuffer and updating their handles in mCurrentArrayBufferHandles synchronously upon reallocation, or by marking those specific bindings as dirty so they are re-evaluated before the draw call proceeds.

Evaluated with Chrome root at commit: c0eb5541aebfa4ea08806eaf6e94bcc69f87ab2f


Results 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 code fails to update cached VkBuffer handles for all attributes sharing a VertexConversionBuffer when that buffer is reallocated.

Impact

An attacker could potentially groom the GPU process heap to control the freed memory, turning this into an arbitrary memory read/disclosure primitive; since the GPU process is unsandboxed on Android, this is highly privileged.

What the attacker needed

Victim runs malicious WebGL script; browser with vulnerable ANGLE; GPU process unsandboxed (e.g., Android)

The fix

ANGLE should update cached VkBuffer handles for all attributes sharing a reallocated VertexConversionBuffer, or mark those bindings as dirty so they are re-evaluated before the draw call.

How it was found

  1. An attacker executes a malicious WebGL 2.0 script in the sandboxed renderer.
  2. The script creates a large vertex buffer and enables two vertex attributes (Attribute 0 and 1).
  3. Attribute 0 is configured with a format that requires Vulkan conversion, a specific stride (e.g., 16), and a large offset (e.g., 10MB).
  4. Attribute 1 is configured with the same format and stride, but with a `0` offset.
  5. The script calls `gl.drawArrays()`. In ANGLE's GPU process backend, `syncState` processes Attribute 0 first, allocating a conversion buffer and caching its `VkBuffer` handle. It then processes Attribute 1, determines they can share a…
  6. The script synchronously calls `gl.readPixels()`. This forces ANGLE to flush the command queue and wait for the GPU, which consequently triggers `Renderer::cleanupGarbage`, freeing the old conversion buffer 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.

This report describes a memory safety bug in a graphics component. When two vertex attributes share a buffer that gets resized, the old buffer is freed but a stale reference to it remains. Later use of that reference can crash the program or let an attacker read memory.

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.