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

Integer overflow in ANGLE (CVE-2026-113250)

A 32-bit integer overflow in ANGLE's Vulkan backend staging buffer size calculation could lead to a zero-sized buffer and out-of-bounds writes. Exploitation is limited to rare devices where 16-byte-per-pixel formats lack colour attachment support.

mikey233 Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 7 months

Report description

ANGLE Vulkan: readPixelsImpl 32-bit overflow in staging buffer size calculation


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/angle/angle


The problem

Please describe the technical details of the vulnerability

The problem

ImageHelper::readPixelsImpl in the ANGLE Vulkan backend computes a staging buffer size using 32-bit arithmetic that overflows before widening to size_t. This is a missed instance from the CVE-2026-3536 fix (commit 56c952c, Bug: chromium:487208468).

Vulnerable code — src/libANGLE/renderer/vulkan/vk_helpers.cpp, line 11502:

C++
size_t allocationSize = readFormat->pixelBytes * area.width * area.height;

Type analysis:

  • readFormat->pixelBytes: GLuint (32-bit unsigned)
  • area.width, area.height: int (32-bit signed)
  • The multiplication evaluates entirely in 32-bit, wrapping before assignment to size_t
  • For RGBA32F (16 bytes/pixel) at 16384×16384: 16 × 16384 × 16384 = 4,294,967,296 wraps to 0

Fixed instance in same file (commit 56c952c, line 9414):

C++
const size_t bufferSize = static_cast<size_t>(clippedRectangle.width) *
                          static_cast<size_t>(clippedRectangle.height) *
                          storageFormat.pixelBytes;

The static_cast<size_t>() pattern was applied to stageSubresourceUpdateFromFramebuffer but not to readPixelsImpl in the same file.

Code path: Reachable via copyTexSubImage2D when both GPU transfer and GPU draw copy paths fail:

gl.copyTexSubImage2D(target, level, 0, 0, 0, 0, 16384, 16384)
  → TextureVk::copySubImageImpl()
    → [transfer copy fails: format mismatch]
    → [draw copy fails: dest lacks VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT]
    → stageSubresourceUpdateFromFramebuffer() [CPU fallback]
      → ImageHelper::readPixelsImpl()         [line 11502, OVERFLOW]

The internal readPixelsImpl call from stageSubresourceUpdateFromFramebuffer constructs its own PackPixelsParams with packBuffer = nullptr, bypassing PBO validation and always reaching the CPU Readback section containing the overflow.

Practical exploitability is low. The CPU fallback requires a destination format lacking VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT for a 16-byte-per-pixel format. All three WebGL 2 candidates (RGBA32F/UI/I) have COLOR_ATTACHMENT support on 97–99% of Vulkan devices. This is primarily a defense-in-depth fix.

Suggested fix:

C++
size_t allocationSize = static_cast<size_t>(readFormat->pixelBytes) *
                        static_cast<size_t>(area.width) *
                        static_cast<size_t>(area.height);

Additional missed instances (same 32-bit overflow pattern):

  • D3D11: Image11.cpp:428
  • GL: BlitGL.cpp:833, TextureGL.cpp:750

Impact analysis

Impact analysis

This vulnerability has low practical exploitability on current hardware. An attacker would need to target the ~1–3% of Vulkan devices where 16-byte-per-pixel formats lack COLOR_ATTACHMENT support, and those devices typically have MAX_TEXTURE_SIZE below the threshold needed for overflow.

If the overflow were triggered, it would produce a zero-sized Vulkan staging buffer followed by a full-size GPU DMA write, causing potential out-of-bounds writes in renderer GPU process memory.

The primary value is defense-in-depth: the overflow could become reachable through future code changes, new GPU drivers, or new internal callers of readPixelsImpl that bypass validation. The fix is a one-line cast matching the pattern already applied elsewhere in the same file.



The cause

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

145.0.7632.160 + stable

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Other

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

mikey233 of HackerOne

The original report as published on the Chromium issue tracker, by mikey233 of HackerOne. 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

The multiplication of pixel size, width, and height was performed in 32-bit arithmetic before being assigned to a 64-bit size type, causing overflow.

Impact

If triggered, the overflow could cause out-of-bounds writes in the GPU process, but practical exploitability is low because it requires rare hardware conditions.

What the attacker needed

Vulkan device lacking colour attachment support for…; Ability to run WebGL content

The fix

The fix is to cast each factor to size_t before multiplication, matching the pattern already used elsewhere in the same file.

How it was found

  1. Call copyTexSubImage2D with a large width and height.
  2. The transfer copy path fails due to format mismatch.
  3. The draw copy path fails because the destination lacks colour attachment support.
  4. The CPU fallback calls readPixelsImpl, which overflows the buffer size calculation.

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 calculates how much memory to reserve, it multiplies numbers together. If those numbers are stored in a small fixed-size type, the result can wrap around to a tiny value, so the program reserves too little memory and later writes past the end. Here, a graphics component did that, but only on unusual hardware, so it is mostly a safety fix.

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