Integer overflow in ANGLE (CVE-2026-3536)
The ANGLE Vulkan backend multiplied five texture dimensions in 32-bit arithmetic when sizing a staging buffer, so a large WebGL2 texture array wrapped the size to zero. An attacker could then have the GPU process write gigabytes of attacker-influenced pixel data past a tiny allocation, corrupting heap memory.
- Fix shipped in 14 days
Report description
ANGLE Vulkan reinitImageAsRenderable uint32 Overflow causes GPU OOB Write
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?
The problem
Please describe the technical details of the vulnerability
TextureVk::reinitImageAsRenderable in the ANGLE Vulkan backend computes a staging buffer size using five operands that multiply in 32-bit arithmetic, overflowing before widening to size_t. When a WebGL2 page creates a non-renderable RGB8 TEXTURE_2D_ARRAY and calls copyTexSubImage3D, ANGLE detects that RGB8 is not natively renderable in Vulkan and converts the texture to RGBA8. The size calculation at TextureVk.cpp:3167 multiplies width, height, depth, pixelBytes, and layerCount in 32-bit arithmetic. For a 16384x16384x4-layer texture, the product is exactly 2^32 and wraps to 0. The staging buffer allocation receives the overflowed size (0). CopyImageCHROMIUM then writes 4GB of converted pixel data into it.
The attacker controls the source RGB8 pixel data. After conversion to RGBA8, the R, G, B channels are derived from the attacker's data and the alpha channel is always 0xFF. The attacker controls 3 of every 4 bytes written during the overflow.
No compromised renderer is required. The overflow is triggered entirely from JavaScript via the WebGL2 API.
Affects Stable, Beta, and Dev. The vulnerable code has been present since September 2021. Tested on:
- 144.0.7559.133 (Stable, Windows)
- 146.0.7678.0 (ASan, Windows)
Affected Code
TextureVk.cpp, lines 3167-3168 in reinitImageAsRenderable:
size_t dstBufferSize = sourceBox.width * sourceBox.height * sourceBox.depth *
dstFormat.pixelBytes * layerCount;
All five operands (width, height, depth as int; pixelBytes, layerCount as uint32_t) multiply in 32-bit arithmetic. The result overflows before being stored into the 64-bit size_t. This value is passed to stageSubresourceUpdateAndGetData (line 3172), which calls initBufferForImageCopy to allocate a VMA staging buffer of the overflowed size. The CopyImageCHROMIUM loop at lines 3190-3197 writes the correct (non-overflowed) amount of data per layer, using pitch values from lines 3177-3184.
The pitch calculations at lines 3177-3184 use GLuint (uint32_t) and have the same overflow class, but they do not overflow at the dimensions required to trigger the size overflow.
Steps to Reproduce
- Launch Chrome with: --use-angle=vulkan
- Navigate to the attached poc.html
- The PoC auto-fires on page load
For ASan builds, also pass --in-process-gpu --disable-features=SkiaGraphite --disable-gpu-compositing. The latter two flags prevent an unrelated Dawn/D3D11 initialization failure in ASan builds when ANGLE is set to Vulkan; they are not related to the vulnerability, but were required in my testing.
ASan output (Chrome 146.0.7678.0, Windows, Intel HD 620):
==17556==ERROR: AddressSanitizer: access-violation on unknown address 0x120973c50000
==17556==The signal is caused by a WRITE memory access.
#0 angle::R8G8B8A8SRGB::writeColor imageformats.cpp:392
#1 rx::CopyImageCHROMIUM renderer_utils.cpp:795
#2 rx::TextureVk::reinitImageAsRenderable TextureVk.cpp:3192
#3 rx::TextureVk::respecifyImageStorage TextureVk.cpp:3260
#4 rx::TextureVk::ensureRenderableWithFormat TextureVk.cpp:4907
#5 rx::TextureVk::ensureRenderableIfCopyTexImage.. TextureVk.cpp:4968
#6 rx::TextureVk::copySubImage TextureVk.cpp:1479
#7 gl::Texture::copySubImage Texture.cpp:1613
#8 gl::Context::copyTexSubImage3D Context.cpp:5139
rax = 41 rcx = 120973c50000
RAX holds the attacker's marker byte (0x41) at the point of the crash. RCX is the destination pointer. The faulting instruction is writeColor writing the attacker's R channel byte to the overflow destination.
Chrome 144 stable (no --in-process-gpu) crashes the GPU process with STATUS_ACCESS_VIOLATION (0xC0000005), WRITE. The crashpad minidump confirms:
- RAX = 0x41 (attacker's marker byte)
- The 128 bytes immediately before the crash address contain 32 consecutive 41 41 41 FF RGBA pixels
- The overflow wrote through a 4MB PAGE_READWRITE heap region and crashed at the adjacent PAGE_NOACCESS boundary
The PoC works as follows:
- Creates a 16384x16384x4-layer RGB8 TEXTURE_2D_ARRAY (non-renderable in Vulkan)
- Fills the first 512 rows with a controlled marker byte (0x41)
- Creates a 1x1 RGBA8 renderbuffer FBO as the copy source
- Calls copyTexSubImage3D from the RGBA8 FBO into the RGB8 texture
- ANGLE calls reinitImageAsRenderable, which computes dstBufferSize = 0 (uint32 overflow) and writes 4GB of RGBA8 converted data into the undersized staging buffer
The trigger path is:
gl.copyTexSubImage3D(TEXTURE_2D_ARRAY, ...)
-> TextureVk::copySubImage
-> ensureRenderableIfCopyTexImageCannotTransfer
-> ensureRenderableWithFormat (RGB8 not renderable, convert to RGBA8)
-> respecifyImageStorage
-> reinitImageAsRenderable (layerCount > 1, takes slow path)
-> dstBufferSize = width * height * depth * pixelBytes * layerCount overflows to 0
-> stageSubresourceUpdateAndGetData allocates staging buffer with overflowed size
-> CopyImageCHROMIUM writes 4GB into undersized buffer
Fix
Use CheckedNumeric for the size calculation, consistent with how block-compressed formats are already handled via ANGLE_VK_CHECK_MATH in vk_helpers.cpp stageSubresourceUpdateImpl (lines 8375-8390):
angle::CheckedNumeric<size_t> checkedSize = sourceBox.width;
checkedSize *= sourceBox.height;
checkedSize *= sourceBox.depth;
checkedSize *= dstFormat.pixelBytes;
checkedSize *= layerCount;
ANGLE_VK_CHECK_MATH(contextVk, checkedSize.IsValid());
size_t dstBufferSize = checkedSize.ValueOrDie();
The GLuint pitch calculations at lines 3177-3184 should also use CheckedNumeric.
Bisect
The vulnerable code was introduced in ANGLE commit 8ea87a6767 ("Vulkan: Avoid texture format fallback when possible"), committed 2021-09-08, CL https://chromium-review.googlesource.com/c/angle/angle/+/3104514. The entire reinitImageAsRenderable function, including the unchecked multiplication, was added as new code in this commit.
Impact analysis
Heap buffer overflow in the GPU process, reachable from JavaScript via WebGL2. The attacker controls 3 of every 4 bytes written during the 4GB overflow (the 4th byte is always 0xFF). The staging buffer is allocated in the VMA (Vulkan Memory Allocator) HOST_VISIBLE staging pool. The overflow corrupts adjacent heap allocations. In release Chrome on Windows, approximately 4MB of heap data is overwritten with attacker-controlled content before the write reaches an unmapped page.
On Android, ANGLE Vulkan is the default backend and no command-line flags are required. The Android GPU process has no sandbox (kAndroidGpuSandbox is FEATURE_DISABLED_BY_DEFAULT) and shares the same UID as the browser process, so this overflow corrupts memory in an unsandboxed process reachable from JavaScript with no user interaction. On Linux and ChromeOS, ANGLE Vulkan is the default on many configurations.
The cause
What version of Chrome have you found the security issue in?
144.0.7559.133 Stable
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?
cinzinga
Context
ANGLE is the translation layer Chrome uses to turn OpenGL ES and WebGL calls into the native graphics API of the platform. On Windows and Android one of the backends it can use is Vulkan. The report concerns the Vulkan backend file TextureVk.cpp, specifically the function TextureVk::reinitImageAsRenderable, which is reached when a texture format that is not natively renderable in Vulkan has to be converted to a renderable format.
A WebGL2 page can create a TEXTURE_2D_ARRAY with the RGB8 internal format. Vulkan does not treat RGB8 as natively renderable, so when such a texture is used as the destination of a copy, ANGLE converts it to RGBA8 and reinitialises the image storage. The function that performs this reinitialisation computes the size of a staging buffer, allocates it, and then writes the converted pixel data into it. The report shows that this size computation overflows in 32-bit arithmetic, so the buffer is allocated far too small while the write still uses the correct, much larger amount of data.
The report is filed under the Chrome Vulnerability Reward Program. The platform records the title as "Integer overflow in ANGLE (CVE-2026-3536)" and the disclosure date as 2026-03-03. The researcher is credited as cinzinga. The platform records the severity as critical, the weakness as integer overflow, the asset as ANGLE, and the bounty as 33,000.00 USD. The report itself does not state a CVSS score.
Setup
The report gives the following preconditions and test environment.
- Chrome must be launched with the Vulkan ANGLE backend:
--use-angle=vulkan
- For ASan builds, the researcher also passed:
--in-process-gpu --disable-features=SkiaGraphite --disable-gpu-compositing
The report explains that the latter two flags prevent an unrelated Dawn/D3D11 initialisation failure in ASan builds when ANGLE is set to Vulkan. They are not related to the vulnerability but were required in the researcher's testing.
- The proof of concept is an attached
poc.htmlthat auto-fires on page load.
The versions tested were:
- 144.0.7559.133 (Stable, Windows)
- 146.0.7678.0 (ASan, Windows)
The report states that Stable, Beta and Dev are affected, and that the vulnerable code has been present since September 2021. The ASan run was on an Intel HD 620. The report does not describe any account, role or authentication requirement; the trigger is entirely client-side JavaScript.
Finding it
The researcher points at a specific line in the ANGLE source, linked in the report as:
https://chromium.googlesource.com/angle/angle/+/aca6a0fe0850/src/libANGLE/renderer/vulkan/TextureVk.cpp#3167
The problem is the staging buffer size calculation in TextureVk::reinitImageAsRenderable. The report describes it as five operands that multiply in 32-bit arithmetic and overflow before widening to size_t. The affected code, lines 3167-3168, is:
size_t dstBufferSize = sourceBox.width * sourceBox.height * sourceBox.depth *
dstFormat.pixelBytes * layerCount;
All five operands multiply in 32-bit arithmetic: width, height and depth are int, while pixelBytes and layerCount are uint32_t. The product overflows before it is stored into the 64-bit size_t. The result is then passed to stageSubresourceUpdateAndGetData (line 3172), which calls initBufferForImageCopy to allocate a VMA staging buffer of the overflowed size. The CopyImageCHROMIUM loop at lines 3190-3197 writes the correct, non-overflowed amount of data per layer, using pitch values from lines 3177-3184.
The report also notes that the pitch calculations at lines 3177-3184 use GLuint (uint32_t) and have the same overflow class, but they do not overflow at the dimensions required to trigger the size overflow.
The concrete arithmetic given in the report: for a 16384x16384x4-layer texture, the product is exactly 2^32 and wraps to 0. The staging buffer allocation therefore receives the overflowed size of 0, and CopyImageCHROMIUM then writes 4GB of converted pixel data into it.
The attacker controls the source RGB8 pixel data. After conversion to RGBA8, the R, G and B channels are derived from the attacker's data and the alpha channel is always 0xFF. The attacker therefore controls 3 of every 4 bytes written during the overflow.
The report stresses that no compromised renderer is required: the overflow is triggered entirely from JavaScript via the WebGL2 API.
Exploitation
Step 1: launch Chrome with the Vulkan backend
--use-angle=vulkan
This selects ANGLE's Vulkan backend, which is the code path containing the vulnerable function. On Android the report says ANGLE Vulkan is the default backend and no command-line flags are required.
Step 2: navigate to the proof of concept
The attached poc.html auto-fires on page load. The report does not reproduce the HTML source; it describes what the PoC does, which is covered in the steps below.
Step 3: create a non-renderable RGB8 texture array
The PoC creates a 16384x16384x4-layer RGB8 TEXTURE_2D_ARRAY. This format is non-renderable in Vulkan, which is what forces ANGLE down the conversion path.
Step 4: fill the texture with a controlled marker
The PoC fills the first 512 rows with a controlled marker byte, 0x41. This marker is what later appears in the crash evidence, confirming that the written bytes come from attacker-controlled data.
Step 5: create a copy source
The PoC creates a 1x1 RGBA8 renderbuffer FBO to act as the copy source.
Step 6: trigger the copy
The PoC calls copyTexSubImage3D from the RGBA8 FBO into the RGB8 texture. In the report's trigger path this is written as:
gl.copyTexSubImage3D(TEXTURE_2D_ARRAY, ...)
ANGLE then calls reinitImageAsRenderable, which computes dstBufferSize = 0 through the uint32 overflow and writes 4GB of RGBA8 converted data into the undersized staging buffer.
The full trigger path given in the report is:
gl.copyTexSubImage3D(TEXTURE_2D_ARRAY, ...)
-> TextureVk::copySubImage
-> ensureRenderableIfCopyTexImageCannotTransfer
-> ensureRenderableWithFormat (RGB8 not renderable, convert to RGBA8)
-> respecifyImageStorage
-> reinitImageAsRenderable (layerCount > 1, takes slow path)
-> dstBufferSize = width * height * depth * pixelBytes * layerCount overflows to 0
-> stageSubresourceUpdateAndGetData allocates staging buffer with overflowed size
-> CopyImageCHROMIUM writes 4GB into undersized buffer
Each arrow is a call in the ANGLE stack: the WebGL entry point reaches TextureVk::copySubImage, which checks whether the copy can be transferred without conversion, decides that RGB8 is not renderable, converts the format to RGBA8, respecifies the image storage, and enters reinitImageAsRenderable. Because layerCount > 1, the slow path is taken, the size multiplication overflows to 0, the staging buffer is allocated with that size, and CopyImageCHROMIUM writes the full 4GB.
Step 7: observe the crash under ASan
On Chrome 146.0.7678.0 (Windows, Intel HD 620) the ASan build produced:
==17556==ERROR: AddressSanitizer: access-violation on unknown address 0x120973c50000
==17556==The signal is caused by a WRITE memory access.
#0 angle::R8G8B8A8SRGB::writeColor imageformats.cpp:392
#1 rx::CopyImageCHROMIUM renderer_utils.cpp:795
#2 rx::TextureVk::reinitImageAsRenderable TextureVk.cpp:3192
#3 rx::TextureVk::respecifyImageStorage TextureVk.cpp:3260
#4 rx::TextureVk::ensureRenderableWithFormat TextureVk.cpp:4907
#5 rx::TextureVk::ensureRenderableIfCopyTexImage.. TextureVk.cpp:4968
#6 rx::TextureVk::copySubImage TextureVk.cpp:1479
#7 gl::Texture::copySubImage Texture.cpp:1613
#8 gl::Context::copyTexSubImage3D Context.cpp:5139
rax = 41 rcx = 120973c50000
The report explains the registers: RAX holds the attacker's marker byte (0x41) at the point of the crash, and RCX is the destination pointer. The faulting instruction is writeColor writing the attacker's R channel byte to the overflow destination.
Step 8: observe the crash on stable Chrome
Chrome 144 stable, without --in-process-gpu, crashes the GPU process with STATUS_ACCESS_VIOLATION (0xC0000005), WRITE. The crashpad minidump confirms:
- RAX =
0x41(attacker's marker byte) - The 128 bytes immediately before the crash address contain 32 consecutive
41 41 41 FFRGBA pixels - The overflow wrote through a 4MB
PAGE_READWRITEheap region and crashed at the adjacentPAGE_NOACCESSboundary
Root cause
The mistake is an unchecked multiplication in 32-bit arithmetic. The five operands of the staging buffer size calculation are all 32-bit types, so the product wraps before it is widened into the 64-bit size_t. The wrapped value is used to allocate the staging buffer, but the subsequent copy loop writes the correct, non-overflowed amount of data. The allocation and the write therefore disagree, and the write runs past the end of the buffer.
The report notes that the pitch calculations at lines 3177-3184 use GLuint and share the same overflow class, but they do not overflow at the dimensions needed to trigger the size overflow.
On why existing defences did not stop it, the report does not discuss any specific mitigation. What it does state is that no compromised renderer is required, because the overflow is triggered entirely from JavaScript through the WebGL2 API. The report does not discuss any specific mitigation that was expected to catch the write.
Impact
The report describes a heap buffer overflow in the GPU process, reachable from JavaScript via WebGL2. The attacker controls 3 of every 4 bytes written during the 4GB overflow; the fourth byte is always 0xFF. The staging buffer is allocated in the VMA (Vulkan Memory Allocator) HOST_VISIBLE staging pool, and the overflow corrupts adjacent heap allocations. In release Chrome on Windows, the report says approximately 4MB of heap data is overwritten with attacker-controlled content before the write reaches an unmapped page.
The report makes a platform-specific point about Android: ANGLE Vulkan is the default backend there and no command-line flags are required. The Android GPU process has no sandbox (kAndroidGpuSandbox is FEATURE_DISABLED_BY_DEFAULT) and shares the same UID as the browser process, so the overflow corrupts memory in an unsandboxed process reachable from JavaScript with no user interaction. On Linux and ChromeOS, the report says ANGLE Vulkan is the default on many configurations.
The vulnerability type selected in the report is "Memory Corruption (in a sandboxed process)". The report does not claim a specific exploitation outcome beyond memory corruption and the crash evidence described above.
Fix
The report recommends using CheckedNumeric for the size calculation, consistent with how block-compressed formats are already handled via ANGLE_VK_CHECK_MATH in vk_helpers.cpp stageSubresourceUpdateImpl (lines 8375-8390):
angle::CheckedNumeric<size_t> checkedSize = sourceBox.width;
checkedSize *= sourceBox.height;
checkedSize *= sourceBox.depth;
checkedSize *= dstFormat.pixelBytes;
checkedSize *= layerCount;
ANGLE_VK_CHECK_MATH(contextVk, checkedSize.IsValid());
size_t dstBufferSize = checkedSize.ValueOrDie();
The report adds that the GLuint pitch calculations at lines 3177-3184 should also use CheckedNumeric.
The report does not state that a fix was applied; it presents the above as the recommended change.
Variants to test
The report does not list variants. The following are concrete directions suggested by its content, each with what a positive result would look like.
- Other format conversions that force
reinitImageAsRenderable. Try WebGL2 textures in formats that Vulkan does not treat as natively renderable, used as the destination ofcopyTexSubImage3D. A positive result is the same conversion path being taken and the staging buffer size being computed from attacker-influenced dimensions. - Other size and pitch calculations in the Vulkan backend. The report notes that the pitch calculations at lines 3177-3184 use
GLuintand share the same overflow class. A positive result is a dimension combination where a pitch value wraps in 32-bit arithmetic. - Large array textures with
layerCount > 1. The report's trigger path annotatesreinitImageAsRenderablewithlayerCount > 1, takes slow path. A positive result is the slow path being reached and the multiplication wrapping, as with the 16384x16384x4-layer case where the product is exactly 2^32. - Platforms where ANGLE Vulkan is the default. The report names Android, and says Linux and ChromeOS use it on many configurations. A positive result is the trigger working without the
--use-angle=vulkanflag, and on Android, the overflow occurring in the unsandboxed GPU process described in the report. - Other unchecked multiplications that widen into
size_t. The report's fix pattern usesCheckedNumericandANGLE_VK_CHECK_MATH, which the report says is already used for block-compressed formats instageSubresourceUpdateImpl. A positive result is finding a similar allocation-then-write mismatch where the allocation size wraps but the write does not.
What happened, in plain words
A security researcher found a bug in Chrome's graphics code. The bug lets a normal web page, using only JavaScript, make Chrome's graphics process write far more data into a memory area than that area was sized for. The data that spills over is partly controlled by the web page. The report calls this an integer overflow that leads to an out-of-bounds write, and the platform records it as critical, with a bounty of 33,000.00 USD. The report was filed under the Chrome Vulnerability Reward Program and credits the researcher as cinzinga. The platform records the title as "Integer overflow in ANGLE (CVE-2026-3536)" and the disclosure date as 2026-03-03. The report itself does not give a CVSS score.
To follow the rest, you only need a few ideas:
- A browser is split into processes. One process runs the page (the renderer), another does the drawing on the screen (the GPU process). If one crashes, the others can keep going.
- Memory is a numbered list of boxes. Each box holds one byte and has an address (a number). Writing to a box you were not given is a memory corruption bug.
- A buffer is a reserved block of boxes. Code asks the system for a block of a certain size, then writes into it. If the size asked for is wrong, the writes can run past the end.
- An integer is a whole number stored in a fixed number of bits. A 32-bit integer can hold values up to about 4.29 billion. If a calculation goes past that, it wraps around, like a car odometer rolling from 999999 to 000000.
This article walks through the report in the same order as the technical version: the context, the setup, how the bug was found, how it was triggered step by step, the root cause, the impact, the suggested fix, and directions for further testing. Every code block is copied exactly from the report and explained line by line.
Context
ANGLE is the translation layer Chrome uses to turn OpenGL ES and WebGL calls into the native graphics API of the platform. In everyday terms: a web page can ask the browser to draw 3D graphics using a standard called WebGL. The operating system, however, has its own way of talking to the graphics card (Vulkan on many systems, Direct3D on Windows, and so on). ANGLE sits in the middle and translates. Think of it as an interpreter at a meeting between two people who speak different languages.
On Windows and Android one of the backends ANGLE can use is Vulkan. A backend here means the specific implementation that talks to one particular graphics system. The report concerns the Vulkan backend file TextureVk.cpp, specifically the function TextureVk::reinitImageAsRenderable. A function is a named block of code that does one job; you can think of it as a recipe with a name. This particular function is reached when a texture format that is not natively renderable in Vulkan has to be converted to a renderable format.
Two more terms from that sentence:
- A texture is an image stored in graphics memory. It can be a simple 2D picture, or a stack of pictures (an array).
- A format describes how each pixel is stored: which colour channels, in what order, and how many bits each one uses.
RGB8means three channels (red, green, blue), 8 bits each.RGBA8adds an alpha channel (transparency), also 8 bits. - Renderable means the graphics system can draw directly into that texture. Some formats are not renderable on some backends, so the code has to convert them first.
A WebGL2 page can create a TEXTURE_2D_ARRAY with the RGB8 internal format. A TEXTURE_2D_ARRAY is a stack of 2D images that share the same size and format; each image in the stack is called a layer. Vulkan does not treat RGB8 as natively renderable, so when such a texture is used as the destination of a copy, ANGLE converts it to RGBA8 and reinitialises the image storage. The function that performs this reinitialisation computes the size of a staging buffer, allocates it, and then writes the converted pixel data into it.
A staging buffer is a temporary block of ordinary memory used as a holding area before data is moved to the graphics card. Think of it as a tray you load with plates before carrying them to the table. The report shows that this size computation overflows in 32-bit arithmetic, so the buffer is allocated far too small while the write still uses the correct, much larger amount of data. The tray is ordered at the wrong size, but the waiter still piles on the full load.
The report is filed under the Chrome Vulnerability Reward Program, is titled "Integer overflow in ANGLE (CVE-2026-3536)", and was disclosed on 2026-03-03. The researcher is credited as cinzinga. The platform records the severity as critical, the weakness as integer overflow, the asset as ANGLE, and the bounty as 33,000.00 USD. The report itself does not state a CVSS score.
Setup
The report gives the following preconditions and test environment.
- Chrome must be launched with the Vulkan ANGLE backend:
--use-angle=vulkan
This is a command-line flag: a word you add after the program name when starting it from a terminal, to change its behaviour. --use-angle=vulkan tells Chrome to use ANGLE's Vulkan backend instead of whatever it would pick by default. The reason for this step is that the vulnerable code lives in the Vulkan backend, so the researcher has to force Chrome onto that path.
- For ASan builds, the researcher also passed:
--in-process-gpu --disable-features=SkiaGraphite --disable-gpu-compositing
Line by line:
--in-process-gpuruns the GPU work inside the same process as the rest of Chrome, rather than in a separate GPU process. This makes debugging easier because a crash lands in one place.--disable-features=SkiaGraphiteturns off a feature called SkiaGraphite.--disable-gpu-compositingturns off GPU compositing, which is the step that combines layers into the final screen image.
ASan stands for AddressSanitizer, a debugging tool that watches memory accesses and reports when code reads or writes outside the area it was given. It is slower than normal Chrome but catches bugs that would otherwise be silent.
The report explains that the latter two flags prevent an unrelated Dawn/D3D11 initialisation failure in ASan builds when ANGLE is set to Vulkan. They are not related to the vulnerability but were required in the researcher's testing. In other words, without them the test build would fail to start for a different reason, and the researcher would never reach the vulnerable code.
- The proof of concept is an attached
poc.htmlthat auto-fires on page load. A proof of concept (PoC) is a small, deliberately harmless demonstration that a bug is real. "Auto-fires on page load" means the page runs the trigger as soon as it opens, with no clicks needed.
The versions tested were:
- 144.0.7559.133 (Stable, Windows)
- 146.0.7678.0 (ASan, Windows)
"Stable" is the normal release channel that ordinary users run. The report states that Stable, Beta and Dev are affected, and that the vulnerable code has been present since September 2021. The ASan run was on an Intel HD 620, which is a built-in graphics chip. The report does not describe any account, role or authentication requirement; the trigger is entirely client-side JavaScript. In other words, no login, no special permissions, no server-side setup: just a page.
Finding it
The researcher points at a specific line in the ANGLE source, linked in the report as:
https://chromium.googlesource.com/angle/angle/+/aca6a0fe0850/src/libANGLE/renderer/vulkan/TextureVk.cpp#3167
This is a URL to a code hosting site. Reading it left to right: chromium.googlesource.com is the server, angle/angle is the project, +/aca6a0fe0850 pins a specific version of the code (a commit identifier), src/libANGLE/renderer/vulkan/TextureVk.cpp is the file, and #3167 jumps to line 3167. Pinning a commit matters because code changes over time; the link shows exactly the version the researcher examined.
The problem is the staging buffer size calculation in TextureVk::reinitImageAsRenderable. The report describes it as five operands that multiply in 32-bit arithmetic and overflow before widening to size_t. The affected code, lines 3167-3168, is:
size_t dstBufferSize = sourceBox.width * sourceBox.height * sourceBox.depth *
dstFormat.pixelBytes * layerCount;
Line by line:
size_t dstBufferSize =declares a variable nameddstBufferSizewhose type issize_t.size_tis an unsigned integer type designed to hold sizes; on a 64-bit build it is 64 bits wide, so it can hold very large numbers.sourceBox.width * sourceBox.height * sourceBox.depth *multiplies three values: the width, the height and the depth of the region being copied. These are the dimensions of the box of pixels.dstFormat.pixelBytes * layerCount;multiplies two more: how many bytes each pixel takes in the destination format, and how many layers the texture array has.
The catch is the order of operations. All five operands multiply in 32-bit arithmetic: width, height and depth are int, while pixelBytes and layerCount are uint32_t. The product overflows before it is stored into the 64-bit size_t. The widening to 64 bits happens only after the multiplication has already wrapped. It is like doing a sum on a pocket calculator that only shows eight digits: if the true answer has nine, the display rolls over and shows a wrong, smaller number, and only then do you write it down on a bigger piece of paper.
The result is then passed to stageSubresourceUpdateAndGetData (line 3172), which calls initBufferForImageCopy to allocate a VMA staging buffer of the overflowed size. VMA stands for Vulkan Memory Allocator, a library that manages graphics memory. The CopyImageCHROMIUM loop at lines 3190-3197 writes the correct, non-overflowed amount of data per layer, using pitch values from lines 3177-3184. A pitch is the number of bytes from the start of one row of pixels to the start of the next; it is how the code knows where each row begins.
The report also notes that the pitch calculations at lines 3177-3184 use GLuint (uint32_t) and have the same overflow class, but they do not overflow at the dimensions required to trigger the size overflow. "Same overflow class" means they are the same kind of mistake (a 32-bit multiplication that could wrap), but at the sizes used in this PoC they happen to stay within range.
The concrete arithmetic given in the report: for a 16384x16384x4-layer texture, the product is exactly 2^32 and wraps to 0. To see why: 16384 is 2^14, so 16384 times 16384 is 2^28. Multiply by 4 layers and you get 2^30. Multiply by 4 bytes per pixel (RGBA8) and you get 2^32. A 32-bit unsigned integer can hold values from 0 to 2^32 minus 1, so 2^32 wraps around to 0. The staging buffer allocation therefore receives the overflowed size of 0, and CopyImageCHROMIUM then writes 4GB of converted pixel data into it. 4GB is 2^32 bytes, which is the true, non-overflowed size.
The attacker controls the source RGB8 pixel data. After conversion to RGBA8, the R, G and B channels are derived from the attacker's data and the alpha channel is always 0xFF. The attacker therefore controls 3 of every 4 bytes written during the overflow. 0xFF is the maximum value of one byte, 255, which in RGBA means fully opaque. So the page chooses the colour of each pixel, but not its transparency.
The report stresses that no compromised renderer is required: the overflow is triggered entirely from JavaScript via the WebGL2 API. An API (Application Programming Interface) is a defined set of functions one piece of software offers to another. WebGL2 is the API a web page uses to ask the browser for 3D graphics. "No compromised renderer" means the attacker does not need to first break into the part of Chrome that runs the page; the page itself, running normally, is enough.
Exploitation
Step 1: launch Chrome with the Vulkan backend
--use-angle=vulkan
This selects ANGLE's Vulkan backend, which is the code path containing the vulnerable function. On Android the report says ANGLE Vulkan is the default backend and no command-line flags are required. The reason for this step is simply to make sure the test hits the vulnerable code; on Android it would happen anyway.
Step 2: navigate to the proof of concept
The attached poc.html auto-fires on page load. The report does not reproduce the HTML source; it describes what the PoC does, which is covered in the steps below. The reason for this step is to run the trigger; the researcher does not need to interact with the page.
Step 3: create a non-renderable RGB8 texture array
The PoC creates a 16384x16384x4-layer RGB8 TEXTURE_2D_ARRAY. This format is non-renderable in Vulkan, which is what forces ANGLE down the conversion path. The reason for this step is to set up the exact situation the bug needs: a texture whose format has to be converted before it can be used as a copy destination.
Step 4: fill the texture with a controlled marker
The PoC fills the first 512 rows with a controlled marker byte, 0x41. 0x41 is the hexadecimal notation for the byte value 65, which is the ASCII code for the capital letter A. This marker is what later appears in the crash evidence, confirming that the written bytes come from attacker-controlled data. The reason for this step is to make the overflow recognisable: if the crash shows 0x41 bytes, the researcher knows the overflow wrote the page's data, not random memory.
Step 5: create a copy source
The PoC creates a 1x1 RGBA8 renderbuffer FBO to act as the copy source. An FBO (Framebuffer Object) is a container that holds the target of drawing operations. A renderbuffer is a simple image that can be drawn into. The reason for this step is that the copy operation needs a source; a 1x1 source is the smallest possible, enough to trigger the copy without extra work.
Step 6: trigger the copy
The PoC calls copyTexSubImage3D from the RGBA8 FBO into the RGB8 texture. In the report's trigger path this is written as:
gl.copyTexSubImage3D(TEXTURE_2D_ARRAY, ...)
Line by line:
gl.is the WebGL context object, the handle through which the page calls WebGL functions.copyTexSubImage3Dis the function being called. The name reads as "copy texture sub-image, in three dimensions". It copies pixels from the current framebuffer into a region of a 3D texture (or a layer of a 2D array texture).TEXTURE_2D_ARRAYis the target type: a stack of 2D images....stands for the remaining arguments (coordinates, size, layer), which the report does not spell out.
ANGLE then calls reinitImageAsRenderable, which computes dstBufferSize = 0 through the uint32 overflow and writes 4GB of RGBA8 converted data into the undersized staging buffer. The reason for this step is that it is the actual trigger: the copy is what forces the format conversion and the size calculation.
The full trigger path given in the report is:
gl.copyTexSubImage3D(TEXTURE_2D_ARRAY, ...)
-> TextureVk::copySubImage
-> ensureRenderableIfCopyTexImageCannotTransfer
-> ensureRenderableWithFormat (RGB8 not renderable, convert to RGBA8)
-> respecifyImageStorage
-> reinitImageAsRenderable (layerCount > 1, takes slow path)
-> dstBufferSize = width * height * depth * pixelBytes * layerCount overflows to 0
-> stageSubresourceUpdateAndGetData allocates staging buffer with overflowed size
-> CopyImageCHROMIUM writes 4GB into undersized buffer
Each arrow is a call in the ANGLE stack: the WebGL entry point reaches TextureVk::copySubImage, which checks whether the copy can be transferred without conversion, decides that RGB8 is not renderable, converts the format to RGBA8, respecifies the image storage, and enters reinitImageAsRenderable. Because layerCount > 1, the slow path is taken, the size multiplication overflows to 0, the staging buffer is allocated with that size, and CopyImageCHROMIUM writes the full 4GB. "Slow path" means a branch of code taken only in less common cases; here, when the texture has more than one layer. The reason the report spells out the path is to show exactly where the bug sits and which conditions are needed to reach it.
Step 7: observe the crash under ASan
On Chrome 146.0.7678.0 (Windows, Intel HD 620) the ASan build produced:
==17556==ERROR: AddressSanitizer: access-violation on unknown address 0x120973c50000
==17556==The signal is caused by a WRITE memory access.
#0 angle::R8G8B8A8SRGB::writeColor imageformats.cpp:392
#1 rx::CopyImageCHROMIUM renderer_utils.cpp:795
#2 rx::TextureVk::reinitImageAsRenderable TextureVk.cpp:3192
#3 rx::TextureVk::respecifyImageStorage TextureVk.cpp:3260
#4 rx::TextureVk::ensureRenderableWithFormat TextureVk.cpp:4907
#5 rx::TextureVk::ensureRenderableIfCopyTexImage.. TextureVk.cpp:4968
#6 rx::TextureVk::copySubImage TextureVk.cpp:1479
#7 gl::Texture::copySubImage Texture.cpp:1613
#8 gl::Context::copyTexSubImage3D Context.cpp:5139
rax = 41 rcx = 120973c50000
Line by line:
==17556==ERROR: AddressSanitizer: access-violation on unknown address 0x120973c50000is ASan reporting that code tried to access memory at address0x120973c50000, which it was not allowed to touch. The number in==17556==is the process identifier.==17556==The signal is caused by a WRITE memory access.says the access was a write, not a read.- The numbered lines
#0to#8are a stack trace: the chain of function calls that led to the crash, with the innermost call first. Reading from top to bottom:writeColorinimageformats.cppline 392 was called byCopyImageCHROMIUMinrenderer_utils.cppline 795, which was called byreinitImageAsRenderableinTextureVk.cppline 3192, and so on down to the WebGL entry pointcopyTexSubImage3DinContext.cppline 5139. This trace matches the trigger path in Step 6. rax = 41 rcx = 120973c50000shows two CPU registers. A register is a tiny, very fast storage slot inside the processor.raxholds41, andrcxholds the destination address.
The report explains the registers: RAX holds the attacker's marker byte (0x41) at the point of the crash, and RCX is the destination pointer. The faulting instruction is writeColor writing the attacker's R channel byte to the overflow destination. In plain words: at the moment of the crash, the processor was about to write the page's chosen byte (the letter A) to an address outside the buffer.
Step 8: observe the crash on stable Chrome
Chrome 144 stable, without --in-process-gpu, crashes the GPU process with STATUS_ACCESS_VIOLATION (0xC0000005), WRITE. STATUS_ACCESS_VIOLATION is the Windows status code for "this program touched memory it was not allowed to touch"; 0xC0000005 is its numeric value. The crashpad minidump confirms:
- RAX =
0x41(attacker's marker byte) - The 128 bytes immediately before the crash address contain 32 consecutive
41 41 41 FFRGBA pixels - The overflow wrote through a 4MB
PAGE_READWRITEheap region and crashed at the adjacentPAGE_NOACCESSboundary
A minidump is a small file Windows writes when a program crashes, containing enough state to analyse what happened. PAGE_READWRITE and PAGE_NOACCESS are memory protection settings: the first means the region can be read and written, the second means any access is forbidden. The reason this evidence matters is that it shows the overflow really did write the page's data (the 41 41 41 FF pattern, three attacker bytes plus the fixed FF alpha) through a 4MB writable region until it hit a forbidden page and crashed.
Root cause
The mistake is an unchecked multiplication in 32-bit arithmetic. The five operands of the staging buffer size calculation are all 32-bit types, so the product wraps before it is widened into the 64-bit size_t. The wrapped value is used to allocate the staging buffer, but the subsequent copy loop writes the correct, non-overflowed amount of data. The allocation and the write therefore disagree, and the write runs past the end of the buffer. "Unchecked" means the code never asks "did this multiplication overflow?" before using the result.
The report notes that the pitch calculations at lines 3177-3184 use GLuint and share the same overflow class, but they do not overflow at the dimensions needed to trigger the size overflow.
On why existing defences did not stop it, the report does not discuss any specific mitigation. What it does state is that no compromised renderer is required, because the overflow is triggered entirely from JavaScript through the WebGL2 API. The report does not discuss any specific mitigation that was expected to catch the write. A sandbox is an isolation mechanism that limits what a process can touch; the report does not claim any sandbox failed here, only that the trigger needs no prior compromise.
Impact
The report describes a heap buffer overflow in the GPU process, reachable from JavaScript via WebGL2. The heap is the general-purpose pool of memory a program uses for objects it creates at runtime. The attacker controls 3 of every 4 bytes written during the 4GB overflow; the fourth byte is always 0xFF. The staging buffer is allocated in the VMA (Vulkan Memory Allocator) HOST_VISIBLE staging pool, and the overflow corrupts adjacent heap allocations. HOST_VISIBLE means memory the CPU can see and write to, as opposed to memory only the graphics card can see. "Adjacent heap allocations" means other objects that happen to sit next to the buffer in memory; the overflow overwrites them.
In release Chrome on Windows, the report says approximately 4MB of heap data is overwritten with attacker-controlled content before the write reaches an unmapped page. An unmapped page is a block of memory that is not currently assigned to anything, so touching it triggers a fault.
The report makes a platform-specific point about Android: ANGLE Vulkan is the default backend there and no command-line flags are required. The Android GPU process has no sandbox (kAndroidGpuSandbox is FEATURE_DISABLED_BY_DEFAULT) and shares the same UID as the browser process, so the overflow corrupts memory in an unsandboxed process reachable from JavaScript with no user interaction. A UID is a user identifier; sharing it means the two processes run with the same privileges, so a compromise of one is not contained by the other. "No user interaction" means the page does not need a click; simply loading it is enough.
On Linux and ChromeOS, the report says ANGLE Vulkan is the default on many configurations.
The vulnerability type selected in the report is "Memory Corruption (in a sandboxed process)". The report does not claim a specific exploitation outcome beyond memory corruption and the crash evidence described above.
Fix
The report recommends using CheckedNumeric for the size calculation, consistent with how block-compressed formats are already handled via ANGLE_VK_CHECK_MATH in vk_helpers.cpp stageSubresourceUpdateImpl (lines 8375-8390):
angle::CheckedNumeric<size_t> checkedSize = sourceBox.width;
checkedSize *= sourceBox.height;
checkedSize *= sourceBox.depth;
checkedSize *= dstFormat.pixelBytes;
checkedSize *= layerCount;
ANGLE_VK_CHECK_MATH(contextVk, checkedSize.IsValid());
size_t dstBufferSize = checkedSize.ValueOrDie();
Line by line:
angle::CheckedNumeric<size_t> checkedSize = sourceBox.width;creates a special number type that remembers whether any operation on it overflowed. It starts with the width.angle::is the namespace, a way of grouping names to avoid clashes.checkedSize *= sourceBox.height;multiplies by the height, and the type records whether the result overflowed.checkedSize *= sourceBox.depth;multiplies by the depth, again recording any overflow.checkedSize *= dstFormat.pixelBytes;multiplies by the bytes per pixel.checkedSize *= layerCount;multiplies by the layer count.ANGLE_VK_CHECK_MATH(contextVk, checkedSize.IsValid());asks "is the result still valid?" and, if not, reports an error through ANGLE's checking macro. A macro is a named piece of code that expands into other code at compile time.size_t dstBufferSize = checkedSize.ValueOrDie();extracts the final value. The nameValueOrDiesignals that calling it on an invalid value is a programming error; the previous line has already handled that case.
The report adds that the GLuint pitch calculations at lines 3177-3184 should also use CheckedNumeric. The reason for this recommendation is that the same class of mistake could exist in the pitch calculations, even if the current dimensions do not trigger it.
The report does not state that a fix was applied; it presents the above as the recommended change.
Variants to test
The report does not list variants. The following are concrete directions suggested by its content, each with what a positive result would look like.
- Other format conversions that force
reinitImageAsRenderable. Try WebGL2 textures in formats that Vulkan does not treat as natively renderable, used as the destination ofcopyTexSubImage3D. A positive result is the same conversion path being taken and the staging buffer size being computed from attacker-influenced dimensions. - Other size and pitch calculations in the Vulkan backend. The report notes that the pitch calculations at lines 3177-3184 use
GLuintand share the same overflow class. A positive result is a dimension combination where a pitch value wraps in 32-bit arithmetic. - Large array textures with
layerCount > 1. The report's trigger path annotatesreinitImageAsRenderablewithlayerCount > 1, takes slow path. A positive result is the slow path being reached and the multiplication wrapping, as with the 16384x16384x4-layer case where the product is exactly 2^32. - Platforms where ANGLE Vulkan is the default. The report names Android, and says Linux and ChromeOS use it on many configurations. A positive result is the trigger working without the
--use-angle=vulkanflag, and on Android, the overflow occurring in the unsandboxed GPU process described in the report. - Other unchecked multiplications that widen into
size_t. The report's fix pattern usesCheckedNumericandANGLE_VK_CHECK_MATH, which the report says is already used for block-compressed formats instageSubresourceUpdateImpl. A positive result is finding a similar allocation-then-write mismatch where the allocation size wraps but the write does not.
Glossary
- ANGLE: Chrome's translation layer that turns OpenGL ES and WebGL calls into the platform's native graphics API.
- API (Application Programming Interface): a defined set of functions one piece of software offers to another.
- ASan (AddressSanitizer): a debugging tool that detects out-of-bounds and other invalid memory accesses.
- Backend: the specific implementation that talks to one particular graphics system (for example, Vulkan).
- Buffer: a reserved block of memory used to hold data.
- CheckedNumeric: a C++ type that records whether an arithmetic operation overflowed.
- Command-line flag: a word added after a program name when starting it, to change its behaviour.
- Commit: a saved snapshot of a code repository at a point in time.
- Crashpad minidump: a small file written when a program crashes, containing state for analysis.
- FBO (Framebuffer Object): a container that holds the target of drawing operations.
- Format: how each pixel is stored (channels, order, bits per channel).
- Function: a named block of code that performs one job.
- GLuint / uint32_t: a 32-bit unsigned integer type.
- Heap: the general-purpose pool of memory a program uses for runtime objects.
- HOST_VISIBLE: memory the CPU can see and write to, as opposed to memory only the GPU can see.
- Integer overflow: when a calculation exceeds the maximum value a fixed-width integer can hold and wraps around.
- JavaScript: the programming language web pages run in the browser.
- Layer: one image in a stack of images that make up an array texture.
- Macro: a named piece of code that expands into other code at compile time.
- Memory corruption: writing to memory in a way the program did not intend, usually outside a reserved block.
- Minidump: see Crashpad minidump.
- Namespace: a way of grouping names in code to avoid clashes.
- Out-of-bounds write: writing past the end (or before the start) of a reserved block of memory.
- Pitch: the number of bytes from the start of one row of pixels to the start of the next.
- PoC (proof of concept): a small demonstration that a bug is real.
- Register: a tiny, very fast storage slot inside the processor.
- Renderable: a texture format the graphics system can draw directly into.
- Renderbuffer: a simple image that can be drawn into.
- RGB8 / RGBA8: pixel formats with three or four 8-bit channels (red, green, blue, and optionally alpha).
- Sandbox: an isolation mechanism that limits what a process can touch.
- size_t: an unsigned integer type designed to hold sizes; 64 bits on a 64-bit build.
- Slow path: a branch of code taken only in less common cases.
- Stack trace: the chain of function calls that led to a crash, innermost first.
- Staging buffer: a temporary block of ordinary memory used as a holding area before data moves to the graphics card.
- STATUS_ACCESS_VIOLATION (0xC0000005): the Windows status code for touching memory the program is not allowed to touch.
- Texture: an image stored in graphics memory.
- TEXTURE_2D_ARRAY: a stack of 2D images sharing the same size and format.
- UID: a user identifier; processes sharing a UID run with the same privileges.
- Unmapped page: a block of memory not currently assigned to anything, so touching it faults.
- VMA (Vulkan Memory Allocator): a library that manages graphics memory.
- Vulkan: a modern graphics API used by many platforms.
- WebGL / WebGL2: the API a web page uses to ask the browser for 3D graphics.
- 0x41 / 0xFF: hexadecimal notation for byte values 65 (the letter A) and 255 (fully opaque alpha).