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

Out of bounds write in ANGLE (CVE-2026-10907)

ANGLE's multi-draw validation checked each sub-draw's transform feedback buffer space against a counter that was never advanced between iterations, so sub-draws that individually fit but collectively overflowed all passed validation. The backend then wrote past the transform feedback buffer boundary, and the reporter demonstrated corruption of another tab's GPU buffer data.

sweetchip Follow

Originally disclosed on Chrome VRP

Bounty$2,000 High View original
  • Fix shipped in 3 months

Report description

Transform Feedback OOB Write via Multi-Draw Cumulative Overflow


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules


The problem

Please describe the technical details of the vulnerability

Summary

ANGLE's ValidateMultiDrawArraysANGLE() checks each sub-draw's transform feedback (XFB) buffer space against a stale mVerticesDrawn counter that is never updated between validation iterations. Sub-draws that individually fit within the XFB buffer but collectively exceed its capacity all pass validation. The backend then executes all sub-draws sequentially, writing past the XFB buffer boundary.

Root Cause

The Bug: Stale Accumulator in Multi-Draw Validation Loop

The root cause is a stale accumulator leading to cumulative overflow — the validation loop reads mVerticesDrawn without advancing it between iterations, so every sub-draw is checked against the same base offset. This gap is deterministic and single-threaded: the validation phase simply never updates the counter that the execution phase later advances correctly. Each sub-draw individually fits within the buffer, but their cumulative writes exceed its capacity.

C++
// validationES2.cpp — ValidateMultiDrawArraysANGLE
bool ValidateMultiDrawArraysANGLE(const Context *context,
                                   angle::EntryPoint entryPoint,
                                   PrimitiveMode mode,
                                   const GLint *firsts,
                                   const GLsizei *counts,
                                   GLsizei drawcount)
{
    if (drawcount < 0) { ... return false; }
    for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
    {
        if (!ValidateDrawArrays(context, entryPoint, mode,
                                firsts[drawID], counts[drawID]))
            return false;
        // *** BUG: mVerticesDrawn NOT updated between iterations ***
        // Each sub-draw validates against the same stale counter
    }
    return true;
}

The same stale-accumulator pattern exists in all multi-draw validation functions — each loops over sub-draws calling per-draw validation without advancing mVerticesDrawn between iterations:

C++
// validationES2.cpp — ValidateMultiDrawElementsANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawElements(context, entryPoint, mode, counts[drawID], type, indices[drawID]))
        return false;
    // BUG: mVerticesDrawn not updated between iterations
}
C++
// validationES3.cpp — ValidateMultiDrawArraysInstancedANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawArraysInstancedBase(context, entryPoint, mode, firsts[drawID],
                                         counts[drawID], instanceCounts[drawID], 0))
        return false;
    // BUG: mVerticesDrawn not updated — instanceCounts amplifies overflow
}
C++
// validationES3.cpp — ValidateMultiDrawElementsInstancedANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawElementsInstancedBase(context, entryPoint, mode, counts[drawID], type,
                                           indices[drawID], instanceCounts[drawID], 0))
        return false;
    // BUG: mVerticesDrawn not updated — instanceCounts amplifies overflow
}

The XFB Space Check (called per sub-draw via ValidateDrawArraysCommon)

C++
// validationES.h — inside ValidateDrawArraysCommon
if (ANGLE_UNLIKELY(context->getStateCache().isTransformFeedbackActiveUnpaused()) &&
    ANGLE_UNLIKELY(!context->supportsGeometryOrTesselation()))
{
    const State &state = context->getState();
    TransformFeedback *curTransformFeedback = state.getCurrentTransformFeedback();
    if (!curTransformFeedback->checkBufferSpaceForDraw(count, primcount))
    {
        ANGLE_VALIDATION_ERROR(GL_INVALID_OPERATION, err::kTransformFeedbackBufferTooSmall);
        return false;
    }
}

The Counter Check (reads stale mVerticesDrawn)

C++
// TransformFeedback.cpp — checkBufferSpaceForDraw
bool TransformFeedback::checkBufferSpaceForDraw(GLsizei count, GLsizei primcount) const
{
    auto vertices = mState.mVerticesDrawn +  // <-- STALE: never advanced during validation
        GetVerticesNeededForDraw(mState.mPrimitiveMode, count, primcount);
    return vertices.IsValid() && vertices.ValueOrDie() <= mState.mVertexCapacity;
}

The Counter Update (only called AFTER execution, not during validation)

C++
// TransformFeedback.cpp — onVerticesDrawn
void TransformFeedback::onVerticesDrawn(const Context *context, GLsizei count, GLsizei primcount)
{
    ASSERT(mState.mActive && !mState.mPaused);
    mState.mVerticesDrawn =
        (mState.mVerticesDrawn + GetVerticesNeededForDraw(mState.mPrimitiveMode, count, primcount))
            .ValueOrDie();
    // ...
}

Execution Flow

Validation phase (all pass — stale mVerticesDrawn = 0):
  Sub-draw 0: checkBufferSpaceForDraw(400,1) → 0+400 <= 1024 ✓
  Sub-draw 1: checkBufferSpaceForDraw(400,1) → 0+400 <= 1024 ✓ (STALE!)
  ... (all 10 sub-draws pass)

