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

Out of bounds read in ANGLE (CVE-2026-11111)

A logic error in ANGLE's Vulkan backend on devices without uint8 index support can leave a stale index buffer offset after a render pass ends, causing an out-of-bounds GPU memory read. An attacker could potentially read cross-origin GPU memory via WebGL.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 56 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 without the security team.

Overview: A logic error in ANGLE's Vulkan backend can lead to an out-of-bounds (OOB) memory read on devices without VK_EXT_index_type_uint8 support. A stale index buffer offset is retained when alternating draw calls and framebuffer binds, leading to a size underflow or OOB offset during command recording. This allows an attacker to potentially read cross-origin GPU memory.

Affected files:

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

Estimated timestamp from git blame: 2025-05-13

Description

A potential vulnerability exists in ANGLE's Vulkan backend on devices that do not support the VK_EXT_index_type_uint8 extension (common on Android and older Linux devices). Because Vulkan lacks uint8 index support on these platforms, ANGLE must convert GL_UNSIGNED_BYTE index buffers to uint16 during gl.drawElements.

The flaw lies in how ContextVk::setupIndexedDraw manages mCurrentIndexBufferOffset. When called, it unconditionally sets mCurrentIndexBufferOffset to the user-provided indices offset. However, the subsequent CPU conversion to uint16 and the necessary reset of mCurrentIndexBufferOffset back to 0 only occur if DIRTY_BIT_INDEX_BUFFER is set in mGraphicsDirtyBits.

An attacker can desynchronize this state by forcing a render pass to end (e.g., by changing framebuffers). Ending a render pass sets DIRTY_BIT_RENDER_PASS but leaves DIRTY_BIT_INDEX_BUFFER clear. If the attacker immediately issues another gl.drawElements call with the exact same large indices offset, setupIndexedDraw observes that the offset hasn't changed (indices == mLastIndexBufferOffset) and does not set DIRTY_BIT_INDEX_BUFFER.

Because the dirty bit is clear, the conversion step is bypassed, and mCurrentIndexBufferOffset is not reset to 0. It retains the massive attacker-controlled offset, while mCurrentIndexBuffer continues to point to the small, previously converted buffer suballocation.

During ContextVk::setupDraw, the dirty bits are processed. DIRTY_BIT_RENDER_PASS is processed first, which calls flushDirtyGraphicsRenderPass. This function injects DIRTY_BIT_INDEX_BUFFER into the active dirty bit iterator to ensure the new render pass has the correct state bound.

When ContextVk::handleDirtyGraphicsIndexBuffer executes shortly after, it uses the mismatched state (small buffer, massive offset). This results in:

  1. With VK_KHR_maintenance5: A 64-bit integer underflow when calculating alignedSize (elementArrayBuffer->getSize() - mCurrentIndexBufferOffset), passing a huge size to vkCmdBindIndexBuffer2KHR.
  2. Without VK_KHR_maintenance5: A massive binding offset (bufferOffset + mCurrentIndexBufferOffset) pointing far past the intended suballocation in ANGLE's shared vertex-conversion pool.

In both cases, vkCmdDrawIndexed will read indices out-of-bounds from the GPU pool, potentially disclosing cross-origin or UI data.

Potential Reproduction Steps (WebGL)

Note: These steps describe a potential attack path. We do not currently have an automated tool to execute this WebGL code.

  1. Target a device lacking VK_EXT_index_type_uint8.
  2. Create two framebuffers (fboA, fboB) and a large GL_ELEMENT_ARRAY_BUFFER.
  3. Bind fboA and perform gl.drawElements(..., GL_UNSIGNED_BYTE, large_offset). This converts the buffer and resets the internal offset to 0.
  4. Bind fboB. This ends the render pass and sets DIRTY_BIT_RENDER_PASS, but leaves DIRTY_BIT_INDEX_BUFFER clear.
  5. Perform the exact same gl.drawElements(..., GL_UNSIGNED_BYTE, large_offset) call.
  6. setupIndexedDraw skips conversion/reset because the offset didn't change and the dirty bit is clear.
  7. The draw call submits OOB binding parameters to Vulkan, allowing the vertex shader to read and exfiltrate out-of-bounds GPU memory to the framebuffer.

Suggested Fix

Ensure that mCurrentIndexBufferOffset is accurately synchronized with the currently bound mCurrentIndexBuffer. If setupIndexedDraw determines that the current draw requires a converted uint8 buffer and the buffer is already converted and bound, it must ensure mCurrentIndexBufferOffset is set to 0, regardless of whether DIRTY_BIT_INDEX_BUFFER was initially dirty.

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


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 reset the current index buffer offset to zero when a draw call reuses the same offset after a render pass change, because the dirty bit for the index buffer is not set.

Impact

An attacker could potentially read cross-origin GPU memory, but the report notes that the reproduction steps are theoretical and no automated tool exists to execute them.

What the attacker needed

Device without VK_EXT_index_type_uint8; WebGL support; ability to run WebGL code

The fix

The code should ensure that the current index buffer offset is reset to zero when a converted uint8 buffer is already bound, regardless of the dirty bit state.

How it was found

  1. Target a device lacking VK_EXT_index_type_uint8.
  2. Create two framebuffers and a large element array buffer.
  3. Bind the first framebuffer and perform a draw with a large unsigned byte index offset.
  4. Bind the second framebuffer to end the render pass.
  5. Perform the same draw call again with the same large offset.
  6. The draw submits out-of-bounds binding parameters to Vulkan, allowing reading of GPU 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 is a bug in a graphics translation layer called ANGLE, which lets web pages use WebGL to draw on the screen. On some devices, ANGLE has to convert certain index data, and a mistake in tracking that conversion can make the graphics card read memory outside the intended buffer. That could let a malicious web page peek at data from other pages or the browser interface.

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.