Integer overflow in GPU (CVE-2026-11085)
A signed integer overflow in the GPU command decoder's buffer binding logic on 32-bit platforms bypasses bounds checks, allowing a malicious WebGL app to bind an inflated buffer size. This could trick the GPU driver into permitting out-of-bounds reads or writes during Transform Feedback or Uniform Block operations.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 58 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 signed integer overflow in IndexedBufferBindingHost::GetEffectiveBufferSize and DoAdjustedBindBufferRange bypasses buffer bounds checks on 32-bit platforms. This allows a malicious WebGL app to bind an inflated buffer size, potentially tricking the underlying GPU driver into allowing out-of-bounds reads/writes during Transform Feedback or Uniform Block operations.
Affected files:
gpu/command_buffer/service/indexed_buffer_binding_host.ccgpu/command_buffer/service/buffer_manager.ccgpu/command_buffer/service/gles2_cmd_decoder.cc
Estimated timestamp from git blame: 2019-02-12
Description
A potential 32-bit signed integer overflow vulnerability exists in the validating command decoder's buffer binding logic on 32-bit platforms (such as 32-bit Android). The OpenGL types GLintptr and GLsizeiptr are defined as 32-bit signed integers (khronos_ssize_t / long int). Because Chromium compiles with -fno-strict-overflow, signed integer addition wraps predictably.
Two critical bounds checks in gpu/command_buffer/service/indexed_buffer_binding_host.cc use direct addition without overflow protection:
- In
IndexedBufferBindingHost::DoAdjustedBindBufferRange(which computes clamped parameters to safely send to the underlying OpenGL driver):
if (offset + size > full_buffer_size) {
adjusted_size = full_buffer_size - offset;
// ...
- In
IndexedBufferBindingHost::GetEffectiveBufferSize(which determines the size available forBufferManagerto validate draw calls):
if (binding.offset + binding.size > full_buffer_size)
return full_buffer_size - binding.offset;
return binding.size;
If an attacker provides an offset and size that overflow a signed 32-bit integer when added (e.g., offset = 4 and size = 0x7FFFFFFC), the sum becomes negative (e.g., -2147483648). This negative sum is less than full_buffer_size, causing the bounds check to be entirely bypassed.
Consequently, the command decoder passes the massive size directly to the graphics driver (glBindBufferRange) and subsequently returns that massive size to BufferManager::RequestBuffersAccess. This bypasses the protections designed to prevent out-of-bounds GPU access.
Potential Attack Steps
Note: These are potential steps; our automated tooling has not yet executed a live proof-of-concept.
- A malicious WebGL2 script running in the renderer creates a small
WebGLBuffer(e.g., 100 bytes). - The script calls
gl.bindBufferRange(gl.UNIFORM_BUFFER, 0, buffer, 4, 0x7FFFFFFC). - Blink's
WebGL2RenderingContextBase::bindBufferRangeverifies that the size and offset fit within a non-negative 32-bit range, but does not check them against the actual buffer size, dispatching the IPC command. - The GPU process executes
IndexedBufferBindingHost::DoBindBufferRange. Because4 + 0x7FFFFFFCoverflows to-2147483648, the checkoffset + size > full_buffer_sizefails. The underlying OpenGL driver is commanded to bind a ~2 GiB range. - The script issues a draw call utilizing the bound UBO or Transform Feedback, requiring a size larger than the actual 100-byte buffer (e.g., 1000 bytes).
- During draw validation,
BufferManager::RequestBuffersAccesscallsGetEffectiveBufferSize. The overflow occurs again, causing the function to incorrectly report that the buffer has0x7FFFFFFCbytes available. - The draw call successfully validates and is sent to the GPU driver. Because the driver was misconfigured in step 4, the GPU hardware performs an out-of-bounds read (for UBOs) or out-of-bounds write (for Transform Feedback) into adjacent GPU memory.
- An attacker can use Transform Feedback OOB writes to corrupt GPU memory, leading to a potential sandbox escape from the renderer to the GPU process.
Recommendation
Replace the unsafe addition in IndexedBufferBindingHost with safe integer arithmetic using base::CheckAdd. Other components, such as Buffer::CheckRange in gpu/command_buffer/service/buffer_manager.cc, already successfully use this pattern:
// Example fix
GLsizeiptr max;
if (!base::CheckAdd(offset, size).AssignIfValid(&max) || max > full_buffer_size) {
// clamp or handle error
}
Evaluated with Chrome root at commit: f200f57a19490707ff8bc7aa5de3cbc443a3afad
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
Likely the bounds checks use direct signed integer addition without overflow protection, so a crafted offset and size wrap to a negative sum that passes the check.
Impact
An attacker could use out-of-bounds GPU writes to corrupt GPU memory, potentially leading to a sandbox escape from the renderer to the GPU process, though the text notes these are potential steps not yet executed as a live proof-of-concept.
What the attacker needed
32-bit platform (e.g., 32-bit Android); malicious WebGL2 script; renderer process
The fix
The unsafe addition should be replaced with safe integer arithmetic using base::CheckAdd, as already done in Buffer::CheckRange.
How it was found
- A malicious WebGL2 script creates a small WebGLBuffer.
- The script calls gl.bindBufferRange with an offset and size that overflow a signed 32-bit integer.
- Blink dispatches the IPC command without checking the values against the actual buffer size.
- The GPU process executes the bind, the overflow bypasses the bounds check, and the driver is told to bind a huge range.
- The script issues a draw call requiring more data than the real buffer holds.
- Draw validation calls GetEffectiveBufferSize, the overflow occurs again, and the draw is sent to the GPU driver, causing out-of-bounds GPU memory 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.
When a program adds two numbers, it can sometimes wrap around to a negative value if the result is too big for the number type. Here, a check meant to stop a program from using more memory than a buffer actually has was fooled by this wrap-around. That could let a malicious web page read or write memory it should not be able to reach on the graphics chip.
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.