Execution phase (MULTI_DRAW_BLOCK macro in renderer_utils.cpp):
  Sub-draw 0: writes 400 vertices at offset 0,     mVerticesDrawn = 400
  Sub-draw 1: writes 400 vertices at offset 1600,   mVerticesDrawn = 800
  Sub-draw 2: writes 400 vertices at offset 3200,   mVerticesDrawn = 1200 ← OVERFLOW START
  Sub-draw 3: writes 400 vertices at offset 4800,   mVerticesDrawn = 1600
  ...
  Sub-draw 9: writes 400 vertices at offset 14400,  mVerticesDrawn = 4000
  → 2976 vertices × 4 bytes = 11,904 bytes OOB write

Reproduction Steps

Cross-Tab Rendering Corruption

This PoC demonstrates that an attacker webpage can corrupt the GPU buffer data of a victim webpage open in a separate tab. Both tabs share Chrome's GPU process.

  1. Open Chrome.
  2. Open poc_render_verify_victim_min.html in Tab 1 — it renders 3 colored triangles (red, green, blue), sprays 4096 × 4KB GPU buffers with tagged sentinel data, then starts a rendering integrity monitoring loop
  3. Open poc_render_verify_attacker_min.html in Tab 2 — click "Attack (100 rounds)"
  4. The attacker page will:
    • Force ANGLE BufferManager GC eviction (60 temporary contexts destroyed + 3×600 buffer spray/free cycles + 256MB allocation pressure)
    • Allocate a 4KB XFB buffer (same size class as victim's buffers)
    • Execute 100 XFB overflow rounds via multiDrawArraysWEBGL(POINTS, ...) with 10 sub-draws of 400 vertices each
    • Each sub-draw passes validation individually (400 < 1024) because mVerticesDrawn is never updated between iterations
    • Each round writes 12KB past the 4KB buffer boundary into adjacent GPU memory
  5. Expected victim behavior (if no bug): Rendering stays identical, all buffers clean
  6. Actual (confirmed on Apple M4 Pro, macOS, Metal backend): "GPU RENDERING CORRUPTION DETECTED" — victim tab's triangles disappear or move to wrong positions, spray buffer sentinel data overwritten

Note: The cross-tab attack relies on GPU heap status (GC eviction + buffer spray) to place victim and attacker buffers adjacently. (multiple attempts may be required)

How it works:

  1. Both tabs share Chrome's single GPU process and Metal device
  2. ANGLE's per-context BufferManager caches freed buffers; GC eviction returns them to Metal
  3. Attacker triggers GC eviction (destroy 60 temp contexts + 3×600 spray/free + 256MB pressure)
  4. Victim allocates 4096 × 4KB buffers → Metal reuses freed regions, placing them adjacent to attacker's XFB buffer
  5. Attacker executes XFB overflow → writes 12KB past buffer boundary into victim's VBO/spray buffers
  6. Victim's rendering loop detects pixel differences → GPU rendering corruption confirmed

Cross-tab attack timeline:

Tab 1 (Victim):  Allocate VBO → Render triangles → Monitor rendering
Tab 2 (Attacker): GC eviction → Allocate XFB buf → multiDrawArrays overflow
                                                      ↓
Tab 1 (Victim):  Re-render → readPixels → PIXEL DIFFS DETECTED
                              → "GPU RENDERING CORRUPTION DETECTED"

Attached Files

File Description
poc_render_verify_attacker_min.html Cross-tab attack PoC — executes XFB overflow after GC eviction to corrupt victim's GPU buffers (CSS-stripped minimal version)
poc_render_verify_victim_min.html Cross-tab victim PoC — renders 3 triangles + 4096×4KB buffer spray, monitors rendering integrity (CSS-stripped minimal version)

Impact analysis

Impact

An attacker can corrputs GPU memory. (POC shows that an attacker page corrupts the rendering output of a victim page in a different tab.)


The cause

What version of Chrome have you found the security issue in?

145.0.7632.117 stable

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Memory Corruption

How would you like to be publicly acknowledged for your report?

sweetchip

The original report as published on the Chromium issue tracker, by sweetchip. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

ANGLE is the translation layer Chrome uses to turn WebGL and OpenGL ES calls into the native graphics API of the platform, in this case Metal on macOS. One of the OpenGL ES features ANGLE implements is transform feedback (XFB): while a draw runs, the vertex shader can write its output into a buffer object instead of (or as well as) feeding the rasteriser. Because the shader writes into a fixed-size buffer, the driver has to know in advance whether the vertices produced by a draw will fit, and reject the draw if they will not.

The report concerns the multi-draw entry points, which let a caller submit many sub-draws in one call. ANGLE validates each sub-draw before execution. The claim is that this validation does not account for the space already consumed by earlier sub-draws in the same call, so a batch whose individual sub-draws each fit but whose total does not passes validation and then writes past the end of the XFB buffer.

The issue was reported through the Chrome Vulnerability Reward Program, affects ANGLE, and was found in Chrome 145.0.7632.117 stable. It is classified as an out of bounds write / memory corruption, rated high severity, with a bounty of 2000.00 USD, and was disclosed on 2026-06-02 under the identifier CVE-2026-10907. The researcher is credited as sweetchip.

Setup

The result was confirmed on an Apple M4 Pro running macOS with the Metal backend. The proof of concept consists of two HTML files, both described as CSS-stripped minimal versions:

File Description
poc_render_verify_attacker_min.html Cross-tab attack PoC: executes the XFB overflow after GC eviction to corrupt the victim's GPU buffers
poc_render_verify_victim_min.html Cross-tab victim PoC: renders 3 triangles plus a 4096×4KB buffer spray and monitors rendering integrity

No accounts or special roles are involved. The precondition is simply that two pages are open in two tabs of the same Chrome instance, because both tabs share Chrome's single GPU process and Metal device.

Finding it

The researcher looked at the validation path for multi-draw calls and found that ValidateMultiDrawArraysANGLE() loops over the sub-draws and calls the per-draw validation for each one, but never advances the mVerticesDrawn counter between iterations. The XFB space check reads that counter, so every sub-draw in the batch is checked against the same base offset, as if nothing had been drawn yet. The execution phase, by contrast, does advance the counter correctly after each sub-draw, so the writes march forward through the buffer while validation believed they all started at the same place.

The researcher describes the gap as deterministic and single-threaded: it is not a race, just a counter that the validation phase never updates. Each sub-draw individually fits within the buffer, but their cumulative writes exceed its capacity.

The same pattern was found in the other multi-draw validation functions, so the issue is not limited to the arrays variant.

Exploitation

Step 1: open the victim page

Open Chrome and load poc_render_verify_victim_min.html in Tab 1. The page renders three coloured triangles (red, green, blue), sprays 4096 × 4KB GPU buffers filled with tagged sentinel data, and then starts a rendering integrity monitoring loop.

Step 2: open the attacker page and start the attack

Load poc_render_verify_attacker_min.html in Tab 2 and click "Attack (100 rounds)". The attacker page performs the following:

  1. It forces ANGLE's BufferManager garbage collection to evict cached buffers, by destroying 60 temporary contexts, running 3×600 buffer spray/free cycles, and applying 256MB of allocation pressure.
  2. It allocates a 4KB XFB buffer, chosen to be in the same size class as the victim's buffers.
  3. It executes 100 XFB overflow rounds via multiDrawArraysWEBGL(POINTS, ...) with 10 sub-draws of 400 vertices each.
  4. Each sub-draw passes validation individually (400 < 1024) because mVerticesDrawn is never updated between iterations.
  5. Each round writes 12KB past the 4KB buffer boundary into adjacent GPU memory.

Step 3: observe the victim tab

If there were no bug, the victim's rendering would stay identical and all buffers would remain clean. On the tested configuration (Apple M4 Pro, macOS, Metal backend) the victim tab instead reports "GPU RENDERING CORRUPTION DETECTED": the triangles disappear or move to wrong positions, and the sentinel data in the spray buffers is overwritten.

The researcher notes that the cross-tab attack relies on GPU heap status (GC eviction plus buffer spray) to place the victim's and attacker's buffers adjacently, and that multiple attempts may be required.

The mechanism, as described in the report:

  1. Both tabs share Chrome's single GPU process and Metal device.
  2. ANGLE's per-context BufferManager caches freed buffers; GC eviction returns them to Metal.
  3. The attacker triggers GC eviction (destroy 60 temp contexts, 3×600 spray/free, 256MB pressure).
  4. The victim allocates 4096 × 4KB buffers, and Metal reuses the freed regions, placing them adjacent to the attacker's XFB buffer.
  5. The attacker executes the XFB overflow, writing 12KB past the buffer boundary into the victim's VBO/spray buffers.
  6. The victim's rendering loop detects pixel differences, confirming GPU rendering corruption.

The cross-tab timeline given in the report:

Text
Tab 1 (Victim):  Allocate VBO → Render triangles → Monitor rendering
Tab 2 (Attacker): GC eviction → Allocate XFB buf → multiDrawArrays overflow
                                                      ↓
Tab 1 (Victim):  Re-render → readPixels → PIXEL DIFFS DETECTED
                              → "GPU RENDERING CORRUPTION DETECTED"

Root cause

The root cause is a stale accumulator in the multi-draw validation loop. ValidateMultiDrawArraysANGLE() reads mVerticesDrawn without advancing it between iterations, so every sub-draw is checked against the same base offset:

C++
// validationES2.cpp — ValidateMultiDrawArraysANGLE
bool ValidateMultiDrawArraysANGLE(const Context *context,
                                   angle::EntryPoint entryPoint,
                                   PrimitiveMode mode,
                                   const GLint *firsts,
                                   const GLsizei *counts,
                                   GLsizei drawcount)
{
    if (drawcount < 0) { ... return false; }
    for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
    {
        if (!ValidateDrawArrays(context, entryPoint, mode,
                                firsts[drawID], counts[drawID]))
            return false;
        // *** BUG: mVerticesDrawn NOT updated between iterations ***
        // Each sub-draw validates against the same stale counter
    }
    return true;
}

The same stale-accumulator pattern exists in all multi-draw validation functions, each looping over sub-draws and calling per-draw validation without advancing mVerticesDrawn:

C++
// validationES2.cpp — ValidateMultiDrawElementsANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawElements(context, entryPoint, mode, counts[drawID], type, indices[drawID]))
        return false;
    // BUG: mVerticesDrawn not updated between iterations
}
C++
// validationES3.cpp — ValidateMultiDrawArraysInstancedANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawArraysInstancedBase(context, entryPoint, mode, firsts[drawID],
                                         counts[drawID], instanceCounts[drawID], 0))
        return false;
    // BUG: mVerticesDrawn not updated — instanceCounts amplifies overflow
}
C++
// validationES3.cpp — ValidateMultiDrawElementsInstancedANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawElementsInstancedBase(context, entryPoint, mode, counts[drawID], type,
                                           indices[drawID], instanceCounts[drawID], 0))
        return false;
    // BUG: mVerticesDrawn not updated — instanceCounts amplifies overflow
}

