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

Out of bounds read in ANGLE (CVE-2026-11005)

ANGLE's D3D11 backend used the texture's internal format (4 bytes per pixel) to compute the source row pitch for texture uploads, while validation sized the input buffer using the upload format (3 bytes per pixel). A compromised renderer could trigger a heap-buffer-overflow read in the GPU process by creating a GL_RGBX8_ANGLE texture and uploading GL_RGB data via a PBO.

86ac1f1587b71893ed2ad792cd7dde32 Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Summary

ANGLE's D3D11 backend computes the source row pitch for texture uploads using the texture's internal format rather than the upload format. When a compromised renderer creates a texture with GL_RGBX8_ANGLE (4 bytes per pixel) and uploads data as GL_RGB (3 bytes per pixel), the validation layer sizes the input buffer using the 3-byte format while the upload path strides through the data using the 4-byte format. The resulting heap-buffer-overflow occurs in CPU-side pixel conversion within the GPU process. GL_RGBX8_ANGLE passes TexStorage validation unconditionally because its textureSupport function is registered as AlwaysSupported without an extension gate. Platform: Windows (D3D11 ANGLE backend).

Bisect

Introducing Commit: 4f42a4d3f72518e310cad6ef5cc991078577a747

This commit registered GL_RGBX8_ANGLE with AlwaysSupported for textureSupport in the format table. The original GL_RGBX8_ANGLEX format was added in c0aa61082d (2021-09-28) with more restrictive support. The 4f42a4d commit broadened support but did not add an extension gate in ValidateES2TexStorageParametersBase, creating the validation gap that allows a compromised renderer to instantiate the format.

Root Cause

The vulnerability has two components that combine to produce a heap-buffer-overflow.

The first component is a validation gap in TexStorage2DEXT. ValidateES2TexStorageParametersBase checks whether the requested internal format is supported by calling the format's textureSupport function:

C++
// validationES2.cpp — ValidateES2TexStorageParametersBase
const InternalFormat &formatInfo = GetSizedInternalFormatInfo(internalformat);
if (!formatInfo.textureSupport(context->getClientVersion(), context->getExtensions()))
{
    return false;
}

The format table registers GL_RGBX8_ANGLE with AlwaysSupported:

C++
// formatutils.cpp
AddRGBAXFormat(&map, GL_RGBX8_ANGLE, true, ..., AlwaysSupported, AlwaysSupported, ...);

The TexImage path has a separate extension check for rgbxInternalFormatANGLE, but the TexStorage path does not. A compromised renderer can therefore create a texture with GL_RGBX8_ANGLE as its internal format through the TexStorage2DEXT command, which the passthrough decoder forwards to ANGLE without additional validation.

The second component is a row pitch mismatch between validation and the D3D11 upload implementation. When TexSubImage2D is called on the RGBX8 texture with format=GL_RGB and type=GL_UNSIGNED_BYTE, the validation layer computes the input data size using the upload format (3 bytes per pixel):

C++
// validationES2.cpp — ValidateES2TexImageParametersBase
GLenum sizeCheckFormat = isSubImage ? format : internalformat;
return ValidImageDataSize(context, ..., sizeCheckFormat, type, pixels, imageSize);

The D3D11 upload path, however, recomputes srcRowPitch using the texture's actual internal format:

C++
// TextureStorage11.cpp — TextureStorage11::setData
const gl::InternalFormat &internalFormatInfo =
    gl::GetInternalFormatInfo(image->getInternalFormat(), type);
internalFormatInfo.computeRowPitch(type, width, unpack.alignment, unpack.rowLength, &srcRowPitch);

For GL_RGBX8_ANGLE, formatutils.cpp special-cases the component count to 4:

C++
// formatutils.cpp — InternalFormat::computePixelBytes
if (sizedInternalFormat == GL_RGBX8_ANGLE)
{
    components = 4;
}

This produces srcRowPitch = width * 4 instead of the expected width * 3. The load function LoadToNativeByte3To4Impl then reads the source data with 3-byte pixel access but advances rows using the inflated 4-byte row pitch. For a 256×256 texture, the validation allows 196608 bytes (256 × 3 × 256), while the D3D11 backend reads up to 261888 bytes (1024 × 255 + 768), overflowing the heap allocation by 65280 bytes.

The PBO upload path is particularly suited for triggering this because ANGLE's D3D11 backend retrieves PBO data through Buffer11::getData, which returns a pointer to SystemMemoryStorage backed by angle::MemoryBuffer, a malloc-allocated buffer. AddressSanitizer tracks this allocation and detects the overflow in the GPU process.

Reproduce

This issue was tested on Chromium commit 8a39e4056b7ab6470456e5281ebe8cf4a236ec08 running on Windows 11 with an NVIDIA GeForce RTX 4060 Ti. The bug is in the ANGLE D3D11 backend and requires only the default Windows GPU configuration.

