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

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

Stale ANGLE texture image definitions in Chrome's GPU process on macOS kept references to freed Metal texture memory, so a WebGL2 page could read recycled heap data from other tabs via readPixels. The reporter claims this leaks cross-origin URLs, pointers and metadata at roughly 35 MB/s with no user interaction, and that the same flaw also causes out-of-bounds reads and writes.

Thomas Guillem Follow

Originally disclosed on Chrome VRP

Bounty$10,000 High View original
  • Fix shipped in 3 months

VULNERABILITY

Any WebGL2 page on macOS can continuously read GPU process heap memory, leaking cross-origin URLs, pointers, and metadata from other tabs. ~35 MB/s sustained, no user interaction, default Chrome config.

The GPU process composites all tabs. URL strings from resource loading end up on its heap. Stale ANGLE texture views expose this memory to JavaScript through readPixels.

REPRODUCTION (cross-origin URL leak)

  1. Open attached poc-heap-leak.html in official Google Chrome (stable or canary) on macOS
  2. Open other tabs with any websites (e.g. reddit.com)
  3. Watch the PoC page — leaked URL fragments, pointers, and strings appear within seconds

See attached video (poc-heap-leak.mov) and screenshot (poc-heap-leak.png).

Works on both stable (147) and canary (148). The PoC tries multiple exploitation strategies to cover different ANGLE internal layouts.

ROOT CAUSE

TextureMtl::retainImageDefinitions() in TextureMtl.mm. When a texture is redefined (format or size change), redefineImage() calls deallocateNativeStorage(keepImages=true) which saves stale image views on all mip levels. These views reference old Metal texture allocations whose backing memory contains recycled GPU data from other tabs' compositor textures.

6d8b704e2a ("Remove TextureMtl::mFormat", cherry-picked to M146/M147) does not fix this. The stale image definitions survive — getImageDefinition() only updates when imageDef.image is null, but retained images are non-null.

OOB READ/WRITE (ASAN)

The same root cause also produces OOB read and write, confirmable with ASAN. The HTML PoC does NOT trigger ASAN (ASAN cannot catch Metal-managed memory issues). To reproduce under ASAN:

  1. Apply attached angle-texturetest.diff, build angle_end2end_tests with ASAN on macOS
  2. OOB read: ANGLE_DEFAULT_PLATFORM=metal ./out/asan/angle_end2end_tests --gtest_filter="StaleFormatIDHeapOverflowRead"
  3. OOB write: MTL_DEBUG_LAYER=1 ANGLE_DEFAULT_PLATFORM=metal ./out/asan/angle_end2end_tests --gtest_filter="StaleImageSizeHeapOverflowWrite"

OOB READ ASAN stack traces attached: StaleFormatIDHeapOverflowRead.txt OOB Write AGX Assert attached: StaleImageSizeHeapOverflowWrite.txt

SUGGESTED FIX

Attached angle-fix-stale-imagedef.diff addresses the root cause.

VERSION Chrome Version: 147.0.7727.50 (stable), 148.0.7769.0 (canary) Operating System: macOS ARM64

ATTACHMENTS

  • poc-heap-leak.html — live cross-origin URL leak PoC
  • poc-heap-leak.mp4 — video demonstration
  • poc-heap-leak.png — screenshot
  • angle-texturetest.diff — ANGLE test for ASAN reproduction
  • StaleFormatIDHeapOverflowRead.txt — ASAN stack trace
  • StaleImageSizeHeapOverflowWrite.txt — ASAN stack trace
  • angle-fix-stale-imagedef.diff — suggested fix

CREDIT INFORMATION Reporter credit: Thomas Guillem [email protected]

The original report as published on the Chromium issue tracker, by Thomas Guillem. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 3 min read.

Context

ANGLE is the translation layer Chrome uses to turn WebGL and WebGL2 calls into native graphics API calls. On macOS that native API is Metal, and the work happens in the GPU process, which composites every tab. Because the GPU process handles all tabs at once, its heap holds data belonging to pages the attacker does not control: URL strings from resource loading, pointers, and metadata.

The report describes a heap buffer overflow in ANGLE's Metal texture handling. A WebGL2 page can read GPU process heap memory through readPixels, leaking cross-origin URLs and other data from other tabs. The leak is sustained at roughly 35 MB/s, needs no user interaction, and works on a default Chrome configuration.

