Skip to content
RCE Write-up Advanced

Zero To Calc In Six Days Inside Xbow Chrome Full Chain

A Chrome full-chain exploit combined a Maglev deoptimization bug that let JavaScript read and write across V8's pointer-compression cage, an animated-WebP time-of-check/time-of-use bug that gave one chosen native write outside the cage, and a Crashpad race that turned a failed read into a heap overflow in the unsandboxed crash handler. Together these took JavaScript in an ordinary tab to code execution on the host outside the renderer sandbox.

Brendan Dolan-Gavitt Follow

Published on xbow.com

Bounty$250,000 View original

The final chain combined a V8 compiler bug, an animated-WebP decoder bug, and a memory-safety bug in Crashpad. Together they turned JavaScript execution in an ordinary Chrome tab into code execution outside the renderer sandbox.

Brendan Dolan-Gavitt, on xbow.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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. 20 min read.

Context

This is an account of how XBOW built a full Chrome exploit chain in six days, from Sunday 2 August to Friday 7 August, and how Google awarded it the first $250,000 Chrome full-chain reward under the VRP rules introduced in April 2026. The target is Chrome itself: the JavaScript engine (V8), the image decoding stack in Blink, and the out-of-process Crashpad crash handler on Windows. The chain turns JavaScript execution in an ordinary tab into code execution outside the renderer sandbox, and the demonstration launches Calculator from a web page loaded in signed Chrome Beta.

For scale: before LLMs, a Chrome full chain would take a team of four around six to nine months, and XBOW's first submission took two months. The awarded chain took six days. Reconstructing usage from the archived Codex logs puts the campaign at roughly $40,000 in API charges.

The chain crosses two boundaries, in three vulnerability stages:

Stage Vulnerability Capability gained
JavaScript engine Maglev reused a mutable boxed number during deoptimization Read and write access throughout V8's pointer-compression cage
V8 sandbox Animated WebP combined cached geometry with changed image bytes One chosen native write outside the cage
Renderer sandbox Crashpad treated a failed read from a supposedly frozen renderer as a stable observation Code execution in the unsandboxed crash handler

The two boundaries are worth stating precisely. V8 first contains JavaScript-engine corruption inside an in-process sandbox: most JavaScript heap objects live in a reserved 4 GiB region, and many pointers are represented as offsets within that region, with additional protection for references to native objects and executable code. A V8 memory corruption bug can therefore give extensive control inside the cage without immediately yielding native code execution. Chrome then contains the renderer itself inside an operating-system process sandbox, so even native code execution in the renderer does not freely reach the rest of the machine.

Setup

Rather than asking one agent to produce an exploit end to end, the work was split into parallel campaigns with narrower goals: broad vulnerability search, V8 memory corruption, a V8 sandbox escape, a renderer sandbox escape, and integration. AI agents using OpenAI's gpt-5.6-sol model searched source code, tested hypotheses, built proofs of concept and developed exploit stages. XBOW researchers chose targets, supplied context, challenged results, redirected searches and decided which components to join. Backup routes were developed for each stage, and each stage was given a clean interface so one component could be replaced without rebuilding the rest.

The exploit was built against Windows, and the final stage relies on Windows-specific behaviour: NtSuspendProcess(), the THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE thread creation flag, and Windows ASLR semantics. On the CET-capable systems tested, the handler used a user shadow stack and CFG restricted indirect calls. The handler-side work also had to cope with Chrome's rapid release schedule, so the chain validates the exact build using the image timestamp and size before applying build-specific offsets.

Finding it

For the V8 sandbox escape, the team made a conscious decision not to attack the sandbox itself. Instead they reasoned about its threat model and looked for things that were "allowed" but seemed likely to be problematic. The focus was on obligations the V8 sandbox threat model imposes on downstream consumers: all such code must guard against the capabilities an in-cage attacker has, such as concurrent modification of in-cage objects and swaps between pointers of the same type.

The vulnerability they found is exactly that kind of case. WebCodecs can give an ArrayBuffer to ImageDecoder by transferring it. Under ordinary JavaScript semantics, transfer detaches the old buffer and its views, so Blink can wrap the backing store without making a copy and treat the bytes as its exclusive input. But the V8 sandbox has a different threat model: once an attacker controls memory inside the cage, V8 assumes the attacker can corrupt objects and bookkeeping there, and it does not promise to make a detached ArrayBuffer semantically immutable against that attacker. Enforcing that property would require moving or copying the backing store, or adding checks to hot paths that the sandbox was designed to avoid.

Exploitation

Stage 1: mutating the immutable

The first vulnerability is in Maglev, V8's mid-tier optimizing compiler, and it concerns deoptimization. Optimized code operates under assumptions about the values and objects it handles; when an assumption stops being true at runtime, V8 must reconstruct ordinary JavaScript objects and continue in less specialized code. Some of those objects never existed in memory while the optimized code was running, because the compiler represented them only as values, so deoptimization must materialize them.

A JavaScript object field with a double representation needs a HeapNumber when V8 materializes the object. The vulnerable Maglev path created one old-space HeapNumber for the virtual value and stored the object itself in the deoptimization literal array:

C++
void BuildHeapNumber(const VirtualObject* vobject) {
  DCHECK_EQ(vobject->object_type(), vobj::ObjectType::kHeapNumber);
  ValueNode* value_node = vobject->get(offsetof(HeapNumber, value_));
  return BuildHeapNumber(value_node->Cast<Float64Constant>()->value());
}

void BuildHeapNumber(Float64 number) {
  DirectHandle<Object> value =
      local_isolate_->factory()->NewHeapNumberFromBits<AllocationType::kOld>(
          number.get_bits());
  translation_array_builder_->StoreLiteral(GetDeoptLiteral(*value));
}

The other half of the bug was in the generic materializer. For a field marked kStoreHeapObject, it wrote the object held by the translated slot directly into the reconstructed owner:

C++
if (marker == kStoreHeapObject) {
  DirectHandle<HeapObject> field_value = slot->storage();
  WRITE_FIELD(*object_storage, offset, *field_value);
  WRITE_BARRIER(*object_storage, offset, *field_value);
  continue;
}

The first block turned a mutable object into a literal. The second copied that object's identity, not merely its numeric value, into each reconstructed owner. With nested activations, V8 could therefore create distinct JavaScript objects whose double fields shared one mutable HeapNumber. That violated a compiler invariant stated elsewhere in V8: HeapNumberRef is only created for immutable HeapNumbers. The vulnerable path made a mutable number look like exactly the sort of immutable constant the compiler was allowed to reuse.

The exploit used the disagreement against Array.prototype.at(). One compiler observation saw a safe index and approved an in-bounds access, while another observation of the nominally same constant supplied the actual load offset. Changing one object's double field could therefore change the offset used by optimized code without invalidating the earlier bounds reasoning.

Three optimized load functions were enough to disclose nearby V8 pointers, recover the layout of a packed-double array, and obtain a reference to an attacker-described array. That forged array was then used as a bootstrap to rewrite the metadata of a real Uint8Array, extending ordinary indexed access across V8's entire 4 GiB cage.

Finding stable object addresses required one more step. The exploit stored a reference in V8's large-object space to whichever JavaScript object it needed to locate. V8 itself updated that reference during garbage collection, so the exploit could recover a current in-cage address without pinning movable objects. At this point the exploit had reliable memory access from JavaScript throughout the V8 sandbox.

Stage 2: two WebPs diverge in a V8 cage

In the full chain, the exploit used an in-cage write supplied by the first stage to remove a live Uint8Array view from its JSArrayBuffer's detach-notification chain. When ImageDecoder transferred the buffer, V8 detached the views it still knew about. Optimized writes through the omitted view remained usable, so Blink believed it owned the bytes exclusively while the attacker could still change them.

That broken ownership assumption manifested in WebP decoding as a time of check / time of use (TOCTOU) vulnerability. The proof of concept placed two same-length, independently valid animated WebP files in the same backing store:

  1. WebP A described a 64-by-64 canvas. Its first frame was 48 pixels wide, started at x = 16, and was 64 pixels high.
  2. ImageDecoder transferred the buffer, and its persistent demuxer cached A's frame rectangle and payload location.
  3. The surviving view replaced the bytes with WebP B, whose current payload decoded a full 64-by-64 frame.
  4. The decoder read compressed data from B but described the output buffer with the frame geometry cached from A.

WEBPImageDecoder::DecodeSingleFrame() initialized the external buffer's stride and size from the cached rectangle, then advanced the output pointer independently to that rectangle's top-left pixel:

C++
const gfx::Rect& frame_rect = buffer.OriginalFrameRect();
if (!decoder_) {
  // Set up decoder_buffer_ with output mode
  if (!WebPInitDecBuffer(&decoder_buffer_)) {
    return SetFailed();
  }
  decoder_buffer_.colorspace = RGBOutputMode();
  decoder_buffer_.u.RGBA.stride =
      Size().width() * sizeof(ImageFrame::PixelData);
  decoder_buffer_.u.RGBA.size =
      decoder_buffer_.u.RGBA.stride * frame_rect.height();
  decoder_buffer_.is_external_memory = 1;
  decoder_ = WebPINewDecoder(&decoder_buffer_);
  if (!decoder_) {
    return SetFailed();
  }
}
decoder_buffer_.u.RGBA.rgba = reinterpret_cast<uint8_t*>(
    buffer.GetAddr(frame_rect.x(), frame_rect.y()));