The XFB space check itself is called per sub-draw through ValidateDrawArraysCommon:

C++
// validationES.h — inside ValidateDrawArraysCommon
if (ANGLE_UNLIKELY(context->getStateCache().isTransformFeedbackActiveUnpaused()) &&
    ANGLE_UNLIKELY(!context->supportsGeometryOrTesselation()))
{
    const State &state = context->getState();
    TransformFeedback *curTransformFeedback = state.getCurrentTransformFeedback();
    if (!curTransformFeedback->checkBufferSpaceForDraw(count, primcount))
    {
        ANGLE_VALIDATION_ERROR(GL_INVALID_OPERATION, err::kTransformFeedbackBufferTooSmall);
        return false;
    }
}

That check reads the stale counter:

C++
// TransformFeedback.cpp — checkBufferSpaceForDraw
bool TransformFeedback::checkBufferSpaceForDraw(GLsizei count, GLsizei primcount) const
{
    auto vertices = mState.mVerticesDrawn +  // <-- STALE: never advanced during validation
        GetVerticesNeededForDraw(mState.mPrimitiveMode, count, primcount);
    return vertices.IsValid() && vertices.ValueOrDie() <= mState.mVertexCapacity;
}

The counter is only advanced after execution, in onVerticesDrawn, which validation never calls:

C++
// TransformFeedback.cpp — onVerticesDrawn
void TransformFeedback::onVerticesDrawn(const Context *context, GLsizei count, GLsizei primcount)
{
    ASSERT(mState.mActive && !mState.mPaused);
    mState.mVerticesDrawn =
        (mState.mVerticesDrawn + GetVerticesNeededForDraw(mState.mPrimitiveMode, count, primcount))
            .ValueOrDie();
    // ...
}

The resulting execution flow, as given in the report:

Text
Validation phase (all pass — stale mVerticesDrawn = 0):
  Sub-draw 0: checkBufferSpaceForDraw(400,1) → 0+400 <= 1024 ✓
  Sub-draw 1: checkBufferSpaceForDraw(400,1) → 0+400 <= 1024 ✓ (STALE!)
  ... (all 10 sub-draws pass)

Execution phase (MULTI_DRAW_BLOCK macro in renderer_utils.cpp):
  Sub-draw 0: writes 400 vertices at offset 0,     mVerticesDrawn = 400
  Sub-draw 1: writes 400 vertices at offset 1600,   mVerticesDrawn = 800
  Sub-draw 2: writes 400 vertices at offset 3200,   mVerticesDrawn = 1200 ← OVERFLOW START
  Sub-draw 3: writes 400 vertices at offset 4800,   mVerticesDrawn = 1600
  ...
  Sub-draw 9: writes 400 vertices at offset 14400,  mVerticesDrawn = 4000
  → 2976 vertices × 4 bytes = 11,904 bytes OOB write

In other words, the validation phase and the execution phase disagree about how much of the buffer has already been consumed. The check that is supposed to stop an over-large draw is performed against a counter that only the execution path maintains, so the guard is effectively bypassed for every sub-draw after the first.

Impact

An attacker can corrupt GPU memory. The proof of concept shows an attacker page corrupting the rendering output of a victim page in a different tab, because both tabs share the GPU process. The corruption is visible as the victim's triangles disappearing or moving, and as overwritten sentinel data in the victim's spray buffers.

The cross-tab result depends on heap layout: the attacker has to force GC eviction and spray buffers so that the victim's allocations land next to the attacker's XFB buffer, and the report notes that multiple attempts may be required. The report also states that the issue is related to a crash.

Fix

The report does not describe a fix or a patch.

Variants to test

  • Other multi-draw entry points. The report names ValidateMultiDrawElementsANGLE, ValidateMultiDrawArraysInstancedANGLE and ValidateMultiDrawElementsInstancedANGLE as carrying the same pattern. A positive result is a batch of sub-draws that each fit but whose total exceeds the XFB buffer, with the draw accepted and the buffer written past its end.
  • Instanced draws. The report notes that instanceCounts amplifies the overflow. Try small counts with large instance counts to see how quickly the cumulative write passes the buffer boundary.
  • Other backends. The PoC was confirmed on the Metal backend on macOS. Testing the same batch on other backends would show whether the visible corruption depends on the allocator.
  • Heap placement. The cross-tab corruption depends on GC eviction and buffer spray to place the attacker's XFB buffer next to the victim's buffers. A positive result is the victim's rendering integrity loop reporting pixel differences after the attacker's rounds.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 17 min read.

What happened, in plain words

A security researcher found a bug in a piece of software called ANGLE, which is a component that ships inside Google Chrome. ANGLE is the part of Chrome that takes the drawing instructions a web page gives (through a web technology called WebGL) and translates them into instructions the computer's graphics card can actually understand. On a Mac, that means translating them into Apple's own graphics language, called Metal.

