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

Type Confusion in V8 (CVE-2026-10910)

A bug in V8's Turboshaft compiler's late load elimination allowed a stale map check to be reused after an aliased map transition, bypassing the WrongMap deoptimization guard. An attacker could potentially achieve type confusion by exploiting this stale map primitive in optimized JavaScript code.

Mufeed VH Follow

Originally disclosed on Chrome VRP

Bounty$500 High View original
  • Fix shipped in 32 days

Security Bug

VULNERABILITY DETAILS

V8 Turboshaft Late Load Elimination can reuse a stale LoadMapField across an aliased map transition. The root cause is in LateLoadEliminationAnalyzer::ProcessStore():

v8/src/compiler/turboshaft/late-load-elimination-reducer.cc

// Updates known stored values first.
if (!invalidate_maybe_aliasing) memory_.Invalidate(store);
memory_.Insert(store);

// Clears map facts only after invalidation already used them.
if (store.offset == HeapObject::kMapOffset && !store.index().valid()) {
  WipeAllMaps();
}

memory_.Invalidate(store) calls InvalidateAtOffset(), which uses object_maps_ through BasesCouldAlias() to decide whether a cached load's base can alias the store base. Separately, ProcessCall() invalidates memory but does not clear object_maps_:

// The call could modify arbitrary memory, so we invalidate every
// potentially-aliasing object.
memory_.InvalidateMaybeAliasing();

A JavaScript caller can therefore create this sequence in optimized code:

  1. x.x emits CheckMaps(x, A) / AssumeMap(x, A).
  2. An opaque callback transitions x from map A to map B. ProcessCall() wipes cached memory but leaves object_maps_[x] = A stale.
  3. y.x emits CheckMaps(y, B) / AssumeMap(y, B).
  4. x == sentinel lowers to a receiver check that performs a post-call LoadMapField(x) without AssumeMap(x, B), caching the B map load while object_maps_[x] is still A.
  5. y.z = 99 transitions y from B to C. During ProcessStore(), InvalidateAtOffset(kMapOffset, y) sees object_maps_[y] = B and stale object_maps_[x] = A, concludes the bases cannot alias, and does not invalidate the cached LoadMapField(x).
  6. A later x.y CheckMaps(x, B) reuses the stale cached map load. The Turboshaft load-elimination verifier confirms that the replacement differs from the actual runtime load when x === y.

This bypasses the WrongMap deoptimization that should guard optimized code after the map transition. The attached d8 harness deterministically aborts under --turboshaft-verify-load-elimination with:

abort: Turboshaft's load elimination wrongly eliminated a Load

Without the verifier, the same optimized aliased call completes without the WrongMap deopt that occurs in safe variants, demonstrating that the stale map check is accepted.

VERSION

Chrome Version: 149.0.7821.0, local V8/Chromium ASan d8 build from Chromium checkout

Operating System: Ubuntu 22.04.5 LTS x86_64

Build target: out/asan/d8

REPRODUCTION CASE

Attachments:

  • poc.html — Chrome browser PoC for direct local reproduction
  • chrome_parent_lle_browser.log — direct Chrome run showing browser console milestones, LLE trace, verifier abort, and renderer crash signal
  • poc_d8.js — deterministic d8 trigger for faster compiler triage
  • lle_verifier_crash.log — full d8 verifier crash and LateLoadElimination trace
  • lle_noverify.log — same d8 harness without verifier, showing no WrongMap deopt on the aliased call

Browser repro steps:

  1. Build local ASan Chrome from the Chromium checkout:
Bash
gn gen out/asan --args='is_asan=true is_debug=false symbol_level=1 use_sysroot=true treat_warnings_as_errors=false'
autoninja -C out/asan chrome
  1. Serve the attached poc.html locally:
Bash
python3 -m http.server 8123 --bind 127.0.0.1
  1. Run Chrome directly against the PoC. The --js-flags enable deterministic optimization and the Turboshaft load-elimination verifier; the source tree/binary are otherwise unmodified.
Bash
ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' \
  out/asan/chrome \
    --user-data-dir=/tmp/chrome-lle-poc \
    --no-first-run \
    --no-default-browser-check \
    --disable-background-networking \
    --disable-sync \
    --enable-logging=stderr \
    --js-flags='--allow-natives-syntax --turboshaft --no-maglev --turboshaft-load-elimination --turboshaft-verify-load-elimination --turboshaft-trace-load-elimination --trace-deopt' \
    http://127.0.0.1:8123/poc.html

Observed browser result:

[poc] starting warmup
[poc] optimizing victim on non-aliased call
[poc] non-aliased result: 1142
[poc] triggering aliased call; verifier should abort vulnerable renderer
[poc] target before: {"x":1337}

>>>> InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>> Found potential replacement at offset 72
>>> Confirming replacement
abort: Turboshaft's load elimination wrongly eliminated a Load
Received signal 4 ILL_ILLOPN

The attached chrome_parent_lle_browser.log contains the complete direct browser run.

D8 repro steps:

  1. Build d8 from the Chromium checkout:
Bash
gn gen out/asan --args='is_asan=true is_debug=false symbol_level=1 use_sysroot=true treat_warnings_as_errors=false'
autoninja -C out/asan d8
  1. Run the deterministic verifier repro:
