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

Out of bounds write in V8 (CVE-2026-4450)

A time-of-check to time-of-use (TOCTOU) length mismatch in V8's key enumeration path allows an out-of-bounds write when a growable shared array buffer is concurrently grown. An attacker could trigger a crash or potentially achieve memory corruption.

qymag1c Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 21 days

Steps to reproduce the problem

run with: Download worker.js and poc.js and put them in the same directory. d8 poc.js

Problem Description

Foreword

Since this vulnerability and the previous report https://issues.chromium.org/issues/487768771 were introduced in the same commit, I suspect they will most likely be assigned to the same Google developer.

To prevent unnecessary issue merging, please allow me to clarify here that these two vulnerabilities are not caused by the same code. This issue is in the key enumeration path, not the values/entries path.

Root Cause

TOCTOU length mismatch in the key-enumeration pipeline, compounded by missing tail-reservation enforcement, leading to OOB writes.

  • PrependElementIndicesImpl size estimation uses snapshot A
  • DirectCollectElementIndicesImpl iteration uses snapshot B
  • If B > A, list->set(insertion_index, ...) can exceed list bounds

Additional risk in this path:

  • nof_indices can consume space reserved for nof_property_keys
  • later CopyObjectToObjectElements(... nof_indices, nof_property_keys) can become OOB copy as well

Trigger Path and Call Chain

This issue is in the key enumeration path, not the values/entries path.

Key chain:

  1. Object.keys(ta) / for-in / JSON.stringify(ta) enters key collection.
  2. PrependElementIndicesImpl estimates size and allocates using one length snapshot:
    • src/objects/elements.cc:1426
    • src/objects/elements.cc:1438 / src/objects/elements.cc:1455
  3. DirectCollectElementIndicesImpl reads length again and writes:
    • Length read: src/objects/elements.cc:1389
    • Write sites: src/objects/elements.cc:1399 / src/objects/elements.cc:1403
  4. Concurrent sab.grow(...) makes second length exceed first allocation, causing OOB writes.

Additional Comments

Introduced by commit

commit  3160edf011b11347dd741c1c09a7fcb57bb479c4
[rab/gsab] ResizableArrayBuffer / GrowableSharedArrayBuffer part 1

Detailed list of changes:
https://docs.google.com/document/d/15i4-SZDzFDW7FfclIYuZEhFn-q-KpobCBy23x9zZZLc/edit?usp=sharing

Bug: v8:11111
Change-Id: I931003bd4552cf91d57de95af04a427a9e6d6ac9

I will provide poc_debug.js in the comments section. If you encounter issues with ASAN version verification, please use the poc_debug.js.

Summary

Concurrent GSAB Growth Causes OOB Write in Key Enumeration

Custom Questions

Type of crash:

tab

Crash state:

To differentiate this from the report at https://issues.chromium.org/issues/487768771, a pocjs script that can cause the release version to crash is constructed here. This out-of-bounds write might trigger a check, and running it multiple times can trigger crashes in different locations.

Received signal 11 SEGV_ACCERR 6b3b69241848

==== C stack trace ===============================

out/x64.asan/d8(__interceptor_backtrace+0x46)[0x5fe982ffeb36]
out/x64.asan/d8(+0x17b06e0)[0x5fe9834416e0]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x707cbe445330]
out/x64.asan/d8(+0x278bd26)[0x5fe98441cd26]
out/x64.asan/d8(+0x278a5c6)[0x5fe98441b5c6]
out/x64.asan/d8(+0x2684995)[0x5fe984315995]
out/x64.asan/d8(+0x26a936f)[0x5fe98433a36f]
out/x64.asan/d8(+0x6610fb6)[0x5fe9882a1fb6]
[end of stack trace]
Segmentation fault

Reporter credit:

QYmag1c

Additional Data

Category: Security
Chrome Channel: Not sure
Regression: N/A \

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a TOCTOU length mismatch: the size estimation uses one snapshot of the array length, but the iteration uses a later snapshot, and a concurrent grow makes the second length larger, so writes exceed the allocated bounds.

Impact

This out-of-bounds write could trigger a crash and may lead to memory corruption, though the report only demonstrates a segmentation fault.

What the attacker needed

Ability to run JavaScript in V8; concurrent grow of a shared array buffer

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This report describes a bug in V8, the JavaScript engine used by Chrome. When JavaScript code lists the keys of a special resizable array, the engine first checks the array's size and then later uses that size to write into a buffer. If another thread changes the array's size in between, the write can go past the end of the buffer, causing a crash or memory corruption.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by qymag1c

View all

6 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.