The next statement passed that descriptor to WebPIUpdate().

For the ASAN reproducer, the bitmap stride was 256 bytes and the complete allocation was 16,384 bytes. GetAddr(16, 0) advanced the output pointer by 64 bytes, leaving 16,320 bytes, which was exactly enough for A's cached rectangle:

Text
256 * (64 - 1) + 48 * 4 = 16,320

Blink nevertheless advertised all 16,384 bytes, so B's 64-pixel-wide payload passed libwebp's external-buffer size check:

Text
256 * (64 - 1) + 64 * 4 = 16,384

WebPIUpdate() wrote the pixels before Blink compared the decoded dimensions with the cached rectangle. The decoded footprint extended 64 bytes past the native SkBitmap allocation, and ASAN caught a 256-byte conversion write starting at the first byte beyond the allocation. Both WebPs were valid on their own; the unsafe state existed only because Blink combined A's cached geometry with B's current bytes.

From a heap overflow to one chosen native write

The production exploit used the same bug with geometry selected for PartitionAlloc. A two-pixel frame started at x = 124 on a 126-pixel canvas. The 504-byte pixel allocation and a 496-byte WebPIDecoder occupied adjacent slots in the 512-byte bucket. Advancing the output pointer by 496 bytes left only eight bytes, while the decoder still believed it had 504.

The pixel write replaced the live decoder's native fields with pointers to two WebPDecBuffer records already staged in a native network buffer. When decode completed, the genuine WebPCopyDecBufferPixels() routine followed the false source and destination descriptions. It copied one chosen 64-bit value to one chosen native address. That single write was the entire interface between the image exploit and the next stage.

The WASM/WCP handoff

Stage 2 produced one selected native write outside the V8 cage. The chain still needed to turn that write into arbitrary native code execution without modifying a protected code-pointer entry.

A hot WebAssembly function resolves its target through V8's process-wide Wasm Code Pointer table. The exploit changed the writable base used to locate that table and supplied a replacement entry with the correct type.

They adapted an island-hopping technique from their previous full chain, which linked instruction fragments encoded in JIT double constants with short jumps. This time they used 13 64-bit immediates in Liftoff-generated Wasm code and a Windows loader ABI.

After WebPCopyDecBufferPixels() changed the Wasm Code Pointer table base, the next Wasm call passed the signature check and resolved the replacement entry. The entry pointed to a jmp rcx instruction in chrome.dll; RCX pointed to the first instruction island. Each island contributed up to six bytes of the loader, followed by a short jump over the compiler-generated instructions before the next island. Together, the 13 islands formed a roughly 70-byte loader. It allocated writable memory, copied the Crashpad payload, changed the mapping to executable, and called it.

Stage 3: the renderer refuses to chill out

Chrome's Crashpad handler runs outside the renderer sandbox. When it receives a snapshot request, it suspends the renderer and reads data structures from the renderer's address space. The handler creates ScopedProcessSuspend, which calls NtSuspendProcess(), before telling the snapshot machinery that the target is suspended.

In the revision immediately before the fix, one of Crashpad's remote-memory helpers, ProcessMemoryWin::ReadUpTo(), contained the following recovery path:

C++
SIZE_T size_out = 0;
BOOL success = ReadProcessMemory(
    handle_, reinterpret_cast<void*>(address), buffer, size, &size_out);
if (success)
  return base::checked_cast<ssize_t>(size_out);

if (GetLastError() == ERROR_PARTIAL_COPY) {
  // If we can not read the entire section, perform a short read of the first
  // page instead. This is necessary to support ReadCString().
  size_t short_read =
      base::GetPageSize() - (address & (base::GetPageSize() - 1));
  success = ReadProcessMemory(handle_,
                              reinterpret_cast<void*>(address),
                              buffer,
                              short_read,
                              &size_out);
  if (success)
    return base::checked_cast<ssize_t>(size_out);
}

At first glance the error appears to be simply that short_read is not limited to size. But the calculation was safe under the assumption Crashpad believed it had established: that the suspended process's address space could not change. The fallback was intended for a read that begins in one readable page and crosses into an inaccessible page. If a request for size bytes crosses that boundary, the number of bytes remaining in the first page must be smaller than size, so retrying only those bytes fits in the caller's destination buffer.

With stable page protections, there are three ordinary cases:

  • A request contained in a readable page succeeds immediately.
  • A request contained in an inaccessible page fails again when retried.
  • A request crossing from a readable page into an inaccessible page produces a retry shorter than the original request.

The code therefore used the first failure as evidence about the geometry of the source mapping. That inference stopped being true when the renderer could change the mapping between the two reads.

Defeating the freeze

Windows allows a thread created with the THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE flag to continue running across NtSuspendProcess(). Before requesting a snapshot, the native renderer payload created such a thread. The exploit used flags 0x42: BYPASS_PROCESS_FREEZE together with SKIP_THREAD_ATTACH. The write-up notes that exactly why Windows has this feature remains a mystery, but it provides the essential assumption violation by letting the renderer modify page protections between the read and its retry.

While Crashpad treated the renderer as suspended, that thread repeatedly changed attacker-controlled source pages between PAGE_NOACCESS and PAGE_READWRITE. The winning sequence was:

  1. Crashpad issued a small read wholly contained within one source page.
  2. The page was inaccessible, so ReadProcessMemory() returned ERROR_PARTIAL_COPY.
  3. Crashpad interpreted that failure as evidence that the request had crossed a page boundary.
  4. The freeze-exempt renderer thread made the page readable.
  5. Crashpad retried all the way to the end of the page, copying more data than its caller had requested.

For the call site used by the exploit, the numbers were:

Text
requested length         = 0x0b8
source offset in page    = 0x0e98
computed retry length    = 0x1000 - 0x0e98 = 0x168
destination heap slot    = 0x0c0
overwrite into next slot = 0x168 - 0x0c0 = 0x0a8

The original 0xb8-byte request ended well before the page boundary. It could produce the required error only because the whole page was inaccessible at that instant. Once the renderer made the page readable, the 0x168-byte retry succeeded and overran the allocation.

To make the race reliable, the payload supplied 48 candidate reads in one snapshot request. One freeze-exempt worker cycled their pages between readable and inaccessible states. The other helper threads remained parked, keeping the thread population, and the Crashpad allocations associated with it, stable.

Rewiring a live Crashpad writer

The oversized retry could corrupt only the allocation immediately after its 0xc0 read-buffer slot. The payload arranged for that allocation to contain a live SnapshotMinidumpMemoryWriter, which Crashpad would later use to read a memory range from the renderer and send the bytes through its output path.

To create that adjacency, the payload exposed a readable process and loader graph containing memory ranges in a chosen order. Crashpad allocated a writer for each range, then coalesced contained ranges and freed their writers. The ordering left one freed 0xc0 writer slot immediately before a writer that remained live; the next 0xb8-byte read buffer reused the freed slot. Writers for threads, TEBs and readable stacks affected the allocation sequence, so the payload counted those inputs and adjusted the number of ranges to keep the same bucket position.

On the CET-capable systems they tested, the handler used a user shadow stack, while CFG restricted indirect calls to approved targets. To avoid running afoul of these mitigations, they used a normal call and return sequence and directed the substituted virtual calls to existing CFG-valid functions.

The vulnerable retry-read rewrote the first 0xa8 bytes of the live writer. At offset 0x00 it wrote back the SnapshotMinidumpMemoryWriter vtable; at 0x70 it set the writer's state to writable; and at 0x78 it replaced the MemorySnapshot::Delegate vtable with a shifted CopyingOutputStreamAdaptor vtable, so the delegate callback entered the adaptor's buffered-write path. The overwrite ended immediately before memory_snapshot_ at offset 0xa8.

Crashpad later entered the writer's WriteObject() through its first vtable. WriteObject() called Read() through the preserved snapshot pointer, which read a controlled 0xd0-byte range from the renderer. The callback through the second vtable copied those bytes to a writable address in chrome.exe and treated the same address as the adaptor's underlying output stream.

The copied bytes constructed both a one-method output stream and a fallback-launcher object. When the adaptor flushed, the stream's virtual Write() entered Chrome's FallbackUnhandledExceptionFilter(), a CFG-valid target. The bytes also pointed Chrome's fallback-launcher global at the copied object and supplied its command and startup fields. The filter called FallbackCrashHandlerLauncher::LaunchAndWaitForHandler(), which passed cmd /k calc.exe to CreateProcessW. These calls maintained the shadow stack.

Because Windows ASLR randomizes modules once rather than for each process, a consequence of the decision to use relocations rather than PIC/PIE code, it mapped chrome.exe at the same address in both the renderer and the handler. The renderer payload could therefore derive the handler addresses from the image base in its own process, as well as validating the exact build using the image timestamp and size in order to apply any build-specific offsets.