One of the features ANGLE supports is called transform feedback. Normally, when a web page asks the graphics card to draw something, the vertices (the corner points of the shapes) flow through a small program called a shader and then get turned into pixels on screen. Transform feedback is a mode where the shader can also write those vertices into a buffer, which is just a fixed-size block of memory set aside for the purpose. Think of it like a form with a fixed number of lines: you can write into it, but only up to the last line. If you try to write more, you spill over onto whatever is next to it on the desk.

The bug is that Chrome's safety check, which is supposed to stop a web page from writing past the end of that buffer, gets confused when a page asks for many small draws in one go. Each small draw fits on its own, so the check approves each one. But the check never adds up how much space the earlier draws in the same batch already used, so the total goes past the end of the buffer and the graphics card writes into memory that belongs to something else. That is what security people call an out of bounds write, and it is a form of memory corruption.

The researcher showed that a malicious web page in one tab can use this to corrupt the graphics memory used by an innocent web page in a different tab, making its shapes disappear or jump to the wrong place. The bug was reported through Google's Chrome Vulnerability Reward Program, was rated high severity, earned a bounty of 2000.00 USD, and was disclosed on 2026-06-02 under the identifier CVE-2026-10907. The researcher is credited as sweetchip.

The pieces you need to know

Before walking through the report, here are the ideas it leans on, explained from scratch.

  • Browser tab. A single window inside Chrome. Each tab is a separate web page, but they all share some of Chrome's internal machinery behind the scenes.
  • GPU (graphics processing unit). The chip in your computer that draws everything you see on screen. It has its own memory, separate from the main memory the CPU uses.
  • GPU process. Chrome runs the code that talks to the GPU in a separate process (a separate running program) from the code that runs web pages. All tabs share this one GPU process. That sharing is what makes a cross-tab attack possible.
  • WebGL. A web standard that lets a web page draw 3D graphics using the GPU. It is an API, which just means a defined set of functions a program can call to ask another piece of software to do something. WebGL is modelled on an older desktop API called OpenGL ES.
  • ANGLE. The translation layer inside Chrome that takes WebGL and OpenGL ES calls and turns them into the native graphics API of the platform. On macOS that native API is Metal. ANGLE exists so Chrome does not have to write separate graphics code for every operating system.
  • Shader. A small program that runs on the GPU. A vertex shader runs once per vertex (corner point) and decides where that point ends up.
  • Vertex. A corner point of a shape. A triangle has three vertices. A draw call that draws 400 vertices is drawing 400 corner points.
  • Buffer. A fixed-size block of memory. In graphics, buffers hold things like vertex data or, in this case, the output of transform feedback.
  • Transform feedback (XFB). A feature where, while a draw runs, the vertex shader writes its output into a buffer instead of (or as well as) feeding the part of the GPU that turns shapes into pixels. Because the buffer has a fixed size, the software has to check in advance whether the vertices will fit.
  • Multi-draw. A way to submit many sub-draws in a single call. Instead of asking the GPU to draw 400 vertices ten times in ten separate calls, you ask once and hand it a list of ten sub-draws. It is faster, but it means the safety check has to look at the whole list.
  • Validation. The step where Chrome checks whether a request is allowed before actually doing it. If the check fails, the request is rejected with an error.
  • Out of bounds write. Writing data past the end of the memory region you were given. The data lands in memory that belongs to something else, which can corrupt it.
  • Memory corruption. Any situation where a program writes to memory it should not touch. It is a serious class of bug because it can sometimes be turned into a crash or worse.
  • CVE. A public identifier for a known security vulnerability. CVE-2026-10907 is the ID assigned to this one.
  • Garbage collection (GC). Automatic cleanup of memory that is no longer in use. In this report, ANGLE keeps a cache of freed buffers, and forcing garbage collection returns them to the underlying graphics driver (Metal), which can then hand them out again.
  • Heap. The pool of memory a program allocates from at runtime. Where your buffers land in the heap depends on what was allocated and freed before.
  • Buffer spray. A technique where an attacker allocates many buffers filled with recognisable data (called sentinel data) to influence where things land in memory and to make it easy to spot when their data has been overwritten.
  • readPixels. A WebGL function that reads pixels back from the GPU so a web page can inspect what was actually drawn.

The setup

The result was confirmed on an Apple M4 Pro running macOS, using the Metal backend (the path where ANGLE translates to Metal). The proof of concept is two HTML files, both described as CSS-stripped minimal versions, meaning the styling was removed to keep them small:

File Description
poc_render_verify_attacker_min.html Cross-tab attack PoC: executes the XFB overflow after GC eviction to corrupt the victim's GPU buffers
poc_render_verify_victim_min.html Cross-tab victim PoC: renders 3 triangles plus a 4096×4KB buffer spray and monitors rendering integrity

No accounts or special roles are involved. The only precondition is that two pages are open in two tabs of the same Chrome instance, because both tabs share Chrome's single GPU process and Metal device.

Finding it

The researcher looked at the code that validates multi-draw calls and found that ValidateMultiDrawArraysANGLE() loops over the sub-draws and calls the per-draw validation for each one, but never advances the mVerticesDrawn counter between iterations. The XFB space check reads that counter, so every sub-draw in the batch is checked against the same base offset, as if nothing had been drawn yet. The execution phase, by contrast, does advance the counter correctly after each sub-draw, so the writes march forward through the buffer while validation believed they all started at the same place.