Bash
ASAN_OPTIONS=detect_leaks=0:abort_on_error=1 \
  out/asan/d8 \
    --allow-natives-syntax \
    --turboshaft \
    --no-maglev \
    --turboshaft-load-elimination \
    --turboshaft-trace-load-elimination \
    --turboshaft-verify-load-elimination \
    --trace-deopt \
    poc_d8.js

Observed result:

>>>> InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>>>> InvalidateAtOffset: invalidating MemoryAddress{base=4, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>> Wiping all maps

> ProcessLoad(93)
>> Found potential replacement at offset 72
>>> Confirming replacement
...
[before] {"x":1337}
abort: Turboshaft's load elimination wrongly eliminated a Load
  1. Optional confirmation without the verifier:
Bash
out/asan/d8 \
  --allow-natives-syntax \
  --turboshaft \
  --no-maglev \
  --turboshaft-load-elimination \
  --trace-deopt \
  poc_d8.js

Observed result:

[test] 1142 status=41
[before] {"x":1337}
[attack] 2716 status=41
[after] {"x":1337,"y":42,"z":99}

There is no wrong map deopt for the aliased [attack] call in this run, whereas safe variants deopt at the post-transition access.

Type of crash: Renderer/V8 JIT verifier abort in optimized Turboshaft code.

Crash State:

abort: Turboshaft's load elimination wrongly eliminated a Load

==== JS stack trace =========================================

    0: ExitFrame
    1: victim [.../poc_d8.js:~6]
    2: /* anonymous */ [.../poc_d8.js:31]

Relevant LLE trace excerpt:

ProcessCall(40)
  InvalidateMaybeAliasing
  Invalidating MemoryAddress{base=0, offset=12}
  Invalidating MemoryAddress{base=0, offset=0}

ProcessLoad(59)
ProcessAssumeMap(63)        // y has B
ProcessLoad(72)             // bare post-call LoadMapField(x), no AssumeMap(x,B)

ProcessStore(89)            // y.z map transition B -> C
  InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, offset=0}
  InvalidateAtOffset: invalidating MemoryAddress{base=4, offset=0}
  Wiping all maps            // too late

ProcessLoad(93)
  Found potential replacement at offset 72
  Confirming replacement

SECURITY IMPACT

The PoC proves that optimized code can accept a stale object map after an aliased map transition and bypass the WrongMap deoptimization guard. The attached named-property harness uses a layout where the read remains benign, so the verifier is the deterministic signal. The same stale-CheckMaps primitive applied to elements-kind or layout-specialized accesses can produce type confusion (for example, double-elements code operating after an object-elements transition). The V8 sandbox does not make stale map-specialized optimized code semantically safe; it only constrains follow-on exploitation primitives.

RECOMMENDED FIX

For map-offset stores, clear map facts before any invalidation routine can consult them:

C++
const bool is_map_store =
    store.offset == HeapObject::kMapOffset && !store.index().valid();
if (is_map_store) {
  WipeAllMaps();
}
if (!invalidate_maybe_aliasing) memory_.Invalidate(store);
memory_.Insert(store);

Also consider clearing map facts across arbitrary effectful calls:

C++
WipeAllMaps();
memory_.InvalidateMaybeAliasing();

If the call-site precision cost is too high, add a dedicated map-store invalidation mode that never relies on object_maps_ to preserve active map-offset loads.

CREDIT INFORMATION

Reporter credit: Mufeed VH from Winfunc Research (winfunc.com)

The original report as published on the Chromium issue tracker, by Mufeed VH from Winfunc Research (winfunc.com). 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. 8 min read.

Context

V8 is Chrome's JavaScript engine, and Turboshaft is its current compiler pipeline for optimised code. One of the optimisations Turboshaft performs is late load elimination (LLE): within a compiled function it tracks loads and stores to object memory and removes a load when it can prove that a previously cached value is still valid at that point. To do this safely it keeps two pieces of state: a memory model of cached loads and stores, and a set of map facts (object_maps_) recording which hidden class (map) each object is known to have.

This report describes a type confusion in that analysis. A stale LoadMapField can survive an aliased map transition, so optimised code accepts a map check that no longer matches the object's real map and skips the WrongMap deoptimisation that should protect it. The issue was reported through the Chrome VRP by Mufeed VH of Winfunc Research and is tracked as CVE-2026-10910.

Setup

The testing was done against Chrome 149.0.7821.0, using a local V8/Chromium ASan d8 build from a Chromium checkout on Ubuntu 22.04.5 LTS x86_64. The build target was out/asan/d8, and a browser build of the same checkout was used for the end-to-end reproduction. The source tree and binary were otherwise unmodified; the behaviour is driven entirely by --js-flags that enable deterministic optimisation and the Turboshaft load-elimination verifier.

The report lists five attachments:

  • poc.html, a Chrome browser PoC for direct local reproduction
  • chrome_parent_lle_browser.log, a direct Chrome run showing browser console milestones, the LLE trace, the verifier abort and the renderer crash signal
  • poc_d8.js, a deterministic d8 trigger for faster compiler triage
  • lle_verifier_crash.log, the full d8 verifier crash and LateLoadElimination trace
  • lle_noverify.log, the same d8 harness without the verifier, showing no WrongMap deopt on the aliased call

Finding it

The starting point is LateLoadEliminationAnalyzer::ProcessStore() in v8/src/compiler/turboshaft/late-load-elimination-reducer.cc. The order of operations there is the problem:

v8/src/compiler/turboshaft/late-load-elimination-reducer.cc