Setup

  • Target: Google Chrome on macOS ARM64, both stable and canary.
  • Versions named in the report: Chrome 147.0.7727.50 (stable) and 148.0.7769.0 (canary).
  • No account, extension or flag is required. The report states the default Chrome configuration is enough.
  • For the ASAN reproduction, the researcher built ANGLE's angle_end2end_tests with ASAN on macOS after applying a test diff.

The report lists these attachments:

  • poc-heap-leak.html, the live cross-origin URL leak PoC
  • poc-heap-leak.mp4, a video demonstration
  • poc-heap-leak.png, a screenshot
  • angle-texturetest.diff, an ANGLE test for ASAN reproduction
  • StaleFormatIDHeapOverflowRead.txt, an ASAN stack trace
  • StaleImageSizeHeapOverflowWrite.txt, an ASAN stack trace
  • angle-fix-stale-imagedef.diff, a suggested fix

Finding it

The researcher's observation is that the GPU process composites all tabs, so URL strings from resource loading end up on its heap. Stale ANGLE texture views then expose that memory to JavaScript through readPixels. The report does not describe how the stale views were first noticed, only the mechanism and its result.

Exploitation

Step 1: open the PoC

Open the attached poc-heap-leak.html in official Google Chrome (stable or canary) on macOS.

Step 2: load other tabs

Open other tabs with any websites, for example reddit.com. Those tabs are the source of the data that will be leaked.

Step 3: watch the PoC page

Leaked URL fragments, pointers and strings appear within seconds. The report says the PoC tries multiple exploitation strategies to cover different ANGLE internal layouts.

The report references a video (poc-heap-leak.mov in the reproduction section, poc-heap-leak.mp4 in the attachment list) and a screenshot (poc-heap-leak.png) as demonstrations of the leak. Neither is reproduced here.

Step 4: reproduce the out-of-bounds access under ASAN

The same root cause also produces out-of-bounds read and write, confirmable with ASAN. The HTML PoC does not trigger ASAN, because ASAN cannot catch Metal-managed memory issues. To reproduce under ASAN:

  1. Apply the attached angle-texturetest.diff and build angle_end2end_tests with ASAN on macOS.
  2. Run the OOB read test:
Bash
ANGLE_DEFAULT_PLATFORM=metal ./out/asan/angle_end2end_tests --gtest_filter="*StaleFormatIDHeapOverflowRead*"
  1. Run the OOB write test:
Bash
MTL_DEBUG_LAYER=1 ANGLE_DEFAULT_PLATFORM=metal ./out/asan/angle_end2end_tests --gtest_filter="*StaleImageSizeHeapOverflowWrite*"

The stack traces from these runs are attached as StaleFormatIDHeapOverflowRead.txt and StaleImageSizeHeapOverflowWrite.txt; the write run is described as an AGX assert.

Root cause

The defect is in TextureMtl::retainImageDefinitions() in TextureMtl.mm. When a texture is redefined, by changing its format or size, redefineImage() calls deallocateNativeStorage(keepImages=true), which saves stale image views on all mip levels. Those views reference old Metal texture allocations whose backing memory contains recycled GPU data from other tabs' compositor textures. Reading through the stale views therefore returns memory the page should never see.

The commit 6d8b704e2a ("Remove TextureMtl::mFormat"), cherry-picked to M146 and M147, does not fix this. The stale image definitions survive because getImageDefinition() only updates when imageDef.image is null, and retained images are non-null.

Impact

Any WebGL2 page on macOS can continuously read GPU process heap memory. The report names cross-origin URLs, pointers and metadata from other tabs as the leaked data, at roughly 35 MB/s sustained, with no user interaction and on a default Chrome configuration. The same root cause also produces out-of-bounds read and write, demonstrated under ASAN with the ANGLE end-to-end tests.

Fix

The report attaches angle-fix-stale-imagedef.diff, which it says addresses the root cause. The report does not describe the contents of that diff, so the exact change is not stated here. The commit that removed TextureMtl::mFormat is explicitly not a fix.

Variants to test

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Chrome, like every modern browser, can draw 3D graphics inside a web page. Websites use a set of commands called WebGL and WebGL2 to ask the browser to draw things. Chrome does not talk to the graphics card directly for this; it hands the work to a helper program called ANGLE, which translates those web commands into the language the operating system's graphics system understands. On a Mac, that language is called Metal.