The researcher describes the gap as deterministic and single-threaded: it is not a race (a timing problem where two things happen at once), just a counter that the validation phase never updates. Each sub-draw individually fits within the buffer, but their cumulative writes exceed its capacity.

The same pattern was found in the other multi-draw validation functions, so the issue is not limited to the arrays variant.

Exploitation

Step 1: open the victim page

Open Chrome and load poc_render_verify_victim_min.html in Tab 1. The page renders three coloured triangles (red, green, blue), sprays 4096 × 4KB GPU buffers filled with tagged sentinel data, and then starts a rendering integrity monitoring loop.

Why this step matters: the victim page is the target. It draws something recognisable (three coloured triangles) and fills a large number of small buffers with a known pattern. The monitoring loop keeps reading the pixels back with readPixels and comparing them to what it expects, so if anything changes, the page can report it.

Step 2: open the attacker page and start the attack

Load poc_render_verify_attacker_min.html in Tab 2 and click "Attack (100 rounds)". The attacker page performs the following:

  1. It forces ANGLE's BufferManager garbage collection to evict cached buffers, by destroying 60 temporary contexts, running 3×600 buffer spray/free cycles, and applying 256MB of allocation pressure.
  2. It allocates a 4KB XFB buffer, chosen to be in the same size class as the victim's buffers.
  3. It executes 100 XFB overflow rounds via multiDrawArraysWEBGL(POINTS, ...) with 10 sub-draws of 400 vertices each.
  4. Each sub-draw passes validation individually (400 < 1024) because mVerticesDrawn is never updated between iterations.
  5. Each round writes 12KB past the 4KB buffer boundary into adjacent GPU memory.

Why each step is taken:

  • Step 1 (GC eviction). ANGLE keeps freed buffers in a cache rather than handing them straight back to Metal. By destroying temporary contexts and churning through spray/free cycles, the attacker pushes ANGLE to release those cached buffers back to Metal. That frees up regions in the GPU heap that can later be reused.
  • Step 2 (allocate the XFB buffer). The attacker needs a transform feedback buffer to overflow. Choosing 4KB puts it in the same size class as the victim's buffers, which makes it more likely that the allocator will place them near each other.
  • Step 3 (the overflow). The attacker submits a multi-draw with ten sub-draws of 400 vertices each. Because the validation counter never advances, each sub-draw is checked as if it were the first, so all ten pass.
  • Step 4 (why validation passes). The check compares 400 against the buffer capacity of 1024 and sees it fits. It does not add up the previous sub-draws, so it approves every one.
  • Step 5 (the write past the end). When the GPU actually executes the ten sub-draws, it advances the counter correctly and writes each sub-draw further along in the buffer. The later sub-draws land past the 4KB boundary, into whatever memory is next to it.

Step 3: observe the victim tab

If there were no bug, the victim's rendering would stay identical and all buffers would remain clean. On the tested configuration (Apple M4 Pro, macOS, Metal backend) the victim tab instead reports "GPU RENDERING CORRUPTION DETECTED": the triangles disappear or move to wrong positions, and the sentinel data in the spray buffers is overwritten.

The researcher notes that the cross-tab attack relies on GPU heap status (GC eviction plus buffer spray) to place the victim's and attacker's buffers adjacently, and that multiple attempts may be required. In other words, the attacker cannot guarantee where the buffers land; they can only nudge the allocator and try again.

The mechanism, as described in the report:

  1. Both tabs share Chrome's single GPU process and Metal device.
  2. ANGLE's per-context BufferManager caches freed buffers; GC eviction returns them to Metal.
  3. The attacker triggers GC eviction (destroy 60 temp contexts, 3×600 spray/free, 256MB pressure).
  4. The victim allocates 4096 × 4KB buffers, and Metal reuses the freed regions, placing them adjacent to the attacker's XFB buffer.
  5. The attacker executes the XFB overflow, writing 12KB past the buffer boundary into the victim's VBO/spray buffers.
  6. The victim's rendering loop detects pixel differences, confirming GPU rendering corruption.

The cross-tab timeline given in the report:

Text
Tab 1 (Victim):  Allocate VBO → Render triangles → Monitor rendering
Tab 2 (Attacker): GC eviction → Allocate XFB buf → multiDrawArrays overflow
                                                      ↓
Tab 1 (Victim):  Re-render → readPixels → PIXEL DIFFS DETECTED
                              → "GPU RENDERING CORRUPTION DETECTED"

Line by line, this timeline says: the victim tab first allocates a vertex buffer object (VBO, a buffer holding vertex data), draws its triangles, and starts watching for changes. Meanwhile the attacker tab forces garbage collection, allocates its transform feedback buffer, and runs the overflowing multi-draw. The arrow points back to the victim, which re-renders, reads the pixels back, sees that they differ from what it expected, and prints the corruption message.

Root cause

The root cause is a stale accumulator in the multi-draw validation loop. ValidateMultiDrawArraysANGLE() reads mVerticesDrawn without advancing it between iterations, so every sub-draw is checked against the same base offset:

