Insufficient validation of untrusted input in ANGLE (CVE-2026-14411)
ANGLE's validation only blocks switching the active program while Transform Feedback is active and unpaused, so a program change during a paused state is accepted. A state-sync ordering error then leaves the native program binding out of step with the frontend, so draw-time checks run against one program while the driver executes another, potentially causing out-of-bounds GPU memory access.
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 potential vulnerability in ANGLE's OpenGL backend allows an attacker to bypass draw-time validation by desynchronizing the native program binding from the frontend state. This is enabled by a validation bug that allows changing the active program while Transform Feedback is paused, combined with a state management error during lazy synchronization.
Affected files:
third_party/angle/src/libANGLE/renderer/gl/TransformFeedbackGL.cppthird_party/angle/src/libANGLE/renderer/gl/StateManagerGL.cpp
Estimated timestamp from git blame: 2023-09-07
Potential Root Cause
Two issues in ANGLE combine to create a potential security vulnerability in the OpenGL backend:
-
Validation Spec Violation: According to the OpenGL ES 3.0 specification (Section 2.15.1), the program object active when
BeginTransformFeedbackis called must remain active untilEndTransformFeedbackis called. However, ANGLE'sValidateUseProgramonly checks if Transform Feedback is active and unpaused (libANGLE/validationES2.cpp:5680). This incorrectly allows an attacker to switch the active program while Transform Feedback is paused. -
State Manager Desynchronization: In the OpenGL backend,
StateManagerGL::syncStateprocesses dirty bits in a specific order. WhenDIRTY_BIT_TRANSFORM_FEEDBACK_BINDING(ordinal 143) is processed, it callssyncActiveState, which may clobber the native program binding by callingmStateManager->useProgram(mActiveProgram)(libANGLE/renderer/gl/TransformFeedbackGL.cpp:139). Unlike the deactivation branch, this branch does not capture or restore the previous program binding. Furthermore, because thesyncStateloop iterates over a snapshot of dirty bits, the subsequent update toDIRTY_BIT_PROGRAM_BINDING(ordinal 137) is missed and then incorrectly cleared at the end of the synchronization loop.
Potential Impact
This desynchronization allows an attacker to pass WebGL draw-time validation using a "safe" program (e.g., one with no resource requirements) while the native driver executes a different, "malicious" program. This could lead to out-of-bounds reads or writes in the GPU process, potentially resulting in cross-origin information leaks or remote code execution. In environments where the GPU process is unsandboxed (such as Android), this represents a critical security risk.
Suggested Potential Reproduction Steps
- Create a WebGL2 context using the ANGLE GL/GLES backend.
- Prepare
progA(configured for Transform Feedback with a shader that reads out-of-bounds from a UBO) andprogB(a dummy shader). - Bind a small buffer to the UBO index required by
progA. - Execute the following sequence:
JavaScript gl.useProgram(progA); gl.beginTransformFeedback(gl.POINTS); gl.pauseTransformFeedback(); gl.useProgram(progB); // Incorrectly allowed by ANGLE while XFB is paused gl.drawArrays(gl.POINTS, 0, 1); - Observe that validation is performed against
progB, butprogAis natively executed, potentially leading to a GPU-side out-of-bounds access.
Suggested Fix
- Update
ValidateUsePrograminthird_party/angle/src/libANGLE/validationES2.cppto checkisTransformFeedbackActive()instead ofisTransformFeedbackActiveUnpaused(). - Update
TransformFeedbackGL::syncActiveStateinthird_party/angle/src/libANGLE/renderer/gl/TransformFeedbackGL.cppto capture and restore the previous program ID when activating Transform Feedback, ensuring native state consistency.
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.
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 combined mistakes: the program-change check ignores the paused Transform Feedback state, and the GL state manager's dirty-bit ordering lets Transform Feedback synchronisation overwrite the native program binding without restoring it, after which the pending program-binding update is cleared without being applied.
Impact
This could lead to out-of-bounds reads or writes in the GPU process, potentially resulting in cross-origin information leaks or remote code execution, and is described as critical where the GPU process is unsandboxed, such as on Android.
What the attacker needed
Victim loads a page with attacker WebGL content; ANGLE GL/GLES backend in use; GPU process unsandboxed for worst case
The fix
The program-change validation should check whether Transform Feedback is active at all rather than only when unpaused, and Transform Feedback activation should capture and restore the previous program binding so native state stays consistent.
How it was found
- Create a WebGL2 context on the ANGLE GL/GLES backend.
- Prepare a program set up for Transform Feedback whose shader reads out of bounds from a uniform buffer, plus a dummy program.
- Bind a small buffer to the uniform buffer index the first program needs.
- Use the first program, begin Transform Feedback, then pause it.
- Switch to the dummy program, which ANGLE wrongly permits while Transform Feedback is paused, and issue a draw.
- Observe that validation runs against the dummy program while the first program executes natively, potentially causing a GPU-side out-of-bounds access.
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.
WebGL is the browser feature that lets web pages draw 3D graphics, and ANGLE is the layer that translates those requests into real graphics driver calls. The browser is supposed to check each drawing request against the program the page says it is using, but here the check and the actual driver call could refer to two different programs. That mismatch could let a page make the graphics card read or write memory it should not touch.
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.