Chrome also splits its work into separate processes. A process is an isolated running program with its own private memory. One of these processes, the GPU process, is responsible for drawing and combining (compositing) everything you see, including every tab you have open. Because it serves all tabs at once, its memory holds small pieces of data belonging to pages you did not write and may not trust, such as the web addresses (URLs) those tabs loaded.

The researcher found that a normal web page using WebGL2 could reach into that shared memory and read it back. The page does not need you to click anything, install anything, or change any settings. It just needs to be open, and it can keep pulling out other tabs' data at roughly 35 megabytes per second. The report calls this a heap buffer overflow. The "heap" is the area of memory a program uses for data it creates while running; an "overflow" here means the program reads or writes past the intended boundary of a chunk of that memory, so it touches data that belongs to something else.

Context

To follow the rest of this article you only need a few ideas:

  • WebGL / WebGL2: browser features that let a web page draw 3D graphics using the graphics card. Think of them as a remote control a website can use to ask the graphics hardware to draw.
  • ANGLE: the translation layer inside Chrome. It takes the web page's drawing instructions and rewrites them into the native graphics commands of the operating system. On macOS that native system is Metal. Think of ANGLE as an interpreter sitting between a tourist and a local: the tourist speaks WebGL, the local speaks Metal, and ANGLE translates.
  • GPU process: a separate Chrome process that does the drawing and combines all tabs into what you see on screen. Because it handles every tab, its memory is shared ground.
  • Heap: the pool of memory a running program uses for data it creates as it works. Data from many different tabs can end up in the same heap.
  • readPixels: a WebGL command that copies pixels from the graphics memory back into a form JavaScript can read. Normally a page uses it to read back an image it just drew. Here it is the exit door through which leaked memory leaves.
  • Cross-origin: web content from one site (one "origin") is normally not allowed to read content from another site. A leak of cross-origin data means one site can see data that belongs to a different site, which the browser is supposed to prevent.

The report describes a heap buffer overflow in ANGLE's handling of Metal textures. A texture is the graphics-memory equivalent of an image: a block of pixel data the graphics card can draw with. A WebGL2 page can read GPU process heap memory through readPixels, leaking cross-origin URLs and other data from other tabs. The leak is sustained at roughly 35 MB/s, needs no user interaction, and works on a default Chrome configuration.

Setup

  • Target: Google Chrome on macOS ARM64 (Apple Silicon Macs), both the stable and canary release channels. "Stable" is the normal release everyone gets; "canary" is the experimental build Google uses to test upcoming changes.
  • Versions named in the report: Chrome 147.0.7727.50 (stable) and 148.0.7769.0 (canary).
  • No account, extension or flag is required. The report states the default Chrome configuration is enough. A "flag" here means a hidden browser setting you would normally have to switch on manually.
  • For the ASAN reproduction, the researcher built ANGLE's angle_end2end_tests with ASAN on macOS after applying a test diff. ASAN stands for AddressSanitizer, a tool that watches a program's memory while it runs and shouts when the program reads or writes outside the area it was given. A "diff" is a file describing changes to source code, like a patch.

The report lists these attachments:

  • poc-heap-leak.html, the live cross-origin URL leak PoC. "PoC" means proof of concept: a small demonstration that the bug is real.
  • poc-heap-leak.mp4, a video demonstration
  • poc-heap-leak.png, a screenshot
  • angle-texturetest.diff, an ANGLE test for ASAN reproduction
  • StaleFormatIDHeapOverflowRead.txt, an ASAN stack trace. A stack trace is the list of function calls a program was in when something went wrong, like a breadcrumb trail.
  • StaleImageSizeHeapOverflowWrite.txt, an ASAN stack trace
  • angle-fix-stale-imagedef.diff, a suggested fix

Finding it

The researcher's observation is that the GPU process composites all tabs, so URL strings from resource loading end up on its heap. "Resource loading" means a tab fetching things like pages, images or scripts; the addresses of those resources are text strings, and those strings land in the shared GPU process memory. Stale ANGLE texture views then expose that memory to JavaScript through readPixels. "Stale" means out of date: a leftover reference to memory that has since been reused for something else. The report does not describe how the stale views were first noticed, only the mechanism and its result.

Exploitation

Step 1: open the PoC

Open the attached poc-heap-leak.html in official Google Chrome (stable or canary) on macOS. This page is the attacker's page: it is the one that will try to read memory it should not see. You open it like any other web page.

Step 2: load other tabs

Open other tabs with any websites, for example reddit.com. Those tabs are the source of the data that will be leaked.