C++
// validationES2.cpp — ValidateMultiDrawArraysANGLE
bool ValidateMultiDrawArraysANGLE(const Context *context,
                                   angle::EntryPoint entryPoint,
                                   PrimitiveMode mode,
                                   const GLint *firsts,
                                   const GLsizei *counts,
                                   GLsizei drawcount)
{
    if (drawcount < 0) { ... return false; }
    for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
    {
        if (!ValidateDrawArrays(context, entryPoint, mode,
                                firsts[drawID], counts[drawID]))
            return false;
        // *** BUG: mVerticesDrawn NOT updated between iterations ***
        // Each sub-draw validates against the same stale counter
    }
    return true;
}

Line by line:

  • The function takes a context (the current graphics state), an entry point (which API call is being made), a primitive mode (what kind of shape, such as points or triangles), two arrays called firsts and counts (the starting vertex and the number of vertices for each sub-draw), and drawcount (how many sub-draws there are).
  • The first if rejects a negative drawcount, which would be nonsense.
  • The for loop walks through each sub-draw in turn, using drawID as the index.
  • Inside the loop, ValidateDrawArrays is called for that one sub-draw. If it fails, the whole call is rejected.
  • The comment marks the bug: mVerticesDrawn is not updated between iterations. So the next sub-draw is checked against the same starting point as the previous one.
  • If every sub-draw passes, the function returns true, meaning the whole batch is approved.

The same stale-accumulator pattern exists in all multi-draw validation functions, each looping over sub-draws and calling per-draw validation without advancing mVerticesDrawn:

C++
// validationES2.cpp — ValidateMultiDrawElementsANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawElements(context, entryPoint, mode, counts[drawID], type, indices[drawID]))
        return false;
    // BUG: mVerticesDrawn not updated between iterations
}

This is the indexed variant: instead of a firsts array, it takes an indices array and a type describing the index format. The loop is the same shape, and the same counter is left untouched.

C++
// validationES3.cpp — ValidateMultiDrawArraysInstancedANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawArraysInstancedBase(context, entryPoint, mode, firsts[drawID],
                                         counts[drawID], instanceCounts[drawID], 0))
        return false;
    // BUG: mVerticesDrawn not updated — instanceCounts amplifies overflow
}

This is the instanced variant. An instanced draw repeats the same geometry many times in one call, controlled by instanceCounts. The comment notes that this amplifies the overflow, because each instance multiplies the number of vertices written.

C++
// validationES3.cpp — ValidateMultiDrawElementsInstancedANGLE (same pattern)
for (GLsizei drawID = 0; drawID < drawcount; ++drawID)
{
    if (!ValidateDrawElementsInstancedBase(context, entryPoint, mode, counts[drawID], type,
                                           indices[drawID], instanceCounts[drawID], 0))
        return false;
    // BUG: mVerticesDrawn not updated — instanceCounts amplifies overflow
}

This combines both: indexed draws and instancing. The same missing counter update applies.

The XFB space check itself is called per sub-draw through ValidateDrawArraysCommon:

C++
// validationES.h — inside ValidateDrawArraysCommon
if (ANGLE_UNLIKELY(context->getStateCache().isTransformFeedbackActiveUnpaused()) &&
    ANGLE_UNLIKELY(!context->supportsGeometryOrTesselation()))
{
    const State &state = context->getState();
    TransformFeedback *curTransformFeedback = state.getCurrentTransformFeedback();
    if (!curTransformFeedback->checkBufferSpaceForDraw(count, primcount))
    {
        ANGLE_VALIDATION_ERROR(GL_INVALID_OPERATION, err::kTransformFeedbackBufferTooSmall);
        return false;
    }
}

Line by line:

  • The outer if runs only when transform feedback is active and not paused, and when the platform does not support geometry or tessellation shaders (which would take a different path). ANGLE_UNLIKELY is just a hint to the compiler that this branch is rare.
  • It fetches the current graphics state and the current transform feedback object.
  • It calls checkBufferSpaceForDraw with the vertex count and the instance count (primcount).
  • If that check fails, it raises a validation error (GL_INVALID_OPERATION with the reason kTransformFeedbackBufferTooSmall) and returns false, rejecting the draw.

That check reads the stale counter:

C++
// TransformFeedback.cpp — checkBufferSpaceForDraw
bool TransformFeedback::checkBufferSpaceForDraw(GLsizei count, GLsizei primcount) const
{
    auto vertices = mState.mVerticesDrawn +  // <-- STALE: never advanced during validation
        GetVerticesNeededForDraw(mState.mPrimitiveMode, count, primcount);
    return vertices.IsValid() && vertices.ValueOrDie() <= mState.mVertexCapacity;
}

Line by line:

  • It computes how many vertices would be used in total: the current mVerticesDrawn plus however many this draw needs, as worked out by GetVerticesNeededForDraw.
  • The comment marks the problem: mVerticesDrawn is stale because validation never advances it.
  • It returns true only if the number is valid and no larger than mVertexCapacity, the buffer's capacity.

So the check itself is correct in form. The problem is the value it is given.

The counter is only advanced after execution, in onVerticesDrawn, which validation never calls:

C++
// TransformFeedback.cpp — onVerticesDrawn
void TransformFeedback::onVerticesDrawn(const Context *context, GLsizei count, GLsizei primcount)
{
    ASSERT(mState.mActive && !mState.mPaused);
    mState.mVerticesDrawn =
        (mState.mVerticesDrawn + GetVerticesNeededForDraw(mState.mPrimitiveMode, count, primcount))
            .ValueOrDie();
    // ...
}