Swapping out the middle

With everyone, including Google, pointing LLMs at codebases like Chrome, bug collisions are a major risk. The exploit was therefore designed with modular stages and backup vulnerabilities for each piece. This paid off when the first version of the chain, which used a Gin vulnerability for its V8 sandbox escape, turned out to be a duplicate of issue 542670566. After a very stressful few hours they replaced the Gin-based V8 escape with the animated WebP stage described above, and Google confirmed that the chain popped calc.

Root cause

The three vulnerabilities share a theme: each is about mutating something thought to be immutable.

In stage 1, a HeapNumber was treated as an immutable literal during deoptimization even though it was a mutable object field. Maglev stored the object in the deoptimization literal array, and the generic materializer copied the object's identity into each reconstructed owner, so distinct JavaScript objects ended up sharing one mutable box. That broke the invariant that HeapNumberRef is only created for immutable HeapNumbers, and the disagreement between two compiler observations of the same constant let the exploit change a load offset without invalidating earlier bounds reasoning.

In stage 2, a transferred WebP buffer was treated as immutable. The V8 sandbox does not promise to make a detached ArrayBuffer semantically immutable against an in-cage attacker, because enforcing that would require moving or copying the backing store or adding checks to hot paths. Blink assumed it could trust the transfer, cached the frame geometry from WebP A, and then decoded the bytes of WebP B against that cached geometry. The decoder advertised the full allocation to libwebp while advancing the output pointer to the cached rectangle's top-left pixel, so libwebp's external-buffer size check passed and the write extended past the native allocation.

In stage 3, the page protection of a supposedly frozen process was treated as immutable. ProcessMemoryWin::ReadUpTo() used the first ERROR_PARTIAL_COPY as evidence about the geometry of the source mapping, which is valid only if the mapping cannot change between the two reads. A thread created with THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE keeps running across NtSuspendProcess(), so the renderer could flip pages between PAGE_NOACCESS and PAGE_READWRITE between the failed read and the retry, making the retry longer than the caller's buffer.

Existing defences did not stop the chain. The V8 sandbox limits in-cage corruption but deliberately does not enforce immutability of detached buffers. The renderer sandbox keeps the renderer away from the rest of the machine, but the Crashpad handler runs outside it and reads renderer memory. CET shadow stacks and CFG were present on the tested systems, and the exploit worked around them by using a normal call and return sequence and directing substituted virtual calls to existing CFG-valid functions. Windows ASLR randomising modules once rather than for each process made the handler addresses derivable from the renderer.

Impact

An attacker who can run JavaScript in a Chrome tab can, with this chain, achieve code execution outside the renderer sandbox on the host. The demonstration launches Calculator from a web page in signed Chrome Beta. The chain requires all three stages to work together, and the middle stage was replaceable: the original Gin-based V8 escape was a duplicate and was swapped for the WebP stage. The write-up notes that six days and $40k is not a lot of time or money when the payoff is a Chrome chain, but that this does not mean anyone can get a Chrome chain with that amount of time and money, since the team applied a fair bit of its own human expertise and judgment. It does mean the bar is significantly lower.

Fix

V8 removed the literal-object special case. Virtual HeapNumbers now follow the ordinary captured-object materialization path, and Maglev explicitly prevents their deduplication, so each deoptimization materializes a fresh box:

C++
vobj::ObjectType object_type = object->object_type();
DCHECK_NOT_NULL(object->allocation());
// HeapNumbers may be mutable object fields; each materialization must
// create a fresh box, so they are never deduplicated.
// TODO(victorgomes): Constrain which objects may contain mutable
// HeapNumbers. Immutable HeapNumbers can be stored as a literal object
// instead of a captured object.
int dup_id =
    object_type == vobj::ObjectType::kHeapNumber
        ? CreateUnduplicatableId()
        : GetDuplicatedId(reinterpret_cast<intptr_t>(object->allocation()));

The complete patch is V8 change 8255554, and the public root-cause report is Chromium issue 547819997.

For the WebP bug, the first landed fix set rgba, stride and size together and limited the advertised extent to the retained rectangle. A follow-up removed a subtler assumption: rather than calculating what the allocation ought to contain, the decoder now takes its stride and extent from the ImageFrame bitmap itself:

C++
const gfx::Rect& frame_rect = buffer.OriginalFrameRect();
CHECK(gfx::Rect(Size()).Contains(frame_rect));
CHECK(!frame_rect.IsEmpty());
// The top-left pixel of frame_rect.
ImageFrame::PixelData* frame_rect_front =
    buffer.GetAddr(frame_rect.x(), frame_rect.y());
// The bottom-right pixel of frame_rect.
ImageFrame::PixelData* frame_rect_back =
    buffer.GetAddr(frame_rect.right() - 1, frame_rect.bottom() - 1);
 decoder_buffer_.u.RGBA.rgba = reinterpret_cast<uint8_t*>(frame_rect_front);
decoder_buffer_.u.RGBA.stride = buffer.Bitmap().rowBytes();
decoder_buffer_.u.RGBA.size =
    (frame_rect_back - frame_rect_front + 1) * sizeof(ImageFrame::PixelData);

The root-cause report and ASAN reproducer are in Chromium issue 548509153. The two landed fixes are Chromium change 8266257 and Chromium change 8352899.

For Crashpad, the fixed implementation removed the dependence on the target remaining unchanged between the two reads. The retry is now limited by both the source-page boundary and the caller's original request:

C++
if (GetLastError() == ERROR_PARTIAL_COPY) {
  // If we can not read the entire section, perform a short read of the first
  // page instead. This is necessary to support ReadCString().
  const size_t page_remainder =
      base::GetPageSize() - (address & (base::GetPageSize() - 1));
  const size_t short_read = std::min(size, page_remainder);
  success = ReadProcessMemory(handle_,
                              reinterpret_cast<void*>(address),
                              buffer,
                              short_read,
                              &size_out);
  if (success)
    return base::checked_cast<ssize_t>(size_out);
}

The clamp is necessary defensive programming, but it is best understood as removing a temporal assumption: even if the source changes between the failed read and the retry, Crashpad can no longer write beyond the destination. The same patch hardened the generic caller by rejecting any ReadUpTo() result larger than the remaining requested count before advancing the destination pointer, a check that appears in process_memory.cc. The complete fix is Chromium change 8267322, and the public report is Chromium issue 545820931.

Variants to test

  • Deoptimization materialization of mutable boxed values. Look for other compiler paths that store a mutable object in a deoptimization literal array or deduplicate materialized objects. A positive result is a JavaScript-visible object whose field shares identity with another object's field after deoptimization, observable by changing one and reading the other.
  • Transfer-based ownership assumptions in Blink. Audit other consumers of transferred ArrayBuffers, such as image decoders, media decoders and codecs, for code that caches geometry or metadata from the first buffer and then decodes bytes from the backing store without re-checking. A positive result is a decoder that reads changed bytes against stale cached dimensions.
  • Detach-notification chain manipulation. Test whether removing a view from a JSArrayBuffer's detach-notification chain leaves optimized writes usable after transfer. A positive result is a write through the omitted view that changes bytes Blink believes it owns exclusively.
  • External-buffer size checks in image libraries. Compare the extent advertised to a library such as libwebp with the pointer actually passed, especially when the pointer is advanced to a sub-rectangle. A positive result is a library write that passes its own size check but extends past the native allocation, caught by ASAN.
  • Crashpad remote-memory reads against a freeze-exempt target. Create a thread with THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE and flip source page protections between a failed ReadProcessMemory() and its retry. A positive result is a retry longer than the caller's requested length, overrunning the destination allocation.
  • Heap adjacency for Crashpad writers. Expose process and loader memory ranges in a chosen order and count thread, TEB and stack writers to place a freed 0xc0 writer slot immediately before a live SnapshotMinidumpMemoryWriter. A positive result is a read buffer reusing the freed slot and an oversized retry corrupting the live writer.
  • Wasm Code Pointer table base corruption. Check whether a single native write can change the writable base used to locate the Wasm Code Pointer table and supply a replacement entry with the correct type. A positive result is a Wasm call that passes the signature check and resolves the replacement entry.
  • Module base reuse across processes. On Windows, verify whether a target module is mapped at the same address in a sandboxed process and an unsandboxed handler, and whether the build can be validated by image timestamp and size. A positive result is a payload that derives handler addresses from its own image base.

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. 39 min read.

What happened, in plain words

A security company called XBOW built a working exploit for Google Chrome in six days. An exploit is a set of steps that makes software do something its makers did not intend, usually something harmful. In this case the steps started with an ordinary web page open in a Chrome tab and ended with the Calculator program starting on the computer, outside the protective walls Chrome normally keeps around web content.

Google paid $250,000 for it. That was the first payment of its size under the Chrome full-chain reward programme, whose rules were introduced in April 2026. A "full chain" means the exploit does not stop at one bug: it strings several bugs together, each one opening the door to the next, until it reaches the computer itself.