Step 3: watch the PoC page

Leaked URL fragments, pointers and strings appear within seconds. A "pointer" is a number that records where something sits in memory; seeing pointers in the output shows the page is reading raw memory rather than a clean image. The report says the PoC tries multiple exploitation strategies to cover different ANGLE internal layouts.

The report references a video (poc-heap-leak.mov in the reproduction section, poc-heap-leak.mp4 in the attachment list) and a screenshot (poc-heap-leak.png) as demonstrations of the leak. Neither is reproduced here.

Step 4: reproduce the out-of-bounds access under ASAN

The same root cause also produces out-of-bounds read and write, confirmable with ASAN. "Out-of-bounds" means reaching outside the memory area the program was supposed to use. A read means looking at that memory; a write means changing it, which is more dangerous because it can corrupt data. The HTML PoC does not trigger ASAN, because ASAN cannot catch Metal-managed memory issues: the graphics driver manages that memory itself, outside the part ASAN watches. To reproduce under ASAN:

  1. Apply the attached angle-texturetest.diff and build angle_end2end_tests with ASAN on macOS. This means taking ANGLE's own test suite, adding the researcher's test case, and compiling it with the memory-watching tool switched on.
  2. Run the OOB read test:
Bash
ANGLE_DEFAULT_PLATFORM=metal ./out/asan/angle_end2end_tests --gtest_filter="*StaleFormatIDHeapOverflowRead*"

Line by line:

  • ANGLE_DEFAULT_PLATFORM=metal sets an environment variable before the program starts. An environment variable is a named setting passed to a program from outside. This one tells ANGLE to use the Metal backend, that is, to translate into Metal commands.
  • ./out/asan/angle_end2end_tests is the path to the compiled test program. ./ means "in the current folder", and out/asan/ is the build output folder where the ASAN-enabled build was placed.
  • --gtest_filter="*StaleFormatIDHeapOverflowRead*" tells the test runner to run only the test whose name matches that pattern. The asterisks are wildcards meaning "anything before and after". The name describes the scenario: a stale format ID causing a heap overflow on read.
  1. Run the OOB write test:
Bash
MTL_DEBUG_LAYER=1 ANGLE_DEFAULT_PLATFORM=metal ./out/asan/angle_end2end_tests --gtest_filter="*StaleImageSizeHeapOverflowWrite*"

Line by line:

  • MTL_DEBUG_LAYER=1 switches on Metal's debug layer, an extra checking mode provided by Apple's graphics system that reports suspicious behaviour. The 1 means "on".
  • ANGLE_DEFAULT_PLATFORM=metal again selects the Metal backend.
  • ./out/asan/angle_end2end_tests is the same test program as before.
  • --gtest_filter="*StaleImageSizeHeapOverflowWrite*" runs only the test for a stale image size causing a heap overflow on write.

The stack traces from these runs are attached as StaleFormatIDHeapOverflowRead.txt and StaleImageSizeHeapOverflowWrite.txt; the write run is described as an AGX assert. An "assert" is a safety check inside a program that stops it when something impossible happens; AGX is the name of Apple's GPU driver component, so the assert fired inside the graphics driver.

Root cause

The defect is in TextureMtl::retainImageDefinitions() in TextureMtl.mm. TextureMtl.mm is a source file in ANGLE; the .mm ending means it is written in a language that can mix C++ with Apple's Objective-C. The function name means "keep the image definitions for a Metal texture".

When a texture is redefined, by changing its format or size, redefineImage() calls deallocateNativeStorage(keepImages=true), which saves stale image views on all mip levels. A "mip level" is a smaller or differently sized copy of a texture used when drawing objects at different distances; textures normally have several. "Deallocate" means free the memory, but here the keepImages=true argument says "free the storage but keep the image references". Those saved references are the stale views. They point at old Metal texture allocations whose backing memory contains recycled GPU data from other tabs' compositor textures. "Recycled" means the memory was freed and then handed out again for a different purpose, so the old reference now points at someone else's data. Reading through the stale views therefore returns memory the page should never see.

The commit 6d8b704e2a ("Remove TextureMtl::mFormat"), cherry-picked to M146 and M147, does not fix this. A "commit" is a recorded change to source code, identified by a hash like 6d8b704e2a; "cherry-picked" means that change was copied from one development branch onto another. M146 and M147 are Chrome milestone numbers, the internal version series. The stale image definitions survive because getImageDefinition() only updates when imageDef.image is null, and retained images are non-null. In plain words: the code that is supposed to refresh the reference only does so when there is no image at all; because the old image reference is still there, the refresh never happens and the stale reference stays.