// Updates known stored values first.
if (!invalidate_maybe_aliasing) memory_.Invalidate(store);
memory_.Insert(store);

// Clears map facts only after invalidation already used them.
if (store.offset == HeapObject::kMapOffset && !store.index().valid()) {
  WipeAllMaps();
}

memory_.Invalidate(store) calls InvalidateAtOffset(), which consults object_maps_ through BasesCouldAlias() to decide whether a cached load's base can alias the base of the store. The map facts are wiped only after that decision has already been made, so the invalidation runs against map information that the store itself is about to invalidate.

A second gap sits in ProcessCall(), which invalidates memory but does not clear object_maps_:

// The call could modify arbitrary memory, so we invalidate every
// potentially-aliasing object.
memory_.InvalidateMaybeAliasing();

Because an opaque callback can transition an object's map, leaving object_maps_ untouched across a call means the analyser can keep believing an object still has a map it no longer has. Combined with the ordering bug in ProcessStore(), that stale fact is then used to conclude that two bases cannot alias when in fact they are the same object.

Exploitation

A JavaScript caller can build the following sequence in optimised code.

Step 1: establish a map fact for x

x.x emits CheckMaps(x, A) / AssumeMap(x, A), so the analyser records object_maps_[x] = A.

Step 2: transition x through an opaque callback

An opaque callback transitions x from map A to map B. ProcessCall() wipes cached memory but leaves object_maps_[x] = A stale.

Step 3: establish a map fact for y

y.x emits CheckMaps(y, B) / AssumeMap(y, B), recording object_maps_[y] = B.

Step 4: cache a bare map load for x

x == sentinel lowers to a receiver check that performs a post-call LoadMapField(x) without AssumeMap(x, B). This caches the B map load for x while object_maps_[x] is still A.

Step 5: transition y and fail to invalidate the cached load

y.z = 99 transitions y from B to C. During ProcessStore(), InvalidateAtOffset(kMapOffset, y) sees object_maps_[y] = B and the stale object_maps_[x] = A, concludes the bases cannot alias, and does not invalidate the cached LoadMapField(x).

Step 6: reuse the stale map load

A later x.y CheckMaps(x, B) reuses the stale cached map load. The Turboshaft load-elimination verifier confirms that the replacement differs from the actual runtime load when x === y.

This bypasses the WrongMap deoptimisation that should guard optimised code after the map transition. The attached d8 harness deterministically aborts under --turboshaft-verify-load-elimination with:

abort: Turboshaft's load elimination wrongly eliminated a Load

Without the verifier, the same optimised aliased call completes without the WrongMap deopt that occurs in safe variants, demonstrating that the stale map check is accepted.

Browser reproduction

  1. Build local ASan Chrome from the Chromium checkout:
Bash
gn gen out/asan --args='is_asan=true is_debug=false symbol_level=1 use_sysroot=true treat_warnings_as_errors=false'
autoninja -C out/asan chrome
  1. Serve the attached poc.html locally:
Bash
python3 -m http.server 8123 --bind [redacted]
  1. Run Chrome directly against the PoC. The --js-flags enable deterministic optimisation and the Turboshaft load-elimination verifier; the source tree/binary are otherwise unmodified.
Bash
ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' \
  out/asan/chrome \
    --user-data-dir=/tmp/chrome-lle-poc \
    --no-first-run \
    --no-default-browser-check \
    --disable-background-networking \
    --disable-sync \
    --enable-logging=stderr \
    --js-flags='--allow-natives-syntax --turboshaft --no-maglev --turboshaft-load-elimination --turboshaft-verify-load-elimination --turboshaft-trace-load-elimination --trace-deopt' \
    http://[redacted]:8123/poc.html

Observed browser result:

[poc] starting warmup
[poc] optimizing victim on non-aliased call
[poc] non-aliased result: 1142
[poc] triggering aliased call; verifier should abort vulnerable renderer
[poc] target before: {"x":1337}

>>>> InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>> Found potential replacement at offset 72
>>> Confirming replacement
abort: Turboshaft's load elimination wrongly eliminated a Load
Received signal 4 ILL_ILLOPN

The attached chrome_parent_lle_browser.log contains the complete direct browser run.

d8 reproduction

  1. Build d8 from the Chromium checkout:
Bash
gn gen out/asan --args='is_asan=true is_debug=false symbol_level=1 use_sysroot=true treat_warnings_as_errors=false'
autoninja -C out/asan d8
  1. Run the deterministic verifier repro:
Bash
ASAN_OPTIONS=detect_leaks=0:abort_on_error=1 \
  out/asan/d8 \
    --allow-natives-syntax \
    --turboshaft \
    --no-maglev \
    --turboshaft-load-elimination \
    --turboshaft-trace-load-elimination \
    --turboshaft-verify-load-elimination \
    --trace-deopt \
    poc_d8.js

Observed result:

>>>> InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>>>> InvalidateAtOffset: invalidating MemoryAddress{base=4, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>> Wiping all maps

> ProcessLoad(93)
>> Found potential replacement at offset 72
>>> Confirming replacement
...
[before] {"x":1337}
abort: Turboshaft's load elimination wrongly eliminated a Load
  1. Optional confirmation without the verifier:
Bash
out/asan/d8 \
  --allow-natives-syntax \
  --turboshaft \
  --no-maglev \
  --turboshaft-load-elimination \
  --trace-deopt \
  poc_d8.js

Observed result:

[test] 1142 status=41
[before] {"x":1337}
[attack] 2716 status=41
[after] {"x":1337,"y":42,"z":99}

There is no wrong map deopt for the aliased [attack] call in this run, whereas safe variants deopt at the post-transition access.

The crash is a renderer/V8 JIT verifier abort in optimised Turboshaft code. Crash state:

abort: Turboshaft's load elimination wrongly eliminated a Load

==== JS stack trace =========================================

    0: ExitFrame
    1: victim [.../poc_d8.js:~6]
    2: /* anonymous */ [.../poc_d8.js:31]

Relevant LLE trace excerpt:

ProcessCall(40)
  InvalidateMaybeAliasing
  Invalidating MemoryAddress{base=0, offset=12}
  Invalidating MemoryAddress{base=0, offset=0}

ProcessLoad(59)
ProcessAssumeMap(63)        // y has B
ProcessLoad(72)             // bare post-call LoadMapField(x), no AssumeMap(x,B)

ProcessStore(89)            // y.z map transition B -> C
  InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, offset=0}
  InvalidateAtOffset: invalidating MemoryAddress{base=4, offset=0}
  Wiping all maps            // too late

ProcessLoad(93)
  Found potential replacement at offset 72
  Confirming replacement

Root cause

The bug is an ordering mistake in ProcessStore(). For a store to the map offset, the analyser must forget its map facts before any invalidation routine can consult them, because the store itself changes the map that those facts describe. Instead, memory_.Invalidate(store) runs first, InvalidateAtOffset() uses object_maps_ through BasesCouldAlias() to decide aliasing, and only then does WipeAllMaps() run. The invalidation decision is therefore made with map facts that are already wrong.

The second contributing factor is that ProcessCall() invalidates memory but does not clear object_maps_. An opaque call can transition an object's map, so map facts are not stable across it. Leaving them in place lets a stale object_maps_[x] = A survive the callback that moved x to map B.

The existing defence is the WrongMap deoptimisation, which should fire when optimised code reaches a map check whose assumed map no longer matches the object. Here the check is satisfied by the stale cached LoadMapField, so the deopt never happens. The Turboshaft load-elimination verifier catches the mismatch.

Impact

The PoC proves that optimised code can accept a stale object map after an aliased map transition and bypass the WrongMap deoptimisation guard. The attached named-property harness uses a layout where the read remains benign, so the verifier is the deterministic signal. The same stale-CheckMaps primitive applied to elements-kind or layout-specialised accesses can produce type confusion, for example double-elements code operating after an object-elements transition. The V8 sandbox does not make stale map-specialised optimised code semantically safe; it only constrains follow-on exploitation primitives.

Fix

For map-offset stores, clear map facts before any invalidation routine can consult them:

C++
const bool is_map_store =
    store.offset == HeapObject::kMapOffset && !store.index().valid();
if (is_map_store) {
  WipeAllMaps();
}
if (!invalidate_maybe_aliasing) memory_.Invalidate(store);
memory_.Insert(store);

The report also suggests clearing map facts across arbitrary effectful calls:

C++
WipeAllMaps();
memory_.InvalidateMaybeAliasing();

If the call-site precision cost of that is too high, the alternative is a dedicated map-store invalidation mode that never relies on object_maps_ to preserve active map-offset loads.

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.

What happened, in plain words

Chrome runs the JavaScript on web pages using a component called V8. V8 does not simply read a program line by line forever; when it notices that a piece of code runs again and again, it rewrites that code into a much faster form. This rewriting is called optimisation, and the fast code it produces is called optimised code.

To make code fast, V8 makes assumptions. If a program keeps using an object that looks the same way every time, V8 assumes it will keep looking the same way and skips re-checking. The "way an object looks" has a technical name: its map. You can think of a map as the label on a box that says what is inside and in what order. If the contents change, the label must change too.

This report is about a bug where V8 kept an old label after the contents had changed. Because of that, fast code trusted a check that no longer matched reality. In security terms this is a type confusion: the program treats a value as one kind of thing when it is really another kind. The bug was found by Mufeed VH of Winfunc Research and reported through Google's Chrome Vulnerability Reward Program (VRP), a scheme that pays people for reporting security bugs. It is tracked as CVE-2026-10910.

Context

V8 is Chrome's JavaScript engine, the part that reads and runs the JavaScript in every page you visit. Turboshaft is the name of the current part of V8 that produces optimised code.

One of the tricks Turboshaft uses is called late load elimination, shortened to LLE. A "load" means reading a value out of an object's memory. A "store" means writing a value into it. If a program reads the same thing twice and nothing has written to it in between, the second read is pointless: the value is already known. LLE spots these cases and removes the second read, reusing the earlier value. This is like checking the time on your watch, then answering "what time is it?" a minute later without looking again, because you know nothing changed your watch.

To do this safely, LLE keeps two pieces of bookkeeping:

  1. A memory model: a record of which values it has cached from earlier reads and writes.
  2. A set of map facts, stored in something called object_maps_: a record of which map (which object shape) each object is currently believed to have.

The bug is a type confusion in that bookkeeping. An old cached read of an object's map survives a change to that object's map, so optimised code accepts a map check that no longer matches the object's real map. It then skips a safety mechanism called WrongMap deoptimisation, which is supposed to throw the fast code away and fall back to the slow, safe version when an assumption turns out to be wrong.