Apply the patch, which modifies WebGL2RenderingContextBase::texSubImage3D in the renderer process to inject GL_RGBX8_ANGLE texture commands when it detects a sentinel PBO offset value. This simulates a compromised renderer sending crafted GL commands through the passthrough command buffer decoder. No GPU process code is modified.

Configure an ASAN build with out/asan/args.gn as follows, then build:

is_asan = true
is_debug = false
dcheck_always_on = false
target_cpu = "x64"
git apply patch.diff
autoninja -C out/asan chrome

Launch Chrome and open the poc page(poc.html uses an absolute path).

$ out\asan\chrome.exe --enable-logging=stderr --user-data-dir=/tmp/poc /path/to/poc.html 2>/tmp/asan.txt
$ cat /tmp/asan.txt

The PoC page creates a WebGL2 context and calls texSubImage3D with PBO offset 0x120012, which the patched renderer intercepts. The renderer unbinds the PBO, creates a 256×256 texture with internal format GL_RGBX8_ANGLE (0x96BA) via TexStorage2DEXT, then creates a 196608-byte PBO matching the RGB 3-bytes-per-pixel validation expectation. It calls TexSubImage2D with format=GL_RGB and type=GL_UNSIGNED_BYTE via the PBO. ANGLE's validation computes endByte as 196608 using 3 bytes per pixel and passes the PBO size check. The D3D11 backend recalculates srcRowPitch using the texture's internal format GL_RGBX8_ANGLE, which has 4 components, producing a row pitch of 1024 instead of the correct 768. The load function LoadToNativeByte3To4Impl reads with 1024-byte row stride across 256 rows, accessing a total of 261888 bytes from the 196608-byte PBO heap allocation. AddressSanitizer detects the 65280-byte heap-buffer-overflow in the GPU process.

ASAN output:

=================================================================
==25884==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x1211da001800 at pc 0x7ffabf0f6ae5 bp 0x00650bbfd6b0 sp 0x00650bbfd6f8
READ of size 4 at 0x1211da001800 thread T0
==25884==*** WARNING: Failed to initialize DbgHelp!              ***
==25884==*** Most likely this means that the app is already      ***
==25884==*** using DbgHelp, possibly with incompatible flags.    ***
==25884==*** Due to technical reasons, symbolization might crash ***
==25884==*** or produce wrong results.                           ***
[5908:21516:0323/045638.730:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
    #0 0x7ffabf0f6ae4 in angle::LoadToNativeByte3To4Impl D:\src\chromium\src\third_party\angle\src\image_util\loadimage.inc:198
    #1 0x7ffabf0f5e2f in angle::LoadToNative3To4<unsigned char,255> D:\src\chromium\src\third_party\angle\src\image_util\loadimage.inc:243
    #2 0x7ffabf25e691 in rx::TextureStorage11::setData D:\src\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\d3d11\TextureStorage11.cpp:921
    #3 0x7ffabf315ab0 in rx::TextureD3D::subImage D:\src\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\TextureD3D.cpp:375
    #4 0x7ffabf31dd77 in rx::TextureD3D_2D::setSubImage D:\src\chromium\src\third_party\angle\src\libANGLE\renderer\d3d\TextureD3D.cpp:1148
......

References

Credit

Please use 86ac1f1587b71893ed2ad792cd7dde32 as the credit for this vulnerability. Thank you.

The original report as published on the Chromium issue tracker, by 86ac1f1587b71893ed2ad792cd7dde32. 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 a mismatch between the format used for validation (upload format, 3 bytes per pixel) and the format used for row pitch calculation in the D3D11 upload path (internal format, 4 bytes per pixel), combined with a missing extension gate for GL_RGBX8_ANGLE in TexStorage validation.

Impact

A compromised renderer could cause an out-of-bounds read in the GPU process, potentially leading to information disclosure or a crash.

What the attacker needed

Compromised renderer; Windows with D3D11 ANGLE backend

How it was found

  1. Apply a patch to the renderer that injects GL_RGBX8_ANGLE texture commands when a sentinel PBO offset is detected.
  2. Build Chrome with AddressSanitizer enabled.
  3. Launch Chrome with the PoC page that creates a WebGL2 context and calls texSubImage3D with the sentinel offset.
  4. The patched renderer creates a 256×256 texture with internal format GL_RGBX8_ANGLE via TexStorage2DEXT.
  5. It creates a 196608-byte PBO matching the RGB 3-bytes-per-pixel validation expectation and calls TexSubImage2D with format=GL_RGB and type=GL_UNSIGNED_BYTE via the PBO.
  6. AddressSanitizer detects a heap-buffer-overflow read in the GPU process.

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 texture is an image stored on the graphics card. When uploading image data, the program must know how many bytes each pixel takes. Here, one part of the code checked the buffer size using 3 bytes per pixel, but another part read it using 4 bytes per pixel, so it read past the end of the buffer. This could crash the GPU process or leak memory contents.

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 by 86ac1f1587b71893ed2ad792cd7dde32

View all

12 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.