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

Heap buffer overflow in ANGLE (CVE-2026-4448)

A 32-bit integer overflow in ANGLE's staging buffer size calculation causes a zero-byte buffer to be allocated, after which the GPU driver copies full texture data into it and overflows the heap. A web page using WebGL 2 could crash the GPU process and write attacker-controlled texture data past the buffer.

M. Fauzan Wijaya Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 24 days

Report description

Heap buffer overflow in ANGLE copyImageDataToBuffer


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium


The problem

Please describe the technical details of the vulnerability

Description

Commit a08731cf (Bug: chromium:485622239) fixed a 32-bit integer overflow in the destination buffer size calculation in TextureVk::reinitImageAsRenderable() at TextureVk.cpp:3170 by splitting the multiplication into two stages with static_assert guards.

That same function also calls ImageHelper::copyImageDataToBuffer() at TextureVk.cpp:3155, which does its own staging buffer allocation with the same kind of unchecked 32-bit multiply at vk_helpers.cpp:10788:

C++
uint32_t pixelBytes = imageFormat.pixelBytes;
size_t bufferSize =
    sourceArea.width * sourceArea.height * sourceArea.depth * pixelBytes * layerCount;

Every operand here is 32-bit (int or uint32_t), so the product wraps before it gets assigned to the 64-bit size_t. When the true result hits 2^32 the value becomes zero, a zero-byte staging buffer gets allocated, and the following vkCmdCopyImageToBuffer writes the full image data into it, overflowing the heap.

In short: the fix patched the destination buffer (caller) but missed the source buffer (callee).

Steps to Reproduce

Tested on Windows 11 with Chrome 145 Stable. The PoC allocates a 4 GiB texture, so the Vulkan driver must support a single allocation of that size. Most discrete GPUs (e.g. NVIDIA RTX 4050, 6 GB VRAM) cap maxMemoryAllocationSize just under 4 GiB, causing texStorage3D to return GL_OUT_OF_MEMORY before the vulnerable path is reached. On laptops with an Intel Iris Xe iGPU, the Vulkan driver allocates from system RAM and supports allocations up to ~16 GiB, which is enough.

  1. Place poc.html in a directory and start a local web server (PowerShell):
PowerShell
cd path\to\poc
python -m http.server 8765
  1. Open a second PowerShell window. Force Chrome to use the Intel Vulkan driver and launch with logging to file:
PowerShell
$env:VK_ICD_FILENAMES = "C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_9741ef1f4093481f\igvk64.json"

New-Item -ItemType Directory -Force "$env:TEMP\chrome-vulkan-test" | Out-Null

& "C:\Program Files\Google\Chrome\Application\chrome.exe" --use-angle=vulkan --disable-gpu-sandbox --no-sandbox --user-data-dir="$env:TEMP\chrome-vulkan-test" --no-first-run --enable-logging --log-file="$env:TEMP\chrome-vulkan-test\chrome.log" http://localhost:8765/poc.html

The VK_ICD_FILENAMES path is for the Intel driver on the test system. On other machines, find it under C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_*\igvk64.json.

  1. The page will go blank within a few seconds (GPU process crash). Wait ~10 seconds, then check the log:
PowerShell
Select-String "GPU process exited unexpectedly" "$env:TEMP\chrome-vulkan-test\chrome.log"

Expected output:

[ERROR:gpu_process_host.cc:996] GPU process exited unexpectedly: exit_code=-1073741819

-1073741819 is 0xC0000005 (STATUS_ACCESS_VIOLATION).

  1. Crashpad also writes a minidump to the user-data-dir:
PowerShell
ls "$env:TEMP\chrome-vulkan-test\Crashpad\reports\*.dmp"

Minidump from test system:

ExceptionCode:  EXCEPTION_ACCESS_VIOLATION (0xC0000005)
Access type:    WRITE
Faulting addr:  libglesv2.dll + 0x0044A120
Write target:   0x1B1D28C0000 (unmapped, past end of staging buffer)

What the PoC does: it creates a TEXTURE_2D_ARRAY (RGB8, 2048x2048, 256 layers). ANGLE stores RGB8 as RGBA8 (4 bytes/pixel) on Vulkan since RGB8 is not natively renderable. Attaching layer 0 to an FBO and calling gl.clear() forces reinitImageAsRenderable, which calls copyImageDataToBuffer. The buffer size wraps: 2048 * 2048 * 1 * 4 * 256 = 2^32 = 0.

Control tests

Test Result
poc.html (2048x2048x256, overflows) GPU crash, exit_code=-1073741819
about:blank (no WebGL) No crash
poc_safe.html (256x256x4, no overflow) No crash

Root Cause

Looking at the commit diff, the fix only touches TextureVk.cpp (the destination buffer allocation). ImageHelper::copyImageDataToBuffer in vk_helpers.cpp (the source buffer allocation) was left as-is and still does the whole multiplication in one 32-bit expression.

GPU memory note

The PoC needs a single Vulkan allocation of exactly 4 GiB (2^32 bytes). Many discrete GPUs cap maxMemoryAllocationSize just below that (the RTX 4050 caps at 0xffe00000, ~2 MiB short). The Intel Iris Xe iGPU allocates from system RAM with a limit of ~16 GiB, so it works on any machine with enough free RAM. On Linux or systems without an Intel iGPU, lowering IMPLEMENTATION_MAX_2D_TEXTURE_SIZE in src/libANGLE/Constants.h to 256 and rebuilding ANGLE makes the overflow trigger with only a few hundred KiB.

Impact analysis

A web page can cause a heap buffer overflow in Chrome's GPU process through WebGL 2. The data written past the buffer comes from texture contents, which the page controls through texSubImage3D. The GPU process runs at higher privilege than the renderer.


The cause

What version of Chrome have you found the security issue in?

Chrome 145.0.7632.110 Stable, Windows 11 x86_64

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Memory Corruption (in a sandboxed process)

How would you like to be publicly acknowledged for your report?

M. Fauzan Wijaya (Gh05t666nero)

The original report as published on the Chromium issue tracker, by M. Fauzan Wijaya (Gh05t666nero). 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 the buffer size was computed entirely in 32-bit arithmetic, so the product wrapped to zero before being stored in a 64-bit size variable.

Impact

A web page could crash the GPU process and write page-controlled texture data past a heap buffer, though the GPU process is sandboxed and the overflow needs a single 4 GiB allocation that many discrete GPUs cannot provide.

What the attacker needed

Victim opens a malicious web page; WebGL 2 support; GPU driver allows a 4 GiB allocation

The fix

The remaining multiplication in the callee should be split or widened so the size is computed in 64-bit arithmetic, as was already done for the caller.

How it was found

  1. Serve the proof-of-concept page from a local web server.
  2. Launch Chrome forced onto the Intel Vulkan driver with logging enabled and open the page.
  3. Wait for the page to go blank as the GPU process crashes, then check the log for the exit code.
  4. Confirm the crash by locating the Crashpad minidump in the user-data directory.

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 needs memory, it calculates how much to ask for by multiplying several numbers together. Here those numbers were multiplied as small 32-bit values, so the result wrapped around to zero and the program asked for an empty buffer. The graphics driver then copied a whole texture into that empty space, writing past the end of the memory it was given.

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 M. Fauzan Wijaya

View all

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