Setup

The testing was done against Chrome 149.0.7821.0, using a local build of V8 and Chromium with a tool called ASan (AddressSanitizer, which helps catch memory errors) from a Chromium source checkout, on Ubuntu 22.04.5 LTS x86_64. The build target was out/asan/d8. A browser build of the same checkout was used for the end-to-end reproduction. The source tree and binary were otherwise unmodified; the behaviour is driven entirely by --js-flags, command-line switches that tell V8 how to behave, enabling deterministic optimisation and the Turboshaft load-elimination verifier.

The report lists five attachments:

  • poc.html, a Chrome browser proof of concept (PoC, a small program that demonstrates the bug) for direct local reproduction
  • chrome_parent_lle_browser.log, a direct Chrome run showing browser console milestones, the LLE trace, the verifier abort and the renderer crash signal
  • poc_d8.js, a deterministic d8 trigger for faster compiler triage
  • lle_verifier_crash.log, the full d8 verifier crash and LateLoadElimination trace
  • lle_noverify.log, the same d8 harness without the verifier, showing no WrongMap deopt on the aliased call

A few of those terms need unpacking. d8 is V8's standalone command-line shell: a tiny program that runs JavaScript without a browser, which makes testing the engine much quicker. A harness is a small test program built around the thing being tested. A trace is a running log of what the engine did internally. A deopt (deoptimisation) is V8 giving up on optimised code and returning to the safe, slower version. A renderer is the Chrome process that draws a page and runs its JavaScript; Chrome keeps it separate from the rest of the browser so a crash there does not take everything down.

Finding it

The starting point is a function called LateLoadEliminationAnalyzer::ProcessStore() in the file v8/src/compiler/turboshaft/late-load-elimination-reducer.cc. This function runs every time the analyser sees a store (a write) in the code it is optimising. The order of operations inside it is the problem:

v8/src/compiler/turboshaft/late-load-elimination-reducer.cc

// Updates known stored values first.
if (!invalidate_maybe_aliasing) memory_.Invalidate(store);
memory_.Insert(store);

// Clears map facts only after invalidation already used them.
if (store.offset == HeapObject::kMapOffset && !store.index().valid()) {
  WipeAllMaps();
}

Line by line:

  • The first line is just the file name, telling the reader where this code lives.
  • // Updates known stored values first. is a comment, a note for humans that the computer ignores.
  • if (!invalidate_maybe_aliasing) memory_.Invalidate(store); means: unless this store is of the kind that might affect anything, tell the memory model to throw away cached reads that this store could have changed. Invalidate means "mark as no longer trustworthy".
  • memory_.Insert(store); records the new store in the memory model, so later reads can use it.
  • // Clears map facts only after invalidation already used them. is the comment that names the bug: the map facts are cleared too late.
  • if (store.offset == HeapObject::kMapOffset && !store.index().valid()) checks whether this store is writing to the special slot in the object that holds its map. HeapObject::kMapOffset is the fixed position of that slot, and !store.index().valid() means the write is to a plain field, not into an array by position.
  • WipeAllMaps(); throws away all recorded map facts.

The key detail is that memory_.Invalidate(store) calls another function, InvalidateAtOffset(), which consults object_maps_ through a helper called BasesCouldAlias() to decide whether a cached read's object could be the same object as the one being written. "Alias" here means two names pointing at the same thing in memory, like two people having the same house key. The map facts are wiped only after that decision has already been made, so the decision runs against map information that the store itself is about to make wrong.

A second gap sits in ProcessCall(), which handles a function call. It invalidates memory but does not clear object_maps_:

// The call could modify arbitrary memory, so we invalidate every
// potentially-aliasing object.
memory_.InvalidateMaybeAliasing();

Line by line:

  • The two comment lines explain the reasoning: a call to unknown code could change anything in memory, so every cached read that might be affected is thrown away.
  • memory_.InvalidateMaybeAliasing(); does exactly that for the memory model.

What it does not do is clear the map facts. Because a callback (a function passed in from outside, whose contents the optimiser cannot see) can change an object's map, leaving object_maps_ untouched across a call means the analyser can keep believing an object still has a map it no longer has. Combined with the ordering bug in ProcessStore(), that stale fact is then used to conclude that two objects cannot be the same when in fact they are.

Exploitation

A JavaScript caller can build the following sequence in optimised code. "Exploitation" here means arranging the program so the bug actually happens; the report's proof of concept does this deliberately.

Step 1: establish a map fact for x

x.x emits CheckMaps(x, A) / AssumeMap(x, A), so the analyser records object_maps_[x] = A.

In plain words: the code reads a property called x from an object called x. To do that quickly, the optimiser first checks that the object has map A (its expected shape) and then assumes it for the rest of the function. It writes down "object x has map A".

Step 2: transition x through an opaque callback

An opaque callback transitions x from map A to map B. ProcessCall() wipes cached memory but leaves object_maps_[x] = A stale.

A map transition is simply a change of shape: adding or removing a property changes the object's map from A to B. The callback is "opaque" because the optimiser cannot see inside it, so it must assume the worst about memory. It does clear its cached reads, but it forgets to clear the note saying "x has map A", which is now wrong.

Step 3: establish a map fact for y

y.x emits CheckMaps(y, B) / AssumeMap(y, B), recording object_maps_[y] = B.

The code now reads a property from a second object, y, checks that it has map B, and records that fact.