Impact

Any WebGL2 page on macOS can continuously read GPU process heap memory. The report names cross-origin URLs, pointers and metadata from other tabs as the leaked data, at roughly 35 MB/s sustained, with no user interaction and on a default Chrome configuration. "Metadata" means data about data, such as sizes, types or timestamps. The same root cause also produces out-of-bounds read and write, demonstrated under ASAN with the ANGLE end-to-end tests.

Fix

The report attaches angle-fix-stale-imagedef.diff, which it says addresses the root cause. The report does not describe the contents of that diff, so the exact change is not stated here. The commit that removed TextureMtl::mFormat is explicitly not a fix.

Variants to test

These are follow-up ideas: other places the same kind of bug might appear, and what a positive result would look like.

  • Other ANGLE backends: the report only covers Metal on macOS. A backend is the native graphics system ANGLE translates into; other systems exist on other platforms. A positive result on another backend would be a readPixels call returning strings or pointers that belong to another tab.
  • Other texture redefinition paths: the bug is triggered by a format or size change that calls redefineImage(). Any WebGL2 sequence that redefines a texture and then reads it back is worth trying; a positive result is leaked data appearing in the read-back buffer.
  • Mip levels: the stale views are saved on all mip levels. Testing reads from non-zero mip levels may show the same leak; a positive result is cross-origin data returned from a mip level other than zero.
  • Other compositor data: the report names URL strings, pointers and metadata. Looking for other per-tab data in the leaked buffer, such as form values or document titles, would confirm the breadth of the leak.
  • ASAN coverage: the HTML PoC does not trigger ASAN because of Metal-managed memory. Building the end-to-end tests with ASAN and adding cases modelled on StaleFormatIDHeapOverflowRead and StaleImageSizeHeapOverflowWrite is the way to catch the memory-safety side; a positive result is an ASAN report or a Metal debug layer assert.

Glossary

  • ANGLE: the translation layer inside Chrome that turns WebGL and WebGL2 drawing commands into the native graphics commands of the operating system.
  • ASAN (AddressSanitizer): a tool that watches a running program's memory and reports reads or writes outside the area the program was given.
  • Assert: a safety check inside a program that stops it when something impossible happens.
  • Backend: the native graphics system that ANGLE translates into, such as Metal on macOS.
  • Canary: an experimental Chrome build used to test upcoming changes before they reach everyone.
  • Cherry-pick: copying a recorded code change from one development branch onto another.
  • Commit: a recorded change to source code, identified by a hash.
  • Compositing: combining the contents of all tabs into the single image you see on screen.
  • Cross-origin: content from one website being able to read content from a different website, which browsers normally prevent.
  • Diff: a file describing changes to source code, like a patch.
  • Environment variable: a named setting passed to a program from outside when it starts.
  • GPU process: the separate Chrome process that does drawing and compositing for all tabs.
  • Heap: the pool of memory a running program uses for data it creates while working.
  • Heap buffer overflow: reading or writing past the intended boundary of a chunk of heap memory, touching data that belongs to something else.
  • Metal: Apple's native graphics system on macOS.
  • Metadata: data about data, such as sizes, types or timestamps.
  • Mip level: a smaller or differently sized copy of a texture used when drawing objects at different distances.
  • Out-of-bounds: reaching outside the memory area a program was supposed to use.
  • Pointer: a number that records where something sits in memory.
  • PoC (proof of concept): a small demonstration that a bug is real.
  • Process: an isolated running program with its own private memory.
  • readPixels: a WebGL command that copies pixels from graphics memory back into a form JavaScript can read.
  • Recycled memory: memory that was freed and then handed out again for a different purpose.
  • Resource loading: a tab fetching things like pages, images or scripts.
  • Stable: the normal Chrome release everyone gets.
  • Stack trace: the list of function calls a program was in when something went wrong.
  • Stale: out of date; a leftover reference to memory that has since been reused.
  • Texture: the graphics-memory equivalent of an image, a block of pixel data the graphics card can draw with.
  • URL: the address of a resource on the web.
  • VRP (Vulnerability Reward Program): Google's programme that pays researchers for finding and reporting security bugs.

More by Thomas Guillem

View all

1 more disclosed report, 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.