To see why that is hard, imagine a bank vault inside a bank. Getting past the vault door is one problem. Getting out of the building with the money is another. Chrome is built the same way, with two layers of protection, and this exploit had to defeat both.

The work ran from Sunday 2 August to Friday 7 August. For comparison, before AI language models were widely used, a Chrome full chain was estimated to take a team of four people around six to nine months. XBOW's own first attempt took two months. This one took six days. Reconstructing usage from archived logs put the cost of the AI model calls at roughly $40,000.

The two walls around a web page

When you open a website, the page's code does not run with the same power as a program you installed yourself. Chrome puts it in a series of increasingly strict enclosures. This exploit had to break out of two of them.

Wall one: the V8 sandbox

V8 is the part of Chrome that runs JavaScript, the programming language of web pages. V8 keeps most of the objects a page creates inside one reserved block of memory, 4 gibibytes (GiB) in size. A gibibyte is about a thousand million bytes; a byte is one character's worth of storage. Inside that block, many references from one object to another are stored not as full addresses but as short offsets, meaning "this many bytes from the start of the block".

This design is called the V8 sandbox. Its purpose is damage control: if an attacker manages to corrupt memory through a JavaScript bug, the damage stays inside that reserved block. The attacker gets a lot of power within the block, but not the ability to run their own machine code, the raw instructions a processor executes.

A useful comparison is a hotel where every room number is written relative to the lobby. If a guest can scribble on the signs, they can reach any room in the hotel, but they still cannot leave the building.

Wall two: the renderer sandbox

The part of Chrome that actually displays a page is called the renderer. Chrome runs the renderer as a separate process, meaning a separate running program that the operating system keeps apart from everything else. The operating system can restrict what a process is allowed to touch: which files it can read, which parts of memory it can see, and so on. This is the renderer sandbox.

Even if an attacker gets their own machine code running inside the renderer, the operating system still stops them from freely reaching the rest of the computer. To use the hotel comparison again: the guest may now control their own room completely, but the door to the street is still locked.

The three stages

The exploit crossed both walls using three bugs, one after another:

Stage The bug What the attacker gained
JavaScript engine A part of V8 called Maglev reused a number that could still change The ability to read and write memory anywhere inside V8's 4 GiB block
V8 sandbox An animated WebP image was decoded using old geometry together with new image data One single write to a chosen place in memory outside the block
Renderer sandbox Crashpad, Chrome's crash reporter, trusted a failed memory read from a supposedly frozen process The ability to run code in the crash handler, which sits outside the renderer sandbox

Each stage is explained in detail below, in the order the exploit used them.

How the work was organised

Instead of asking one AI agent to produce a complete exploit, the team split the job into several campaigns that ran in parallel, each with a narrower goal: a broad search for vulnerabilities, memory corruption in V8, an escape from the V8 sandbox, an escape from the renderer sandbox, and finally joining the pieces together.

An AI agent here means a language model given a goal and the ability to take actions, such as reading source code and running tests. The agents used OpenAI's gpt-5.6-sol model. They searched source code, tested hypotheses (guesses about how something might break), built proofs of concept (small demonstrations that a bug is real) and developed the individual exploit stages.

Human researchers at XBOW chose the targets, supplied context, challenged the agents' results, redirected searches when they went nowhere, and decided which pieces to join. They also prepared backup routes for each stage and gave every stage a clean interface, meaning a fixed way for one stage to hand its result to the next. That way a stage could be swapped out without rebuilding everything else. This turned out to matter a great deal, as described later.

The exploit was built for Windows, and the last stage depends on behaviour specific to that operating system. Because Chrome releases new versions very often, the chain also checks the exact build it is running against, using the timestamp and size recorded in the program file, before applying offsets that differ between builds. An offset is a distance in bytes from a known starting point; if the program changes, the distances change too.

Stage 1: a number that was supposed to be frozen

What a compiler does, and what deoptimization means

JavaScript is normally run by an interpreter, a program that reads the code and carries out each instruction as it goes. That is flexible but slow. To speed things up, V8 also contains compilers that translate hot code (code that runs often) into a faster form. Maglev is one of these compilers; it sits in the middle of V8's range of compilers, faster than the interpreter but less aggressive than the top-tier optimiser.

When a compiler speeds code up, it makes assumptions. For example, it might assume that a particular value is always a whole number, or that an object always has the same shape. These assumptions let it skip checks. But an assumption can stop being true while the program runs. When that happens, V8 must abandon the optimised code and continue in the slower, more general version. This switch is called deoptimization.

The tricky part is that the optimised code may have been holding some values only in the processor's registers or as plain numbers, never as real objects in memory. JavaScript, however, expects real objects. So during deoptimization V8 has to build those objects on the spot. This building process is called materialisation.

A comparison: a chef working fast might keep a sauce recipe in their head without writing it down. If they suddenly have to hand the kitchen over to someone else, they must write the recipe out properly. Materialisation is that writing-out step.

The bug

JavaScript stores numbers in two ways. Small whole numbers can be stored directly inside the object that holds them. Numbers with a fractional part, called doubles (short for double-precision floating point), need a separate small box in memory, and that box is called a HeapNumber. The object's field then holds a reference to the box.

When V8 materialises an object whose field is a double, it needs to create such a box. The vulnerable code in Maglev did this:

C++
void BuildHeapNumber(const VirtualObject* vobject) {
  DCHECK_EQ(vobject->object_type(), vobj::ObjectType::kHeapNumber);
  ValueNode* value_node = vobject->get(offsetof(HeapNumber, value_));
  return BuildHeapNumber(value_node->Cast<Float64Constant>()->value());
}

void BuildHeapNumber(Float64 number) {
  DirectHandle<Object> value =
      local_isolate_->factory()->NewHeapNumberFromBits<AllocationType::kOld>(
          number.get_bits());
  translation_array_builder_->StoreLiteral(GetDeoptLiteral(*value));
}

Line by line:

  • void BuildHeapNumber(const VirtualObject* vobject) starts a function that takes a description of a virtual object, meaning an object that exists only in the compiler's bookkeeping so far.
  • DCHECK_EQ(vobject->object_type(), vobj::ObjectType::kHeapNumber); is a debug-only assertion that this virtual object really is a number box. In release builds it does nothing.
  • ValueNode* value_node = vobject->get(offsetof(HeapNumber, value_)); fetches the compiler's internal representation of the number stored in the box.
  • return BuildHeapNumber(value_node->Cast<Float64Constant>()->value()); passes that number to the second function below.
  • void BuildHeapNumber(Float64 number) starts the second function, which takes an actual double value.
  • DirectHandle<Object> value = local_isolate_->factory()->NewHeapNumberFromBits<AllocationType::kOld>(number.get_bits()); creates a real HeapNumber in memory, in the old generation of the heap (the area where longer-lived objects go), holding the given number.
  • translation_array_builder_->StoreLiteral(GetDeoptLiteral(*value)); stores that newly created box in the deoptimization literal array. A literal array is a list of constants the deoptimizer can refer to when rebuilding objects.

The problem is the last line. The box was placed in a list of literals, and a literal is supposed to be a fixed, unchanging value, like the number 42 written in code. But this box is an ordinary object that can still be modified.

The second half of the bug was in the code that rebuilds objects during deoptimization. For a field marked kStoreHeapObject, meaning "this field holds a reference to an object", it did this:

C++
if (marker == kStoreHeapObject) {
  DirectHandle<HeapObject> field_value = slot->storage();
  WRITE_FIELD(*object_storage, offset, *field_value);
  WRITE_BARRIER(*object_storage, offset, *field_value);
  continue;
}