Step 4: cache a bare map load for x

x == sentinel lowers to a receiver check that performs a post-call LoadMapField(x) without AssumeMap(x, B). This caches the B map load for x while object_maps_[x] is still A.

"Lowers" means the compiler turns a high-level operation into simpler machine-level steps. Comparing x with a special marker value (sentinel) becomes a check on the object, and that check reads x's map field directly. That read gets cached, so the analyser now holds "x's map is B" as a cached value, while its separate note still says "x has map A". The two records disagree.

Step 5: transition y and fail to invalidate the cached load

y.z = 99 transitions y from B to C. During ProcessStore(), InvalidateAtOffset(kMapOffset, y) sees object_maps_[y] = B and the stale object_maps_[x] = A, concludes the bases cannot alias, and does not invalidate the cached LoadMapField(x).

Writing a new property z onto y changes y's shape from B to C. The analyser asks whether this write could affect the cached read of x's map. It looks at its notes: y has B, x has A. Different maps, so it decides they must be different objects, and leaves the cached read alone. But if x and y are actually the same object, that reasoning is wrong.

Step 6: reuse the stale map load

A later x.y CheckMaps(x, B) reuses the stale cached map load. The Turboshaft load-elimination verifier confirms that the replacement differs from the actual runtime load when x === y.

x === y is JavaScript's strict equality test: it is true when both names refer to the very same object. In that case the cached value and the real value disagree, and the verifier catches it.

This bypasses the WrongMap deoptimisation that should guard optimised code after the map transition. The attached d8 harness deterministically aborts under --turboshaft-verify-load-elimination with:

abort: Turboshaft's load elimination wrongly eliminated a Load

"Deterministically" means it happens every time, not just occasionally, which makes it a reliable test. "Aborts" means the program stops itself on purpose because the verifier found a contradiction.

Without the verifier, the same optimised aliased call completes without the WrongMap deopt that occurs in safe variants, demonstrating that the stale map check is accepted.

Browser reproduction

  1. Build local ASan Chrome from the Chromium checkout:
Bash
gn gen out/asan --args='is_asan=true is_debug=false symbol_level=1 use_sysroot=true treat_warnings_as_errors=false'
autoninja -C out/asan chrome

Line by line:

  • gn gen out/asan --args='...' asks GN, Chromium's build-file generator, to prepare a build in a folder called out/asan. The arguments switch on ASan (is_asan=true), build a release-style build with some debug information (is_debug=false, symbol_level=1), use the system libraries (use_sysroot=true) and do not treat compiler warnings as errors (treat_warnings_as_errors=false).
  • autoninja -C out/asan chrome runs the actual build of the Chrome target inside that folder.
  1. Serve the attached poc.html locally:
Bash
python3 -m http.server 8123 --bind [redacted]

Line by line:

  • python3 -m http.server 8123 starts Python's built-in web server on port 8123.
  • --bind [redacted] restricts it to the local machine only, so nothing is exposed to the network.
  1. Run Chrome directly against the PoC. The --js-flags enable deterministic optimisation and the Turboshaft load-elimination verifier; the source tree/binary are otherwise unmodified.
Bash
ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' \
  out/asan/chrome \
    --user-data-dir=/tmp/chrome-lle-poc \
    --no-first-run \
    --no-default-browser-check \
    --disable-background-networking \
    --disable-sync \
    --enable-logging=stderr \
    --js-flags='--allow-natives-syntax --turboshaft --no-maglev --turboshaft-load-elimination --turboshaft-verify-load-elimination --turboshaft-trace-load-elimination --trace-deopt' \
    http://[redacted]:8123/poc.html

Line by line:

  • ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' configures ASan: do not report memory leaks, stop immediately on the first error, and turn memory addresses into readable function names.
  • out/asan/chrome is the browser you just built.
  • --no-first-run and --no-default-browser-check skip Chrome's first-start screens.
  • http://[redacted]:8123/poc.html is the local test page.

Observed browser result:

[poc] starting warmup
[poc] optimizing victim on non-aliased call
[poc] non-aliased result: 1142
[poc] triggering aliased call; verifier should abort vulnerable renderer
[poc] target before: {"x":1337}

>>>> InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>> Found potential replacement at offset 72
>>> Confirming replacement
abort: Turboshaft's load elimination wrongly eliminated a Load
Received signal 4 ILL_ILLOPN

Line by line:

  • The [poc] lines are messages printed by the test page itself, so you can follow its progress. "Warmup" is the phase where the same code is run repeatedly so V8 decides to optimise it. The "non-aliased" run is the safe case, where the two objects are genuinely different, and it returns 1142.
  • The next line says the test is now doing the dangerous version, where the two names refer to the same object, and the verifier is expected to stop the renderer.
  • [poc] target before: {"x":1337} shows the object's contents before the attack.
  • The InvalidateAtOffset: not invalidating thanks for maps line is the analyser deciding, based on its stale map notes, that it does not need to throw away the cached read. "MemoryAddress{...}" is just a description of the memory location involved.
  • Found potential replacement at offset 72 and Confirming replacement show LLE reusing the cached value at position 72.
  • abort: Turboshaft's load elimination wrongly eliminated a Load is the verifier's verdict: LLE removed a read it should have kept.
  • Received signal 4 ILL_ILLOPN is the operating system reporting that the process stopped on an illegal instruction, which is how the deliberate abort appears from outside.