Line by line:

  • The ASSERT is a debug-only check that transform feedback is active and not paused.
  • It adds the vertices needed for this draw to mVerticesDrawn, storing the result back. This is the update that validation should also be doing.
  • The trailing comment indicates there is more code after this point that the report does not show.

The resulting execution flow, as given in the report:

Text
Validation phase (all pass — stale mVerticesDrawn = 0):
  Sub-draw 0: checkBufferSpaceForDraw(400,1) → 0+400 <= 1024 ✓
  Sub-draw 1: checkBufferSpaceForDraw(400,1) → 0+400 <= 1024 ✓ (STALE!)
  ... (all 10 sub-draws pass)

Execution phase (MULTI_DRAW_BLOCK macro in renderer_utils.cpp):
  Sub-draw 0: writes 400 vertices at offset 0,     mVerticesDrawn = 400
  Sub-draw 1: writes 400 vertices at offset 1600,   mVerticesDrawn = 800
  Sub-draw 2: writes 400 vertices at offset 3200,   mVerticesDrawn = 1200 ← OVERFLOW START
  Sub-draw 3: writes 400 vertices at offset 4800,   mVerticesDrawn = 1600
  ...
  Sub-draw 9: writes 400 vertices at offset 14400,  mVerticesDrawn = 4000
  → 2976 vertices × 4 bytes = 11,904 bytes OOB write

Line by line:

  • In the validation phase, mVerticesDrawn stays at 0. Every sub-draw is checked as 0 + 400 <= 1024, which is true, so all ten pass.
  • In the execution phase, the counter advances properly. Sub-draw 0 writes at offset 0 and sets the counter to 400. Sub-draw 1 writes at offset 1600 (400 vertices × 4 bytes per vertex) and sets the counter to 800. Sub-draw 2 writes at offset 3200 and sets the counter to 1200, which is past the 1024 capacity, so this is where the overflow begins.
  • By sub-draw 9, the counter is 4000 and the write is at offset 14400.
  • The final line sums up the damage: 2976 vertices × 4 bytes = 11,904 bytes written out of bounds.

In other words, the validation phase and the execution phase disagree about how much of the buffer has already been consumed. The check that is supposed to stop an over-large draw is performed against a counter that only the execution path maintains, so the guard is effectively bypassed for every sub-draw after the first.

Impact

An attacker can corrupt GPU memory. The proof of concept shows an attacker page corrupting the rendering output of a victim page in a different tab, because both tabs share the GPU process. The corruption is visible as the victim's triangles disappearing or moving, and as overwritten sentinel data in the victim's spray buffers.

The cross-tab result depends on heap layout: the attacker has to force GC eviction and spray buffers so that the victim's allocations land next to the attacker's XFB buffer, and the report notes that multiple attempts may be required. The report also states that the issue is related to a crash.

Fix

The report does not describe a fix or a patch.

Variants to test

  • Other multi-draw entry points. The report names ValidateMultiDrawElementsANGLE, ValidateMultiDrawArraysInstancedANGLE and ValidateMultiDrawElementsInstancedANGLE as carrying the same pattern. A positive result is a batch of sub-draws that each fit but whose total exceeds the XFB buffer, with the draw accepted and the buffer written past its end.
  • Instanced draws. The report notes that instanceCounts amplifies the overflow. Try small counts with large instance counts to see how quickly the cumulative write passes the buffer boundary.
  • Other backends. The PoC was confirmed on the Metal backend on macOS. Testing the same batch on other backends would show whether the visible corruption depends on the allocator.
  • Heap placement. The cross-tab corruption depends on GC eviction and buffer spray to place the attacker's XFB buffer next to the victim's buffers. A positive result is the victim's rendering integrity loop reporting pixel differences after the attacker's rounds.

Glossary

  • ANGLE: The translation layer inside Chrome that turns WebGL and OpenGL ES calls into the native graphics API of the platform (Metal on macOS).
  • API: A defined set of functions a program can call to ask another piece of software to do something.
  • Backend: The specific native graphics API that ANGLE translates to, such as Metal on macOS.
  • Buffer: A fixed-size block of memory used to hold data, such as vertex data or transform feedback output.
  • Buffer spray: Allocating many buffers filled with recognisable data to influence where things land in memory and to make overwrites easy to spot.
  • Deterministic: Happening the same way every time, not depending on timing or chance.
  • GPU: Graphics processing unit, the chip that draws everything on screen and has its own memory.
  • GPU process: The separate Chrome process that talks to the GPU. All tabs share it.
  • Instance / instanced draw: A draw that repeats the same geometry many times in one call, controlled by an instance count.
  • Metal: Apple's native graphics API.
  • Primitive mode: What kind of shape a draw produces, such as points or triangles.
  • readPixels: A WebGL function that reads pixels back from the GPU so a web page can inspect what was drawn.
  • Sentinel data: A known, recognisable pattern written into memory so that overwrites can be detected.
  • Stale accumulator: A counter that is read but not updated, so it keeps returning an old value.
  • Sub-draw: One of the individual draws inside a multi-draw call.
  • Transform feedback (XFB): A feature where the vertex shader writes its output into a buffer instead of (or as well as) feeding the rasteriser.
  • VBO (vertex buffer object): A buffer holding vertex data.
  • Vertex: A corner point of a shape.

More by sweetchip

View all

27 more disclosed reports, best first.

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.