Line by line:

  • if (marker == kStoreHeapObject) { checks whether the field being rebuilt is one that holds an object reference.
  • DirectHandle<HeapObject> field_value = slot->storage(); fetches the object that the saved slot points to.
  • WRITE_FIELD(*object_storage, offset, *field_value); writes that object reference into the object being rebuilt, at the right offset.
  • WRITE_BARRIER(*object_storage, offset, *field_value); performs a write barrier, a bookkeeping step that tells the garbage collector (the part of V8 that frees unused memory) that this reference now exists.
  • continue; moves on to the next field.

Put the two halves together. The first block turned a changeable box into a "literal". The second block copied the identity of that box, not just its numeric value, into every object being rebuilt. When several objects were being rebuilt at once, as happens with nested function calls, V8 could produce several distinct JavaScript objects whose number fields all pointed at the same single box.

That broke a rule V8 states elsewhere in its own source code: a HeapNumberRef, the compiler's reference to a number box, is only created for boxes that never change. The buggy path made a changeable number look exactly like the kind of fixed constant the compiler is allowed to share and reuse.

Why sharing one box is dangerous

If two objects share one box, then changing the number through one object also changes it through the other. Normally that cannot happen, because each object gets its own box. The compiler, however, had been told this was a constant, so it had made decisions based on the value it saw at the time.

The exploit aimed this at Array.prototype.at(), a standard JavaScript function that returns the element at a given position in an array. An array is an ordered list of values. The compiler looked at the index once, decided it was safe, and approved an access within the array's bounds. A second look at what it believed was the same constant supplied the actual offset used to fetch the value. By changing the shared number, the attacker could change where the fetch went, without the earlier safety check noticing.

Three optimised load functions were enough to leak nearby V8 pointers, work out the layout of an array of doubles, and obtain a reference to an array the attacker had described. A pointer is simply a memory address. From there the forged array was used as a starting point to rewrite the internal description of a real Uint8Array, a JavaScript object that represents a block of raw bytes. That rewrite extended ordinary indexed access across V8's entire 4 GiB block.

One more step was needed to find stable addresses for objects. The exploit stored a reference in V8's large-object space, a special area for very big objects, pointing at whichever JavaScript object it wanted to locate. V8 itself updates such references during garbage collection, so the exploit could always recover a current address inside the block without having to stop objects from moving. At this point the exploit could reliably read and write memory from JavaScript anywhere inside the V8 sandbox.

The fix

V8 removed the special case that treated these boxes as literals. Virtual HeapNumbers now go through the ordinary path for captured objects, and Maglev explicitly prevents them from being deduplicated, meaning it never lets two rebuilt objects share one box. Each deoptimization now creates a fresh box:

C++
vobj::ObjectType object_type = object->object_type();
DCHECK_NOT_NULL(object->allocation());
// HeapNumbers may be mutable object fields; each materialization must
// create a fresh box, so they are never deduplicated.
// TODO(victorgomes): Constrain which objects may contain mutable
// HeapNumbers. Immutable HeapNumbers can be stored as a literal object
// instead of a captured object.
int dup_id =
    object_type == vobj::ObjectType::kHeapNumber
        ? CreateUnduplicatableId()
        : GetDuplicatedId(reinterpret_cast<intptr_t>(object->allocation()));

Line by line:

  • vobj::ObjectType object_type = object->object_type(); records what kind of object is being materialised.
  • DCHECK_NOT_NULL(object->allocation()); is a debug-only check that the object has a real allocation behind it.
  • The comment explains the reasoning: number boxes may be changeable fields, so every materialisation must create a fresh box and they must never be deduplicated. It also notes a future task to restrict which objects may contain changeable number boxes.
  • int dup_id = starts the calculation of an identifier used to decide whether this object may be shared with another.
  • object_type == vobj::ObjectType::kHeapNumber asks whether this is a number box.
  • ? CreateUnduplicatableId() if it is, produce an identifier that guarantees it will never be treated as a duplicate.
  • : GetDuplicatedId(reinterpret_cast<intptr_t>(object->allocation())); otherwise, use the ordinary scheme based on the object's address.

The complete patch is V8 change 8255554, and the public root-cause report is Chromium issue 547819997.

Stage 2: two images, one buffer

The idea behind this stage

When the team went looking for a way out of the V8 sandbox, they deliberately did not attack the sandbox itself. Instead they thought about what the sandbox promises and, more importantly, what it does not promise, and looked for things that were "allowed" but seemed likely to cause trouble.

The V8 sandbox's threat model, meaning its official list of what it does and does not protect against, assumes that an attacker who controls memory inside the block can corrupt objects and bookkeeping there. It therefore places obligations on the code outside V8 that receives data from inside the block: that code must defend itself against an attacker who can change things concurrently, or swap one pointer for another of the same type.

The bug they found is exactly that kind of case. WebCodecs is a browser feature that lets web pages decode audio and video. ImageDecoder is the part that turns compressed image data into pixels. A web page can hand an ArrayBuffer, a block of raw bytes in JavaScript, to ImageDecoder by transferring it. Transferring means handing over ownership: under normal JavaScript rules the original buffer is detached, meaning it can no longer be used, and any views onto it (objects that read and write its bytes) stop working too. Blink, the part of Chrome that handles page content, can then use the bytes directly without making a copy, treating them as its own exclusive input.

But the V8 sandbox never promised that a detached buffer stays unchanged against an attacker who already controls memory inside the block. Making that promise would require moving or copying the bytes, or adding checks to code that runs very often, and the sandbox was designed to avoid exactly those costs.

In the full chain, the exploit used the write access from stage 1 to remove a live Uint8Array view from the list of views that its JSArrayBuffer notifies when it is detached. When ImageDecoder transferred the buffer, V8 detached the views it still knew about. The omitted view kept working, so optimised writes through it could still change the bytes. Blink believed it owned the bytes exclusively, while the attacker could still modify them.

The time-of-check to time-of-use bug

This broken ownership assumption showed up in WebP decoding as a time-of-check to time-of-use bug, usually shortened to TOCTOU. The name describes the pattern: a program checks something, then later uses it, and something changes in between. A everyday comparison is a shop assistant checking that a banknote is genuine, then walking to the till, and someone swapping the note on the counter while their back is turned.

The proof of concept placed two animated WebP files of the same length, each valid on its own, in the same block of bytes. WebP is an image format; an animated WebP contains several frames shown in sequence, like a very short film.

  1. WebP A described a canvas 64 pixels by 64 pixels. A pixel is one dot of colour. Its first frame was 48 pixels wide, started at horizontal position x = 16, and was 64 pixels high.
  2. ImageDecoder transferred the buffer, and its persistent demuxer cached A's frame rectangle and the location of its payload. A demuxer is the component that separates a media file into its parts; caching means keeping a copy of the information for later use.
  3. The surviving view replaced the bytes with WebP B, whose current payload decoded to a full 64 by 64 frame.
  4. The decoder read compressed data from B but described the output buffer using the frame geometry cached from A.

The function WEBPImageDecoder::DecodeSingleFrame() set up the output buffer's stride and size from the cached rectangle, then moved the output pointer to that rectangle's top-left pixel:

C++
const gfx::Rect& frame_rect = buffer.OriginalFrameRect();
if (!decoder_) {
  // Set up decoder_buffer_ with output mode
  if (!WebPInitDecBuffer(&decoder_buffer_)) {
    return SetFailed();
  }
  decoder_buffer_.colorspace = RGBOutputMode();
  decoder_buffer_.u.RGBA.stride =
      Size().width() * sizeof(ImageFrame::PixelData);
  decoder_buffer_.u.RGBA.size =
      decoder_buffer_.u.RGBA.stride * frame_rect.height();
  decoder_buffer_.is_external_memory = 1;
  decoder_ = WebPINewDecoder(&decoder_buffer_);
  if (!decoder_) {
    return SetFailed();
  }
}
decoder_buffer_.u.RGBA.rgba = reinterpret_cast<uint8_t*>(
    buffer.GetAddr(frame_rect.x(), frame_rect.y()));

Line by line:

  • const gfx::Rect& frame_rect = buffer.OriginalFrameRect(); fetches the rectangle describing the frame, as recorded earlier.
  • if (!decoder_) { checks whether a decoder has been set up yet; this block runs only the first time.
  • if (!WebPInitDecBuffer(&decoder_buffer_)) { asks the WebP library to initialise a buffer description, and checks whether that worked.
  • return SetFailed(); reports failure if it did not.
  • decoder_buffer_.colorspace = RGBOutputMode(); sets the output colour format to red-green-blue.
  • decoder_buffer_.u.RGBA.stride = Size().width() * sizeof(ImageFrame::PixelData); sets the stride, the number of bytes from the start of one row of pixels to the start of the next, based on the full canvas width.
  • decoder_buffer_.u.RGBA.size = decoder_buffer_.u.RGBA.stride * frame_rect.height(); sets the advertised size of the output area, based on the cached frame's height.
  • decoder_buffer_.is_external_memory = 1; tells the library that the output memory is supplied by the caller rather than allocated by the library.
  • decoder_ = WebPINewDecoder(&decoder_buffer_); creates the decoder using that description.
  • if (!decoder_) { return SetFailed(); } reports failure if creation failed.
  • decoder_buffer_.u.RGBA.rgba = reinterpret_cast<uint8_t*>(buffer.GetAddr(frame_rect.x(), frame_rect.y())); sets the output pointer to the address of the cached rectangle's top-left pixel. reinterpret_cast is a C++ way of telling the compiler to treat one type of value as another.

The next statement passed that description to WebPIUpdate(), the library function that decodes the image data.

Why the numbers matter

In the test that caught the bug, the bitmap stride was 256 bytes and the whole allocation was 16,384 bytes. GetAddr(16, 0) moved the output pointer 64 bytes forward, leaving 16,320 bytes. That was exactly enough for A's cached rectangle:

Text
256 * (64 - 1) + 48 * 4 = 16,320

In plain words: 63 full rows of 256 bytes, plus one final row of 48 pixels at 4 bytes each. That is the space A's frame actually needs.

Blink nevertheless told the library that all 16,384 bytes were available, so B's 64-pixel-wide payload passed the library's check that the output buffer was big enough:

Text
256 * (64 - 1) + 64 * 4 = 16,384

In plain words: 63 full rows of 256 bytes, plus one final row of 64 pixels at 4 bytes each. That is the space B's frame needs, and it exactly matches the advertised size.

WebPIUpdate() wrote the pixels before Blink compared the decoded dimensions with the cached rectangle. The decoded image therefore extended 64 bytes past the end of the real allocation. The test tool ASAN, short for AddressSanitizer, caught a 256-byte write starting at the first byte beyond the allocation. ASAN is a debugging tool that watches memory accesses and reports any that go out of bounds.

Both WebP files were valid on their own. The unsafe situation existed only because Blink combined A's cached geometry with B's current bytes.

From a heap overflow to one chosen write

The production exploit used the same bug with measurements chosen to fit the way Chrome's memory allocator, PartitionAlloc, hands out memory. An allocator is the part of a program that manages which parts of memory are in use; it groups allocations of similar size into buckets to keep things tidy. A heap overflow is a write that goes past the end of an allocated block and into whatever lies next to it.

A two-pixel frame started at x = 124 on a 126-pixel canvas. The 504-byte pixel allocation and a 496-byte WebPIDecoder sat next to each other in the 512-byte bucket. Moving the output pointer forward by 496 bytes left only eight bytes, while the decoder still believed it had 504.

The pixel write replaced the live decoder's internal fields with pointers to two WebPDecBuffer records that had already been placed in a native network buffer. When decoding finished, the genuine WebPCopyDecBufferPixels() routine followed those false descriptions of where to read from and where to write to. It copied one chosen 64-bit value to one chosen address outside the V8 sandbox. A 64-bit value is eight bytes of data. That single write was the entire handover between the image stage and the next stage.

The fix

The first fix that landed set rgba, stride and size together and limited the advertised extent to the retained rectangle. A follow-up removed a subtler assumption: instead of calculating what the allocation ought to contain, the decoder now takes its stride and extent from the ImageFrame bitmap itself:

C++
const gfx::Rect& frame_rect = buffer.OriginalFrameRect();
CHECK(gfx::Rect(Size()).Contains(frame_rect));
CHECK(!frame_rect.IsEmpty());
// The top-left pixel of frame_rect.
ImageFrame::PixelData* frame_rect_front =
    buffer.GetAddr(frame_rect.x(), frame_rect.y());
// The bottom-right pixel of frame_rect.
ImageFrame::PixelData* frame_rect_back =
    buffer.GetAddr(frame_rect.right() - 1, frame_rect.bottom() - 1);
decoder_buffer_.u.RGBA.rgba = reinterpret_cast<uint8_t*>(frame_rect_front);
decoder_buffer_.u.RGBA.stride = buffer.Bitmap().rowBytes();
decoder_buffer_.u.RGBA.size =
    (frame_rect_back - frame_rect_front + 1) * sizeof(ImageFrame::PixelData);

Line by line:

  • const gfx::Rect& frame_rect = buffer.OriginalFrameRect(); fetches the frame rectangle as before.
  • CHECK(gfx::Rect(Size()).Contains(frame_rect)); stops immediately if the frame rectangle is not fully inside the canvas.
  • CHECK(!frame_rect.IsEmpty()); stops if the rectangle is empty.
  • ImageFrame::PixelData* frame_rect_front = buffer.GetAddr(frame_rect.x(), frame_rect.y()); finds the address of the rectangle's top-left pixel.
  • ImageFrame::PixelData* frame_rect_back = buffer.GetAddr(frame_rect.right() - 1, frame_rect.bottom() - 1); finds the address of its bottom-right pixel.
  • decoder_buffer_.u.RGBA.rgba = reinterpret_cast<uint8_t*>(frame_rect_front); tells the library to start writing at the top-left pixel.
  • decoder_buffer_.u.RGBA.stride = buffer.Bitmap().rowBytes(); takes the stride from the real bitmap rather than recalculating it.
  • decoder_buffer_.u.RGBA.size = (frame_rect_back - frame_rect_front + 1) * sizeof(ImageFrame::PixelData); calculates the size from the actual distance between the first and last pixel, rather than from an assumption.

The root-cause report and the ASAN reproducer are in Chromium issue 548509153. The two landed fixes are Chromium change 8266257 and Chromium change 8352899.

The handover: turning one write into running code

Stage 2 produced one write to a chosen address outside the V8 sandbox. The chain still needed to turn that single write into the ability to run arbitrary machine code, without modifying a protected code-pointer entry. A code-pointer entry is a record that tells the program where a particular piece of code lives; some of these records are deliberately protected so that an attacker cannot simply redirect them.

WebAssembly, usually shortened to Wasm, is a fast, low-level language that web pages can run in the browser. A hot Wasm function, meaning one that is called often, finds its target through V8's process-wide Wasm Code Pointer table, a table shared by the whole browser process that records where each Wasm function's code begins. The exploit changed the writable base used to locate that table and supplied a replacement entry with the correct type. The base is the starting address from which the table's location is calculated.

The team adapted a technique called island hopping from their previous full chain. The idea is to scatter small fragments of instructions, called islands, through code that the browser generates, and connect them with short jumps. This time they used 13 64-bit immediates in Wasm code generated by Liftoff, one of V8's Wasm compilers. An immediate is a value written directly into an instruction rather than fetched from elsewhere. They also used a Windows loader ABI, meaning the agreed convention for how a program calls the Windows loader.

After WebPCopyDecBufferPixels() changed the Wasm Code Pointer table base, the next Wasm call passed the signature check and resolved the replacement entry. A signature check confirms that a function is being called with the right kind of arguments. The entry pointed to a jmp rcx instruction in chrome.dll, the main Chrome program file; jmp rcx means "jump to the address held in the RCX register", a register being a small storage slot inside the processor. RCX pointed to the first island.

Each island contributed up to six bytes of the loader, followed by a short jump over the compiler-generated instructions to the next island. Together, the 13 islands formed a loader of roughly 70 bytes. It allocated writable memory, copied the Crashpad payload into it, changed that memory to executable, and called it. Executable means the processor is allowed to run the bytes as instructions.

Stage 3: the crash handler that trusted a frozen process

What Crashpad is

Crashpad is Chrome's crash reporter. When Chrome crashes, Crashpad collects information about what went wrong and prepares a report. On Windows, the Crashpad handler runs as a separate process outside the renderer sandbox, because it needs to read the crashed program's memory, which the sandbox would otherwise forbid.

When the handler receives a snapshot request, it suspends the renderer, meaning it pauses all of the renderer's threads, and reads data structures from the renderer's memory. A thread is one sequence of instructions that a program is executing; a process can have many. The handler creates an object called ScopedProcessSuspend, which calls the Windows function NtSuspendProcess(), before telling the snapshot machinery that the target is suspended.

In the version immediately before the fix, one of Crashpad's helpers for reading another process's memory, ProcessMemoryWin::ReadUpTo(), contained this recovery path:

C++
SIZE_T size_out = 0;
BOOL success = ReadProcessMemory(
    handle_, reinterpret_cast<void*>(address), buffer, size, &size_out);
if (success)
  return base::checked_cast<ssize_t>(size_out);

if (GetLastError() == ERROR_PARTIAL_COPY) {
  // If we can not read the entire section, perform a short read of the first
  // page instead. This is necessary to support ReadCString().
  size_t short_read =
      base::GetPageSize() - (address & (base::GetPageSize() - 1));
  success = ReadProcessMemory(handle_,
                              reinterpret_cast<void*>(address),
                              buffer,
                              short_read,
                              &size_out);
  if (success)
    return base::checked_cast<ssize_t>(size_out);
}

Line by line:

  • SIZE_T size_out = 0; prepares a variable to receive how many bytes were actually read.
  • BOOL success = ReadProcessMemory(handle_, reinterpret_cast<void*>(address), buffer, size, &size_out); asks Windows to copy size bytes from the other process at address into buffer. handle_ identifies the target process.
  • if (success) return base::checked_cast<ssize_t>(size_out); if the read worked, return the number of bytes read.
  • if (GetLastError() == ERROR_PARTIAL_COPY) { checks whether the read failed with the specific error that means only part of the requested range could be copied.
  • The comment explains the intent: if the whole section cannot be read, read just the first page instead, which is needed to support ReadCString(), a function that reads a text string from another process.
  • size_t short_read = base::GetPageSize() - (address & (base::GetPageSize() - 1)); calculates how many bytes remain in the page containing address. A page is the fixed-size unit, typically 4096 bytes, in which operating systems manage memory. The arithmetic works out the distance from the address to the end of its page.
  • success = ReadProcessMemory(handle_, reinterpret_cast<void*>(address), buffer, short_read, &size_out); retries the read, asking for only that many bytes.
  • if (success) return base::checked_cast<ssize_t>(size_out); if the retry worked, return how many bytes were read.

At first glance the mistake looks simple: short_read is not limited to size, the number of bytes the caller asked for. But the calculation was safe under an assumption Crashpad believed it had established: that the suspended process's memory layout could not change.

The fallback was meant for a read that starts in one readable page and runs into a page that cannot be read. If a request for size bytes crosses that boundary, the number of bytes left in the first page must be smaller than size. Retrying only those bytes therefore fits in the caller's buffer.

With page protections that stay put, there are three ordinary cases:

  • A request entirely inside a readable page succeeds straight away.
  • A request entirely inside an inaccessible page fails again when retried.
  • A request that crosses from a readable page into an inaccessible page produces a retry shorter than the original request.

The code therefore used the first failure as evidence about the shape of the source memory. That inference stopped being true once the renderer could change its memory layout between the two reads.

Getting around the freeze

Windows allows a thread created with the THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE flag to keep running even when its process is suspended with NtSuspendProcess(). A flag here is an option passed when creating something. Before requesting a snapshot, the native renderer payload created such a thread. The exploit used flags 0x42: BYPASS_PROCESS_FREEZE together with SKIP_THREAD_ATTACH. 0x42 is a hexadecimal number, a way of writing numbers that is convenient for flags; it combines the two options into one value. The write-up notes that exactly why Windows has this feature remains a mystery, but it provides the essential broken assumption, because it lets the renderer change page protections between the read and its retry.

While Crashpad treated the renderer as suspended, that thread repeatedly switched attacker-controlled source pages between PAGE_NOACCESS, meaning unreadable, and PAGE_READWRITE, meaning readable and writable. The winning sequence was:

  1. Crashpad issued a small read entirely inside one source page.
  2. The page was inaccessible, so ReadProcessMemory() returned ERROR_PARTIAL_COPY.
  3. Crashpad interpreted that failure as evidence that the request had crossed a page boundary.
  4. The freeze-exempt renderer thread made the page readable.
  5. Crashpad retried all the way to the end of the page, copying more data than its caller had asked for.

For the call site the exploit used, the numbers were:

Text
requested length         = 0x0b8
source offset in page    = 0x0e98
computed retry length    = 0x1000 - 0x0e98 = 0x168
destination heap slot    = 0x0c0
overwrite into next slot = 0x168 - 0x0c0 = 0x0a8

In plain words: the caller asked for 0xb8 bytes, which is 184 in ordinary decimal. The address sat 0xe98 bytes into a 4096-byte page, so the retry length was calculated as the rest of the page, 0x168 bytes, or 360. The destination buffer was 0xc0 bytes, or 192. The retry therefore wrote 0xa8 bytes, or 168, past the end of the destination and into the next allocation.

The original 0xb8-byte request ended well before the page boundary. It could only produce the required error because the whole page was inaccessible at that instant. Once the renderer made the page readable, the 0x168-byte retry succeeded and overran the allocation.

To make the race reliable, the payload supplied 48 candidate reads in one snapshot request. A race here means a situation whose outcome depends on exact timing. One freeze-exempt worker cycled their pages between readable and inaccessible states. The other helper threads stayed parked, meaning idle, which kept the number of threads, and the Crashpad allocations associated with them, stable.

Rewiring a live Crashpad writer

The oversized retry could only corrupt the allocation immediately after its 0xc0 read-buffer slot. The payload arranged for that allocation to hold a live SnapshotMinidumpMemoryWriter, an object Crashpad would later use to read a memory range from the renderer and send the bytes through its output path.

To create that adjacency, the payload exposed a readable process and loader graph containing memory ranges in a chosen order. A graph here is a set of linked records describing the process and the loaded program files. Crashpad allocated a writer for each range, then merged contained ranges and freed their writers. The ordering left one freed 0xc0 writer slot immediately before a writer that stayed live; the next 0xb8-byte read buffer reused the freed slot. Writers for threads, TEBs and readable stacks affected the allocation sequence. A TEB, or thread environment block, is a per-thread data structure Windows keeps for each thread. So the payload counted those inputs and adjusted the number of ranges to keep the same position in the same size bucket.

On the systems they tested that support CET, the handler used a user shadow stack, while CFG restricted indirect calls to approved targets. CET, Control-flow Enforcement Technology, is a processor feature that keeps a second, protected copy of return addresses so that an attacker who overwrites the normal stack cannot simply redirect a return. A shadow stack is that second copy. CFG, Control Flow Guard, is a Windows feature that checks indirect calls, meaning calls whose target is held in a variable, against a list of approved destinations. To avoid tripping these defences, the exploit used a normal call and return sequence and directed the substituted virtual calls to existing functions that were already on the approved list.

The vulnerable retry-read rewrote the first 0xa8 bytes of the live writer. At offset 0x00 it wrote back the SnapshotMinidumpMemoryWriter vtable; at 0x70 it set the writer's state to writable; and at 0x78 it replaced the MemorySnapshot::Delegate vtable with a shifted CopyingOutputStreamAdaptor vtable, so the delegate callback entered the adaptor's buffered-write path. A vtable, short for virtual method table, is a list of function addresses that a C++ object uses to find its methods; overwriting it is a classic way to redirect a program's behaviour. An offset is a distance in bytes from the start of the object. The overwrite ended immediately before memory_snapshot_ at offset 0xa8.

Crashpad later entered the writer's WriteObject() through its first vtable. WriteObject() called Read() through the preserved snapshot pointer, which read a controlled 0xd0-byte range from the renderer. The callback through the second vtable copied those bytes to a writable address in chrome.exe and treated the same address as the adaptor's underlying output stream.

The copied bytes built both a one-method output stream and a fallback-launcher object. When the adaptor flushed, the stream's virtual Write() entered Chrome's FallbackUnhandledExceptionFilter(), a function already on the CFG approved list. The bytes also pointed Chrome's fallback-launcher global at the copied object and supplied its command and startup fields. A global is a variable shared across the whole program. The filter called FallbackCrashHandlerLauncher::LaunchAndWaitForHandler(), which passed cmd /k calc.exe to CreateProcessW. cmd /k calc.exe is a Windows command that opens a command prompt and runs the Calculator program. These calls kept the shadow stack consistent, so CET did not object.

Because Windows ASLR randomises modules once rather than separately for each process, chrome.exe was mapped at the same address in both the renderer and the handler. ASLR, Address Space Layout Randomisation, is a defence that places programs at unpredictable addresses so an attacker cannot hard-code them. Windows does this once rather than per process, a consequence of the decision to use relocations rather than position-independent code. A relocation is an adjustment the loader makes when a program is placed at a different address than it was built for. This meant the renderer payload could work out the handler's addresses from the image base in its own process, and could validate the exact build using the image timestamp and size in order to apply any build-specific offsets. Given Chrome's rapid release schedule, the chain had to be retargetable quickly as new versions shipped.

The fix

The fixed implementation removed Crashpad's dependence on the target staying unchanged between the two reads. The retry is now limited by both the source-page boundary and the caller's original request:

C++
if (GetLastError() == ERROR_PARTIAL_COPY) {
  // If we can not read the entire section, perform a short read of the first
  // page instead. This is necessary to support ReadCString().
  const size_t page_remainder =
      base::GetPageSize() - (address & (base::GetPageSize() - 1));
  const size_t short_read = std::min(size, page_remainder);
  success = ReadProcessMemory(handle_,
                              reinterpret_cast<void*>(address),
                              buffer,
                              short_read,
                              &size_out);
  if (success)
    return base::checked_cast<ssize_t>(size_out);
}

Line by line:

  • if (GetLastError() == ERROR_PARTIAL_COPY) { checks for the same partial-copy error as before.
  • The comment is unchanged: read just the first page when the whole section cannot be read, to support ReadCString().
  • const size_t page_remainder = base::GetPageSize() - (address & (base::GetPageSize() - 1)); calculates how many bytes remain in the page, exactly as before.
  • const size_t short_read = std::min(size, page_remainder); is the fix: take whichever is smaller, the caller's requested size or the rest of the page. The retry can never be longer than the caller asked for.
  • success = ReadProcessMemory(handle_, reinterpret_cast<void*>(address), buffer, short_read, &size_out); retries the read with that safe length.
  • if (success) return base::checked_cast<ssize_t>(size_out); returns the number of bytes read if the retry worked.

The clamp is necessary defensive programming, but it is best understood as removing an assumption about time: even if the source changes between the failed read and the retry, Crashpad can no longer write past the destination. The same patch also hardened the generic caller by rejecting any ReadUpTo() result larger than the remaining requested count before moving the destination pointer forward. That check appears in process_memory.cc. The complete fix is Chromium change 8267322, and the public report is Chromium issue 545820931.

Swapping out the middle

Now that everyone, including Google, is pointing AI models at codebases like Chrome, bug collisions are a major risk. A collision means two researchers find the same bug, and only the first report counts. To guard against this, the exploit was designed with modular stages and backup vulnerabilities for each piece.

This paid off. The first version of the chain used a Gin vulnerability for its V8 sandbox escape. Gin is a Chrome component that provides a general-purpose way for different parts of the browser to communicate. That bug turned out to be a duplicate of issue 542670566, meaning someone else had already reported it. After a very stressful few hours, the team replaced the Gin-based escape with the animated WebP stage described above. That replacement saved the chain, and Google confirmed that the chain popped calc, meaning it successfully launched the Calculator.

What the three bugs had in common

The team noticed that all three vulnerabilities were, coincidentally, about changing something that was supposed to be unchangeable:

  • In stage 1, a HeapNumber was treated as a fixed literal even though it was a changeable field.
  • In stage 2, a transferred WebP buffer was treated as fixed even though the attacker could still write to it.
  • In stage 3, the page protection of a supposedly frozen process was treated as fixed even though a thread could still change it.

This kind of broken invariant, meaning a rule that was assumed to hold but did not, may be where AI models are strongest: they can draw on broad knowledge of operating system interfaces and open source code to imagine situations where the rule fails.

What it means

An attacker who can run JavaScript in a Chrome tab can, with this chain, run code outside the renderer sandbox on the host computer. The demonstration launches Calculator from a web page in signed Chrome Beta. Signed here means an official build that carries Google's cryptographic signature, so it is the real thing rather than a modified copy.

The chain needs all three stages to work together, and the middle stage was replaceable: the original Gin-based escape was a duplicate and was swapped for the WebP stage.

Six days and $40,000 is not a lot of time or money when the prize is a Chrome chain. That does not mean anyone can get one with that budget; the team did apply a fair amount of its own human expertise and judgment. It does mean the bar is significantly lower than it used to be, and defenders should plan accordingly.

Areas worth testing further

  • Deoptimization materialisation of changeable boxed values. Look for other compiler paths that store a changeable object in a deoptimization literal array or share materialised objects. A positive result is a JavaScript-visible object whose field shares identity with another object's field after deoptimization, which you can observe by changing one and reading the other.
  • Transfer-based ownership assumptions in Blink. Audit other consumers of transferred ArrayBuffers, such as image decoders, media decoders and codecs, for code that caches geometry or metadata from the first buffer and then decodes bytes from the backing store without re-checking. A positive result is a decoder that reads changed bytes against stale cached dimensions.
  • Detach-notification chain manipulation. Test whether removing a view from a JSArrayBuffer's detach-notification chain leaves optimised writes usable after transfer. A positive result is a write through the omitted view that changes bytes Blink believes it owns exclusively.
  • External-buffer size checks in image libraries. Compare the extent advertised to a library such as libwebp with the pointer actually passed, especially when the pointer is moved to a sub-rectangle. A positive result is a library write that passes its own size check but extends past the native allocation, caught by ASAN.
  • Crashpad remote-memory reads against a freeze-exempt target. Create a thread with THREAD_CREATE_FLAGS_BYPASS_PROCESS_FREEZE and flip source page protections between a failed ReadProcessMemory() and its retry. A positive result is a retry longer than the caller's requested length, overrunning the destination allocation.
  • Heap adjacency for Crashpad writers. Expose process and loader memory ranges in a chosen order and count thread, TEB and stack writers to place a freed 0xc0 writer slot immediately before a live SnapshotMinidumpMemoryWriter. A positive result is a read buffer reusing the freed slot and an oversized retry corrupting the live writer.
  • Wasm Code Pointer table base corruption. Check whether a single native write can change the writable base used to locate the Wasm Code Pointer table and supply a replacement entry with the correct type. A positive result is a Wasm call that passes the signature check and resolves the replacement entry.
  • Module base reuse across processes. On Windows, verify whether a target module is mapped at the same address in a sandboxed process and an unsandboxed handler, and whether the build can be validated by image timestamp and size. A positive result is a payload that derives handler addresses from its own image base.

Glossary

  • ABI: the agreed convention for how programs call each other, covering where arguments go and who cleans up afterwards.
  • Address: a number identifying a location in memory.
  • AI agent: a language model given a goal and the ability to take actions such as reading code and running tests.
  • Allocator: the part of a program that manages which parts of memory are in use.
  • Array: an ordered list of values in JavaScript.
  • ArrayBuffer: a JavaScript object representing a block of raw bytes.
  • ASAN (AddressSanitizer): a debugging tool that reports memory accesses outside allocated blocks.
  • ASLR (Address Space Layout Randomisation): a defence that places programs at unpredictable memory addresses.
  • Base: the starting address from which other addresses are calculated.
  • Bit: the smallest unit of data, a single 0 or 1.
  • Blink: the part of Chrome that handles page content, including images.
  • Bucket: a size class in a memory allocator; allocations of similar size share a bucket.
  • Byte: eight bits; roughly one character of storage.
  • Caching: keeping a copy of information so it can be reused later.
  • CET (Control-flow Enforcement Technology): a processor feature that keeps a protected copy of return addresses.
  • CFG (Control Flow Guard): a Windows feature that checks indirect calls against a list of approved targets.
  • Code-pointer entry: a record telling a program where a piece of code lives; some are protected.
  • Collision: two researchers finding the same bug, so only the first report counts.
  • Compiler: a program that translates code into a faster or more machine-ready form.
  • Concurrent modification: changing data while another part of the program is using it.
  • Crashpad: Chrome's crash reporter, which runs outside the renderer sandbox on Windows.
  • Deoptimization: the switch from optimised code back to slower, more general code when an assumption stops holding.
  • Detach: making an ArrayBuffer and its views unusable after it has been transferred.
  • Demuxer: the component that separates a media file into its parts.
  • Double: a number with a fractional part, stored in double precision.
  • Deduplication: letting two rebuilt objects share one underlying object.
  • Exploit: a set of steps that makes software do something its makers did not intend.
  • Flag: an option passed when creating something, such as a thread.
  • Full chain: an exploit that strings several bugs together to reach a deeper goal.
  • Garbage collection: automatic freeing of memory that is no longer used.
  • GiB (gibibyte): about a thousand million bytes.
  • Gin: a Chrome component that provides general-purpose communication between parts of the browser.
  • Global: a variable shared across a whole program.
  • Heap: the area of memory where a program's objects are allocated.
  • Heap overflow: a write that goes past the end of an allocated block into neighbouring memory.
  • HeapNumber: V8's small box in memory that holds a double-precision number.
  • Hexadecimal: a base-16 way of writing numbers, convenient for flags and addresses.
  • ImageDecoder: the browser feature that turns compressed image data into pixels.
  • Immediate: a value written directly into an instruction rather than fetched from elsewhere.
  • Indirect call: a call whose target address is held in a variable rather than fixed in the code.
  • Interpreter: a program that reads code and carries out each instruction as it goes.
  • Invariant: a rule that is assumed always to hold.
  • Island hopping: an exploit technique that scatters small instruction fragments and links them with short jumps.
  • JavaScript: the programming language of web pages.
  • JIT: just-in-time compilation, translating code to machine code while the program runs.
  • Liftoff: one of V8's compilers for WebAssembly.
  • Literal: a fixed value written directly in code, such as 42.
  • Machine code: the raw instructions a processor executes.
  • Maglev: V8's mid-tier optimising compiler.
  • Materialisation: building a real object in memory during deoptimization.
  • Mitigation: a defence that makes an attack harder.
  • Native code: code that runs directly on the processor, outside the JavaScript engine.
  • Offset: a distance in bytes from a known starting point.
  • Page: the fixed-size unit, typically 4096 bytes, in which operating systems manage memory.
  • PartitionAlloc: Chrome's memory allocator.
  • Payload: the part of an exploit that does the final work.
  • Pixel: one dot of colour in an image.
  • Pointer: a memory address.
  • Pointer compression: storing references as short offsets within a reserved region instead of full addresses.
  • Position-independent code: code that can run correctly wherever it is loaded, without relocation.
  • Process: a running program that the operating system keeps separate from others.
  • Proof of concept: a small demonstration that a bug is real.
  • Race: a situation whose outcome depends on exact timing.
  • Register: a small storage slot inside the processor.
  • Relocation: an adjustment the loader makes when a program is placed at a different address than it was built for.
  • Renderer: the Chrome process that displays a page.
  • Renderer sandbox: the operating-system restrictions that keep the renderer away from the rest of the machine.
  • Root cause: the underlying reason a bug exists.
  • Shadow stack: a protected second copy of return addresses used by CET.
  • Signature check: a check that a function is called with the right kind of arguments.
  • Stride: the number of bytes from the start of one row of pixels to the start of the next.
  • TEB (thread environment block): a per-thread data structure Windows keeps for each thread.
  • Thread: one sequence of instructions a program is executing.
  • Threat model: an official list of what a defence does and does not protect against.
  • TOCTOU (time of check to time of use): a bug where something changes between a check and the later use of what was checked.
  • Transfer: handing over ownership of an ArrayBuffer, which detaches the original.
  • Uint8Array: a JavaScript object that reads and writes a block of bytes as unsigned 8-bit numbers.
  • V8: the part of Chrome that runs JavaScript.
  • V8 sandbox: V8's reserved 4 GiB region that contains memory corruption.
  • View: a JavaScript object that reads and writes the bytes of an ArrayBuffer.
  • Virtual call: a call whose target is looked up through a vtable at runtime.
  • VRP (Vulnerability Reward Program): a programme that pays researchers for reporting security bugs.
  • Vtable (virtual method table): a list of function addresses a C++ object uses to find its methods.
  • WebAssembly (Wasm): a fast, low-level language web pages can run in the browser.
  • WebCodecs: a browser feature that lets web pages decode audio and video.
  • WebP: an image format; an animated WebP contains several frames shown in sequence.
  • Write barrier: bookkeeping that tells the garbage collector a new reference exists.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.