The attached chrome_parent_lle_browser.log contains the complete direct browser run.

d8 reproduction

  1. Build d8 from the Chromium checkout:
Bash
gn gen out/asan --args='is_asan=true is_debug=false symbol_level=1 use_sysroot=true treat_warnings_as_errors=false'
autoninja -C out/asan d8

This is the same preparation as before, but the second command builds the d8 target instead of chrome. d8 is much smaller and faster to build and run, which is why it is used for compiler work.

  1. Run the deterministic verifier repro:
Bash
ASAN_OPTIONS=detect_leaks=0:abort_on_error=1 \
  out/asan/d8 \
    --allow-natives-syntax \
    --turboshaft \
    --no-maglev \
    --turboshaft-load-elimination \
    --turboshaft-trace-load-elimination \
    --turboshaft-verify-load-elimination \
    --trace-deopt \
    poc_d8.js

Line by line:

  • ASAN_OPTIONS=detect_leaks=0:abort_on_error=1 again configures ASan to stop on the first error and ignore leaks.
  • out/asan/d8 is the standalone JavaScript shell.
  • The switches are the same V8 switches as in the browser run, one per line: allow internal functions, force Turboshaft, disable Maglev, enable load elimination, trace it, verify it, and trace deopts.
  • poc_d8.js is the test script.

Observed result:

>>>> InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>>>> InvalidateAtOffset: invalidating MemoryAddress{base=4, index=<invalid OpIndex>, offset=0, elem_size_log2=0, size=4}
>> Wiping all maps

> ProcessLoad(93)
>> Found potential replacement at offset 72
>>> Confirming replacement
...
[before] {"x":1337}
abort: Turboshaft's load elimination wrongly eliminated a Load

Line by line:

  • The first InvalidateAtOffset line is the wrong decision: the analyser declines to invalidate because of its map notes.
  • The second line shows a different memory location being invalidated correctly.
  • Wiping all maps shows the map facts finally being cleared, but only after the decision above was already made.
  • ProcessLoad(93) is the analyser handling a later read, and Found potential replacement at offset 72 shows it reusing the cached value from position 72.
  • Confirming replacement is the verifier checking that reuse, and the abort line is its conclusion.
  • [before] {"x":1337} is the object's contents printed by the test just before the crash.
  1. Optional confirmation without the verifier:
Bash
out/asan/d8 \
  --allow-natives-syntax \
  --turboshaft \
  --no-maglev \
  --turboshaft-load-elimination \
  --trace-deopt \
  poc_d8.js

This is the same command with the verifier switch removed. The point is to see what happens in a build that behaves like normal Chrome, where the verifier is not present.

Observed result:

[test] 1142 status=41
[before] {"x":1337}
[attack] 2716 status=41
[after] {"x":1337,"y":42,"z":99}

Line by line:

  • [test] 1142 status=41 is the safe, non-aliased run returning 1142.
  • [before] {"x":1337} is the object before the attack.

There is no wrong map deopt for the aliased [attack] call in this run, whereas safe variants deopt at the post-transition access. In other words, the safety net that should have caught the wrong assumption never fired.

The crash is a renderer/V8 JIT verifier abort in optimised Turboshaft code. JIT stands for just-in-time compilation: turning JavaScript into machine code while the program runs. Crash state:

abort: Turboshaft's load elimination wrongly eliminated a Load

==== JS stack trace =========================================

    0: ExitFrame
    1: victim [.../poc_d8.js:~6]
    2: /* anonymous */ [.../poc_d8.js:31]

A stack trace is a list of which function called which, innermost first.

Relevant LLE trace excerpt:

ProcessCall(40)
  InvalidateMaybeAliasing
  Invalidating MemoryAddress{base=0, offset=12}
  Invalidating MemoryAddress{base=0, offset=0}

ProcessLoad(59)
ProcessAssumeMap(63)        // y has B
ProcessLoad(72)             // bare post-call LoadMapField(x), no AssumeMap(x,B)

ProcessStore(89)            // y.z map transition B -> C
  InvalidateAtOffset: not invalidating thanks for maps: MemoryAddress{base=0, offset=0}
  InvalidateAtOffset: invalidating MemoryAddress{base=4, offset=0}
  Wiping all maps            // too late

ProcessLoad(93)
  Found potential replacement at offset 72
  Confirming replacement

Line by line:

  • ProcessCall(40) handles a call. InvalidateMaybeAliasing throws away cached reads, and the two Invalidating lines show memory locations being cleared. No map facts are cleared here, which is the second gap.
  • ProcessLoad(59) handles a read, and ProcessAssumeMap(63) records that y has map B.
  • ProcessLoad(72) is the bare read of x's map field, cached without any matching assumption about x.
  • ProcessStore(89) handles the write that changes y's map from B to C. The first InvalidateAtOffset line is the wrong "not invalidating" decision caused by the stale map facts; the second line shows another location being invalidated correctly.
  • Wiping all maps is the map facts finally being cleared, marked "too late" because the decision above already happened.
  • ProcessLoad(93) handles the later read, finds the cached value at offset 72 and confirms the replacement.

Root cause

The bug is an ordering mistake in ProcessStore(). For a store to the map slot, the analyser must forget its map facts before any invalidation routine can consult them, because the store itself changes the map that those facts describe. Instead, memory_.Invalidate(store) runs first, InvalidateAtOffset() uses object_maps_ through BasesCouldAlias() to decide aliasing, and only then does WipeAllMaps() run. The invalidation decision is therefore made with map facts that are already wrong.

