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

Type confusion in V8 (CVE-2026-76038)

A type confusion in TurboLev's handling of DataView field types after garbage collection allows an attacker to obtain controlled 4-byte memory reads and writes. The proof of concept demonstrates writing a chosen value to a mapped address and causing a crash at a controlled address.

un3xploitable Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 16 days

Steps to reproduce the problem

Please run with attached poc.js:

./out.gn/x64.release/d8 \
  --allow-natives-syntax \
  --turbolev \
  ./poc.js

release build was compiled with the following args.gn

is_debug=false
is_asan=true
is_clang=true

target_cpu="x64"
v8_target_cpu="x64"

v8_enable_sandbox=true
v8_enable_memory_corruption_api=true
v8_symbol_level=2

Problem Description

VULNERABILITY DETAILS

Turbolev: stale DataView field type after GC can lead to controllable memory corruption.

NodeTypeFromAccessInfo assigns a precise type whenever a property access has a class field Map:

C++
if (access_info.field_map().has_value()) {
  return StaticTypeForMap(access_info.field_map().value(), broker);
}

However, BuildLoadField only retains that Map and installs a stability dependency when it is stable:

C++
const auto node_type = NodeTypeFromAccessInfo(this->broker(), access_info);
compiler::OptionalMapRef stable_field_map;
if (access_info.field_representation().IsHeapObject() &&
    access_info.field_map().has_value() &&
    access_info.field_map().value().is_stable()) {
  stable_field_map = access_info.field_map();
}
...
if (stable_field_map.has_value()) {
  broker()->dependencies()->DependOnStableMap(stable_field_map.value());
} else {
  known_info->IntersectType(node_type);
}

This contradicts the access-info contract in src/compiler/access-info.cc, which states that the field type may be inferred from the class Map only when the Map is stable and a stability dependency is added at the use.

The PoC creates two DataViews with the same Map M and stores them in a mutable holder field, causing the field descriptor to learn FieldType::Class(M). Changing an added property from Smi to double makes M unstable. TurboLev then compiles the field load with NodeType::kJSDataView, but no dependency keeps the unstable Map valid.

After the last object migrates away from M, a natural major GC clears the dead weak class Map in MarkCompactCollector::SpecialClearMapSlot:

C++
if (map->is_stable() && FieldType::kFieldTypesCanBeClearedOnGC) {
  location.store(FieldType::None());
} else {
  location.store(FieldType::Any());
}

The unstable field type is widened to Any without invalidating the optimized code. The holder can then contain an ordinary object while the compiled load still has the stale kJSDataView type. BuildCheckInstanceType accepts this known type and omits the runtime JS_DATA_VIEW_TYPE check.

TurboLev consequently reads the ordinary object's in-object fields as the DataView byte length and data pointer. The optimized DataView.prototype.getInt32 and setInt32 calls then provide controlled 4-byte memory reads and writes.

IMPACT

The attached PoC first writes the JavaScript-controlled value 0x41414141 to a selected mapped address and reads the same four bytes back. It throws before continuing if the readback is not exactly 0x41414141.

It then performs a second 4-byte store at the selected relative address 0x41414141. Independent executions with different address randomization produced:

Text
Received signal 11 SEGV_ACCERR 7ea441414141
Received signal 11 SEGV_ACCERR 7a8b41414141
Received signal 11 SEGV_ACCERR 7ea841414141

VERSION

Tested commit: 1d17afafffbb434e04b2ee4bec7ca09989626341 (2026-07-31), Linux x86-64.

BISECT

First bad commit: ea85967a2149d4f648c60cb26d48ba7b75ecdd79 (2026-06-15), [maglev] Enrich LoadTaggedField with NodeType metadata.

Summary

Turbolev: stale DataView field type after GC can lead to arbitrary memory r/w

Custom Questions

Type of crash:

controllable crash on renderer

Crash state:

Received signal 11 SEGV_ACCERR 7e9f41414141

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

./v8/v8/out/Release/d8(__interceptor_backtrace+0x4a)[0x63874af446ea]
./v8/v8/out/Release/d8(+0x6b449c0)[0x6387507a99c0]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x7005cf445330]
[0x6387b04c1934]
[end of stack trace]

Additional Data

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

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

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

How it worked

Root cause

Likely the compiler's field-load optimisation retained a precise type from an unstable class Map without adding a stability dependency, so a later garbage collection widened the field type without invalidating the optimised code.

Impact

The PoC achieves controlled 4-byte memory reads and writes, demonstrated by writing a chosen value to a mapped address and causing a crash at a controlled address.

What the attacker needed

Ability to run JavaScript in V8; TurboLev enabled; a garbage collection cycle

How it was found

  1. Build d8 with the provided GN arguments and run the attached poc.js with --allow-natives-syntax and --turbolev.
  2. The PoC creates two DataViews with the same Map and stores them in a mutable holder field.
  3. Changing an added property from Smi to double makes the Map unstable.
  4. A major GC clears the dead weak class Map and widens the field type to Any without invalidating optimised code.
  5. The holder then contains an ordinary object while the compiled load still has the stale kJSDataView type, omitting the runtime type check.
  6. The optimised getInt32 and setInt32 calls then perform controlled 4-byte memory reads and writes.

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

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

This is a bug in a JavaScript engine's optimising compiler. The compiler assumed a certain object was a DataView (a built-in object for reading and writing raw memory) even after garbage collection changed things, so it skipped a safety check. That let a crafted script read and write small amounts of memory it should not touch.

What is Memory corruption?

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

More by un3xploitable

View all

1 more disclosed report, 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.