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

Insufficient validation of untrusted input in ANGLE (CVE-2026-13834)

ANGLE's ResumeTransformFeedback validation did not check whether transform feedback output buffers were mapped by the host, and a state tracking flaw decremented buffer binding counts when an active transform feedback object was unbound. Together these let an attacker map a buffer that the GPU then writes into, which the specification calls undefined behaviour and which could cause driver-level memory corruption.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A validation gap in ANGLE's ResumeTransformFeedback allows the GPU to write to host-mapped buffers. This issue is compounded by a state tracking flaw that incorrectly decrements buffer binding counts when an active transform feedback object is unbound, bypassing mapping protections.

Affected files:

  • third_party/angle/src/libANGLE/validationES3.cpp
  • third_party/angle/src/libANGLE/State.cpp
  • third_party/angle/src/libANGLE/TransformFeedback.cpp
  • third_party/angle/src/libANGLE/Buffer.cpp
  • third_party/angle/src/libANGLE/validationES2.cpp
  • third_party/angle/src/libANGLE/validationES.cpp

Estimated timestamp from git blame: 2018-01-04

Summary

A potential security vulnerability exists in ANGLE's implementation of Transform Feedback (XFB) validation and state tracking. A validation gap in ResumeTransformFeedback allows transform feedback to resume even if output buffers are mapped by the host. Furthermore, a logic error in state tracking allows an attacker to bypass the mapping protections intended to prevent this state.

Root Cause Analysis

The vulnerability is driven by two primary flaws in third_party/angle/src/libANGLE/:

  1. Validation Gap in ValidateResumeTransformFeedback: In validationES3.cpp, the ValidateBeginTransformFeedback function correctly iterates through indexed buffers to ensure they are not mapped (via buffer->isMapped()) or double-bound. However, ValidateResumeTransformFeedback performs no such checks. If a buffer is mapped while transform feedback is paused, resuming the operation proceeds without error, violating GLES 3.0 requirements.

  2. State Tracking Flaw in onBindingChanged: When a transform feedback object is unbound from the context (e.g., by binding a different TF object), State::setTransformFeedbackBinding calls TransformFeedback::onBindingChanged(context, false). This function decrements the mTransformFeedbackIndexedBindingCount for all associated buffers in Buffer.cpp.

    Crucially, this decrement occurs even if the transform feedback object is still "Active" (e.g., paused). Because ValidateMapBufferBase (the validator for glMapBufferRange) relies on this counter to identify buffers currently in use by the transform feedback subsystem, an attacker can unbind the active TF object to drop the count to zero and successfully map the buffer.

Potential Impact

By combining these flaws, an attacker can reach a state where the GPU writes data into a buffer that is simultaneously mapped and accessible by the host. Per the OpenGL ES 3.0 specification (§6.3.2), writing to a mapped buffer via transform feedback is undefined behavior. This can lead to driver-level memory corruption or instability. On platforms like Android, where the GPU process is unsandboxed, this represents a significant path for privilege escalation from a compromised renderer.

Suggested Reproduction Steps (Potential)

  1. Create two Transform Feedback objects (TF1, TF2) and a buffer (B).
  2. Bind B to TF1 and call glBeginTransformFeedback and then glPauseTransformFeedback.
  3. Bind TF2. This triggers the state tracking flaw, incorrectly decrementing B's transform feedback binding count.
  4. Call glMapBufferRange on buffer B. This succeeds because B's binding count is now 0 and TF2 is not active.
  5. Bind TF1 again.
  6. Call glResumeTransformFeedback. This succeeds due to the validation gap in ValidateResumeTransformFeedback failing to check the mapping state of B.
  7. Issue a draw call. The GPU writes to the host-mapped buffer B.

Recommended Fix

  1. Enhance Validation: Update ValidateResumeTransformFeedback in validationES3.cpp to include a loop that verifies none of the transform feedback object's indexed buffers are mapped.
  2. Correct State Tracking: Modify TransformFeedback::onBindingChanged to ensure that a buffer's transform feedback binding count is only decremented if the parent transform feedback object is no longer isActive().

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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 two mistakes: the resume validation skipped the mapped-buffer check that begin validation performs, and unbinding an active transform feedback object wrongly decremented the buffers' binding counts, so the map validator no longer saw them as in use.

Impact

The GPU could write into a buffer the host has mapped, which the specification treats as undefined behaviour and which could lead to driver-level memory corruption or instability, and on Android where the GPU process is unsandboxed could be a path to privilege escalation from a compromised renderer.

What the attacker needed

Ability to run GLES calls through ANGLE; compromised renderer for escalation

The fix

The report recommends adding a mapped-buffer check to the resume validation and only decrementing binding counts when the transform feedback object is no longer active; it does not say a fix was applied.

How it was found

  1. Create two transform feedback objects and a buffer, and bind the buffer to the first object.
  2. Begin transform feedback, then pause it.
  3. Bind the second object, which wrongly decrements the buffer's binding count.
  4. Map the buffer, which now succeeds because the count is zero.
  5. Bind the first object again and resume transform feedback, which succeeds despite the mapping.
  6. Issue a draw call so the GPU writes into the host-mapped buffer.

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.

A program talks to the graphics card through a driver layer called ANGLE. Normally the driver refuses to let the program read a memory buffer while the graphics card is still writing into it, because both sides touching it at once is unsafe. Here two separate checks were missing or wrong, so the program could get that unsafe overlap anyway.

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.