The second contributing factor is that ProcessCall() invalidates memory but does not clear object_maps_. An opaque call can change an object's map, so map facts are not stable across it. Leaving them in place lets a stale object_maps_[x] = A survive the callback that moved x to map B.

The existing defence is the WrongMap deoptimisation, which should fire when optimised code reaches a map check whose assumed map no longer matches the object. Here the check is satisfied by the stale cached LoadMapField, so the deopt never happens. The Turboshaft load-elimination verifier catches the mismatch.

Impact

The PoC proves that optimised code can accept a stale object map after an aliased map transition and bypass the WrongMap deoptimisation guard. The attached named-property harness uses a layout where the read remains benign, so the verifier is the deterministic signal. The same stale-CheckMaps primitive applied to elements-kind or layout-specialised accesses can produce type confusion, for example double-elements code operating after an object-elements transition. The V8 sandbox does not make stale map-specialised optimised code semantically safe; it only constrains follow-on exploitation primitives.

Some of those terms: a named-property harness is a test where objects have ordinary named fields like x and y. "Benign" means the wrong read does not itself cause harm in this particular test. Elements kind refers to how an object stores a list of values: as whole numbers, as decimal numbers (doubles), or with gaps (holey). Layout-specialised code is code written for one particular arrangement of an object. The V8 sandbox is a containment layer that limits what an attacker can reach even after a bug; the report notes it does not make wrong-map code correct, it only makes follow-on steps harder.

Fix

For map-offset stores, clear map facts before any invalidation routine can consult them:

C++
const bool is_map_store =
    store.offset == HeapObject::kMapOffset && !store.index().valid();
if (is_map_store) {
  WipeAllMaps();
}
if (!invalidate_maybe_aliasing) memory_.Invalidate(store);
memory_.Insert(store);

Line by line:

  • const bool is_map_store = ... works out, once, whether this store is writing to the map slot, using the same test as before.
  • if (is_map_store) { WipeAllMaps(); } clears the map facts first, before anything can read them.
  • The last two lines then do the invalidation and record the store, as before, but now with correct map facts.

The report also suggests clearing map facts across arbitrary effectful calls:

C++
WipeAllMaps();
memory_.InvalidateMaybeAliasing();

Line by line: WipeAllMaps() forgets every map fact, and memory_.InvalidateMaybeAliasing() then throws away cached reads as before. The order matters: the facts go first.

If the call-site precision cost of that is too high, the alternative is a dedicated map-store invalidation mode that never relies on object_maps_ to preserve active map-offset loads. "Precision cost" means the fix would make the optimiser more cautious and therefore slower, because it would forget things it did not strictly need to forget.

Variants to test

Glossary

  • API: a defined way for one piece of software to ask another to do something, like a menu of allowed requests.
  • ASan (AddressSanitizer): a tool built into a program that detects certain memory mistakes and stops the program when one happens.
  • Alias: two names or references that point at the same object in memory.
  • Callback: a function handed to other code to be called later, whose contents the optimiser may not be able to see.
  • Chrome VRP: Google Chrome's Vulnerability Reward Program, which pays researchers for reporting security bugs.
  • CVE: a public identifier for a known security vulnerability.
  • d8: V8's standalone command-line JavaScript shell, used for testing the engine without a browser.
  • Deopt (deoptimisation): V8 abandoning optimised code and returning to the slower, safe version when an assumption fails.
  • Deterministic: happening the same way every time, so it can be relied on in a test.
  • Elements kind: how a JavaScript object stores a list of values, for example whole numbers, decimal numbers, or with gaps.
  • Harness: a small test program built around the thing being tested.
  • JIT (just-in-time compilation): turning a program into machine code while it runs, rather than beforehand.
  • Late load elimination (LLE): an optimisation that removes a repeated read when an earlier read of the same value is still valid.
  • Load: reading a value from memory.
  • Lowering: the compiler rewriting a high-level operation into simpler, lower-level steps.
  • Map: V8's internal description of an object's shape, meaning which properties it has and in what order.
  • Map transition: a change of an object's map, for example when a property is added.
  • Memory model: the analyser's record of cached reads and writes.
  • Opaque: code whose contents the optimiser cannot inspect, so it must assume it could do anything.
  • Optimised code: a faster version of a program that V8 produces after seeing it run repeatedly.
  • PoC (proof of concept): a small program that demonstrates a bug.
  • Renderer: the Chrome process that runs a page's code and draws it, kept separate from the rest of the browser.
  • Sandbox (V8 sandbox): a containment layer that limits what an attacker can reach even after exploiting a bug.
  • Sentinel: a special marker value used to signal a particular case.
  • Stack trace: a list of which functions called which, innermost first, usually printed when a program stops.
  • Store: writing a value into memory.
  • Trace: a running log of what a program did internally.
  • Turboshaft: the part of V8 that produces optimised code.
  • Type confusion: a bug where a program treats a value as one kind of thing when it is really another.
  • V8: Chrome's JavaScript engine.
  • Verifier: a debugging check that confirms an optimisation's decisions are correct and stops the program when they are not.
  • WrongMap deoptimisation: the safety mechanism that discards optimised code when an object's map no longer matches what the code assumed.

More by Mufeed VH

View all

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