Insufficient validation of untrusted input in GPU (CVE-2026-11045)
A feature flag meant only for Pepper3D plugin contexts could be enabled by any WebGL or GLES2 context, letting a buffer be bound to both the element array and transform feedback targets. This desynchronised the CPU shadow copy from GPU memory, so a crafted draw call could read out-of-bounds GPU memory and leak cross-origin data.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 security team.
Overview: A potential vulnerability in the GLES2 validating command decoder allows a compromised renderer to bypass index buffer validation. By exploiting an unguarded legacy feature flag, an attacker can desynchronize a buffer's CPU shadow copy from its GPU memory via Transform Feedback. This can result in an out-of-bounds read of GPU memory during draw calls, potentially leaking sensitive cross-origin data.
Affected files:
gpu/command_buffer/service/buffer_manager.ccgpu/command_buffer/service/gles2_cmd_decoder.ccgpu/command_buffer/service/transform_feedback_manager.cc
Estimated timestamp from git blame: 2015-05-22
Background
In the GLES2 validating decoder, index buffer (GL_ELEMENT_ARRAY_BUFFER) validation relies on a CPU-side shadow copy (Buffer::shadow_). When glDrawElements is called, the decoder scans this shadow buffer to ensure all indices are within the bounds of the active vertex attributes. To prevent this shadow buffer from desynchronizing with the actual GPU memory, BufferManager::SetTarget strictly prohibits an ELEMENT_ARRAY_BUFFER from being bound to other targets that could modify it on the GPU, such as GL_TRANSFORM_FEEDBACK_BUFFER.
The Vulnerability
There is a flaw in GLES2DecoderImpl::HandleEnableFeatureCHROMIUM (gpu/command_buffer/service/gles2_cmd_decoder.cc). It unconditionally accepts the feature string pepper3d_allow_buffers_on_multiple_targets and sets allow_buffers_on_multiple_targets_ = true on the shared BufferManager. It performs no validation to ensure the requesting context is actually a Pepper3D plugin context.
Once this flag is enabled, BufferManager::SetTarget (gpu/command_buffer/service/buffer_manager.cc) skips the crucial target-exclusivity checks. This allows any standard WebGL or GLES2 context to bind an ELEMENT_ARRAY_BUFFER to a TRANSFORM_FEEDBACK_BUFFER. Because Transform Feedback operations modify buffer data exclusively on the GPU and do not update the CPU shadow_ copy, the two become desynchronized.
Potential Attacker Steps
(Note: These are suggested theoretical steps to trigger the vulnerability; our tooling agent does not have the ability to run a live Proof of Concept).
- Enable Feature: A compromised renderer sends the
EnableFeatureCHROMIUMcommand withpepper3d_allow_buffers_on_multiple_targets. - Setup Shadow Buffer: The attacker generates a buffer, binds it to
GL_ELEMENT_ARRAY_BUFFER, and populates it with small, "safe" indices viaglBufferData. The CPU validates these and stores them in theshadow_array. - Bypass Target Restrictions: The attacker binds this exact same buffer to
GL_TRANSFORM_FEEDBACK_BUFFER. - Desynchronize via Transform Feedback: The attacker executes a Transform Feedback draw using a crafted vertex shader that outputs massive, out-of-bounds index values. The GPU writes these directly to the buffer's device memory. The CPU-side
shadow_copy remains completely unmodified and continues to hold the safe indices. - Trigger Validation Bypass: The attacker unbinds Transform Feedback, ensures the buffer is bound as
GL_ELEMENT_ARRAY_BUFFER, and callsglDrawElements. - OOB Read Execution: The validating decoder's
CheckMultiDrawElementsVerticesscans the stale, safe CPUshadow_buffer and approves the draw call. The underlying graphics driver then natively executes the draw using the GPU-side buffer containing the massive, out-of-bounds indices. Becauserobust_buffer_accessdefaults tofalsefor standard contexts using the validating decoder, the driver fetches vertex attributes out-of-bounds.
By carefully configuring the shader pipeline to consume these out-of-bounds vertex attributes and render them to a framebuffer, the attacker can exfiltrate cross-origin GPU process memory via glReadPixels.
Suggested Fix
Restrict the pepper3d_allow_buffers_on_multiple_targets feature so it can only be enabled by legitimate Pepper3D contexts. For example, in GLES2DecoderImpl::HandleEnableFeatureCHROMIUM, verify the context type before modifying the BufferManager state:
if (feature_str.compare("pepper3d_allow_buffers_on_multiple_targets") == 0) {
if (context_type_ == CONTEXT_TYPE_OPENGLES2_FOR_UI || /* checking logic */) {
buffer_manager()->set_allow_buffers_on_multiple_targets(true);
}
}
Alternatively, if this feature is no longer needed by modern Chromium, entirely deprecate and remove the pepper3d_allow_buffers_on_multiple_targets bypass logic from BufferManager.
Evaluated with Chrome root at commit: e9e0fcbb690b1a8c1a26c81c2a9ea23d6e178368
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.
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
The feature-enabling command did not check that the calling context was a Pepper3D plugin context before turning off buffer target exclusivity checks.
Impact
A compromised renderer could read out-of-bounds GPU memory and leak cross-origin data, though the report notes robust buffer access is off by default and the steps are theoretical.
What the attacker needed
Compromised renderer; WebGL or GLES2 context
The fix
The feature should be restricted so only legitimate Pepper3D contexts can enable it, or the bypass logic should be removed entirely.
How it was found
- Send the feature-enable command with the Pepper3D buffer flag.
- Create a buffer, bind it as the element array buffer, and fill it with safe indices.
- Bind the same buffer as a transform feedback buffer.
- Run a transform feedback draw whose shader writes large out-of-bounds indices into the buffer.
- Unbind transform feedback, keep the buffer as the element array buffer, and call the indexed draw.
- The stale CPU copy passes validation and the driver reads out-of-bounds 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.
WebGL draws triangles using a list of indices kept in a buffer. The browser checks those indices on the CPU before drawing, using a copy of the buffer, to stop the GPU reading memory it should not. Here a special switch meant for plugins could be turned on by any web page, letting the GPU change the real buffer while the CPU copy stayed the same, so the check passed but the GPU read far outside the buffer.
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.