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

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

The compiler modelled a Wasm property-lookup builtin as non-throwing and non-writing, but the builtin can invoke arbitrary JavaScript through an accessor. A sandbox attacker could use that callback to swap a function table entry and cause a native out-of-bounds write past a tiering-budget allocation.

Jihyeon Jeong Follow

Originally disclosed on Chrome VRP

Bounty$2,500 Medium View original
  • Fix shipped in 34 days

Report description

V8 Sandbox Bypass: WasmGetOwnProperty's no-write/no-throw effects allow a forged accessor to create mixed call_indirect dispatch and a native tiering-budget OOB write


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://source.chromium.org/chromium/chromium/src


The problem

Please describe the technical details of the vulnerability

BuiltinCallDescriptor::WasmGetOwnProperty is modeled as non-throwing and as reading and allocating, but not writing memory:

C++
// v8/src/compiler/turboshaft/builtin-call-descriptors.h:1120-1135
static constexpr Operator::Properties kProperties = Operator::kNoThrow;
static constexpr OpEffects kEffects =
    base_effects.CanReadHeapMemory().CanAllocate();

This contract is weaker than the implementation. The Torque builtin calls GetPropertyWithReceiver() when it finds the requested own property, and an accessor descriptor causes that operation to invoke arbitrary JavaScript. The callback can write memory, allocate, change control flow, and throw, so the call must be modeled as CanCallAnything() and must not use Operator::kNoThrow.

All inputs used to interpret the hidden exception property are inside the V8 sandbox. A sandbox attacker can copy the genuine wasm_exception_tag_symbol into an accessor descriptor and reach WasmGetOwnProperty through an exnref table, throw_ref, and a WebAssembly.JSTag catch. The accessor can therefore mutate an imported function table during this nominally read-only call.

The optimized driver function belongs to the driver instance, and the imported function table initially contains seed, another function exported by the driver instance. The getter replaces seed with target, a function exported by a separate replacement instance. Because the descriptor has no write effect, Late Load Elimination does not invalidate the WasmDispatchTable tuple loaded before the callback. The later call_indirect can consequently combine the replacement instance's reloaded target with the protected_implicit_arg previously loaded for the driver instance, executing target with the driver instance's WasmTrustedInstanceData.

PoC

The attached poc.js embeds a driver module that exports driver, seed, and the exnref table, plus a replacement module that exports target. Sandbox.MemoryView is used only to model the prerequisite arbitrary read/write access inside the V8 sandbox: it copies the genuine hidden exception-tag symbol into the accessor descriptor and places the accessor object in the exported exnref table. The getter replaces seed with target in the imported function table and returns undefined, allowing the catch body and its second call_indirect to execute.

The supporting non-crashing semantic-poc.js observes the mixed tuple through instance-specific globals. The driver instance exports the optimized driver function and owns the imported function table; the replacement instance exports the function installed into that table. Coherent dispatch of the replacement function with the replacement instance returns the replacement instance's global value 222, while vulnerable dispatch of the same function with the driver instance returned the driver instance's global value 111 in 10/10 independent runs:

Text
RESULT=111 GETTER_COUNT=1 TABLE_CHANGED=true

The crashing PoC gives the driver module two declared functions, so the driver instance's tiering-budget allocation contains only indices 0 and 1. The replacement module exports a Liftoff function whose declared function index is 2. Dynamic tiering loads the budget base from the driver instance's stale WasmTrustedInstanceData and obtains index 2 from the replacement function, so wasm::TriggerTierUp writes driver_instance.tiering_budget_array()[2], exactly one element past the driver instance's 8-byte native allocation.

Reproduce

The attachment was confirmed with asan-v8-sandbox-testing-linux-release-1669311.zip.

Shell
ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' \
/path/to/d8 \
  --run-as-sandbox-security-poc \
  --allow-natives-syntax \
  /path/to/poc.js

Impact analysis

An attacker with arbitrary read/write access inside the V8 sandbox can invoke JavaScript from a Wasm exception metadata lookup without the compiler accounting for the callback, execute the replacement Liftoff function with the driver instance's WasmTrustedInstanceData, and perform a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation.


The cause

What version of Chrome have you found the security issue in?

153.0.7978.0

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Sandbox Escape

The original report as published on the Chromium issue tracker, by Jihyeon Jeong (Compsec Lab, Seoul National University / Research Intern). 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. 7 min read.

Context

V8, Chrome's JavaScript and WebAssembly engine, runs untrusted code inside a sandbox. The sandbox is meant to contain the damage of a memory-corruption bug: an attacker who gains arbitrary read and write inside the sandbox should still not be able to execute native code or escape it. This report is about a path that crosses that boundary.

The feature at the centre of it is BuiltinCallDescriptor::WasmGetOwnProperty, a Turboshaft builtin call descriptor used when the engine looks up an own property on a WebAssembly exception object. The descriptor tells the optimising compiler what the builtin is allowed to do to memory and control flow. The report shows that the declared contract is weaker than what the builtin actually does, and that the gap lets a sandbox attacker turn a nominally read-only call into a mixed call_indirect dispatch and a native out-of-bounds write.

The issue was reported through the Chrome Vulnerability Reward Program against the Chromium source tree at https://source.chromium.org/chromium/chromium/src, in Chrome 153.0.7978.0. It was classified as a sandbox escape, rated medium severity, and rewarded with 2,500 USD. The researcher is Jihyeon Jeong of Compsec Lab, Seoul National University, working as a research intern. It was disclosed on 8 September 2026 as CVE-2026-87491.

Setup

The work was done against an ASan build of d8, named in the report as the archive used for confirmation. The report names the exact archive used for confirmation:

Text
asan-v8-sandbox-testing-linux-release-1669311.zip

The PoC is a single JavaScript file, poc.js, run under d8 with two flags: The PoC is a single JavaScript file, poc.js, run under d8 with two flags: --run-as-sandbox-security-poc and --allow-natives-syntax. The reproduction command is:

Shell
ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' \
/path/to/d8 \
  --run-as-sandbox-security-poc \
  --allow-natives-syntax \
  /path/to/poc.js

The precondition the report states explicitly is arbitrary read and write access inside the V8 sandbox. Sandbox.MemoryView is used only to model that prerequisite: it copies the genuine hidden exception-tag symbol into the accessor descriptor and places the accessor object in the exported exnref table. Sandbox.MemoryView is used only to model the prerequisite arbitrary read and write access inside the V8 sandbox.

Finding it

The starting point is the descriptor definition in v8/src/compiler/turboshaft/builtin-call-descriptors.h, lines 1120 to 1135:

C++
// v8/src/compiler/turboshaft/builtin-call-descriptors.h:1120-1135
static constexpr Operator::Properties kProperties = Operator::kNoThrow;
static constexpr OpEffects kEffects =
    base_effects.CanReadHeapMemory().CanAllocate();

The descriptor declares the builtin as non-throwing (Operator::kNoThrow) and as an operation that reads heap memory and can allocate, but does not write memory. The implementation does more than that. The Torque builtin calls GetPropertyWithReceiver() when it finds the requested own property, and if the property is an accessor descriptor, that call invokes arbitrary JavaScript. A JavaScript callback can write memory, allocate, change control flow and throw. The correct model, the report argues, is CanCallAnything(), and Operator::kNoThrow must not be used.

The second observation is about where the inputs live. All inputs used to interpret the hidden exception property are inside the V8 sandbox. That means a sandbox attacker can copy the genuine wasm_exception_tag_symbol into an accessor descriptor and reach WasmGetOwnProperty through an exnref table, throw_ref, and a WebAssembly.JSTag catch. The accessor can then mutate an imported function table during what the compiler believes is a read-only call.

Exploitation

Step 1: Build the two instances

The PoC embeds two WebAssembly modules. The driver module exports driver, seed, and the exnref table. The replacement module exports target. The optimized driver function belongs to the driver instance, and the imported function table initially contains seed, another function exported by the driver instance.

Step 2: Plant the accessor

Using the modelled arbitrary read and write inside the sandbox, the PoC copies the genuine hidden exception-tag symbol into an accessor descriptor and places the accessor object in the exported exnref table. This is what makes the later exception property lookup resolve to attacker-controlled JavaScript.

Step 3: Reach the builtin through the exception path

The lookup is reached through an exnref table, throw_ref, and a WebAssembly.JSTag catch. When WasmGetOwnProperty finds the requested own property, it calls GetPropertyWithReceiver(), which invokes the accessor.

Step 4: Mutate the table from the getter

The getter replaces seed with target, a function exported by the separate replacement instance, in the imported function table. It then returns undefined, which allows the catch body and its second call_indirect to execute.

Step 5: The stale dispatch tuple

Because the descriptor has no write effect, Late Load Elimination does not invalidate the WasmDispatchTable tuple that was loaded before the callback ran. The later call_indirect therefore combines the replacement instance's reloaded target with the protected_implicit_arg that was previously loaded for the driver instance. The result is that target executes with the driver instance's WasmTrustedInstanceData.

Step 6: Observe the mixed dispatch

The supporting non-crashing semantic-poc.js observes the mixed tuple through instance-specific globals. The driver instance exports the optimized driver function and owns the imported function table; the replacement instance exports the function installed into that table. Coherent dispatch of the replacement function with the replacement instance returns the replacement instance's global value 222. Vulnerable dispatch of the same function with the driver instance returned the driver instance's global value 111 in 10 out of 10 independent runs:

Text
RESULT=111 GETTER_COUNT=1 TABLE_CHANGED=true

Step 7: Turn the mix into a native OOB write

The crashing PoC gives the driver module two declared functions, so the driver instance's tiering-budget allocation contains only indices 0 and 1. The replacement module exports a Liftoff function whose declared function index is 2. Dynamic tiering loads the budget base from the driver instance's stale WasmTrustedInstanceData and obtains index 2 from the replacement function. wasm::TriggerTierUp then writes driver_instance.tiering_budget_array()[2], exactly one element past the driver instance's 8-byte native allocation. That is a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation.

Root cause

The mistake is a mismatch between the declared effects of a builtin call descriptor and what the builtin actually does. WasmGetOwnProperty is modelled as Operator::kNoThrow with effects limited to CanReadHeapMemory().CanAllocate(), while its implementation can call arbitrary JavaScript through GetPropertyWithReceiver() when it hits an accessor descriptor. The compiler's optimisations rely on that contract: Late Load Elimination treats the WasmDispatchTable tuple loaded before the call as still valid, because nothing in the descriptor says the call can write memory. The stale tuple then pairs a freshly reloaded function from the replacement instance with the driver instance's protected implicit argument.

The second half of the root cause is the tiering-budget layout. The driver instance's budget array is sized for its two declared functions, but the replacement function carries declared index 2. Dynamic tiering reads the budget base from the stale WasmTrustedInstanceData and the index from the replacement function, so the write lands one element past an 8-byte allocation. The write is a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation.

Impact

An attacker with arbitrary read and write access inside the V8 sandbox can invoke JavaScript from a Wasm exception metadata lookup without the compiler accounting for the callback. They can execute the replacement Liftoff function with the driver instance's WasmTrustedInstanceData and perform a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation. The report classifies the issue as a sandbox escape and confirms it is related to a crash. The stated precondition is the arbitrary read and write inside the sandbox; the report does not describe how that primitive would be obtained.

Fix

The report states what the descriptor must become: the call must be modelled as CanCallAnything() and must not use Operator::kNoThrow. The report does not describe a patch that was applied.

Variants to test

  1. Audit other Turboshaft builtin call descriptors whose Torque implementation can reach JavaScript through a property lookup or a callback. A positive result is a descriptor declaring kNoThrow or omitting a write or call effect while the builtin can invoke user code.
  2. Look for other paths that reach GetPropertyWithReceiver() from WebAssembly metadata, such as exception tags and other hidden symbols. A positive result is a lookup that resolves an attacker-controlled accessor inside the sandbox.
  3. Check other places where a WasmTrustedInstanceData or similar protected implicit argument is loaded before a call that the compiler believes cannot write. A positive result is a stale tuple surviving the call and being combined with a reloaded function pointer.
  4. Vary the declared function counts between the two instances so that a replacement function's index falls outside the driver instance's tiering-budget allocation. A positive result is an ASan report of a write past the allocation, as in the 8-byte allocation with index 2 here.
  5. Run the semantic PoC with instance-specific globals to detect mixed dispatch without a crash. A positive result is the driver instance's global value being returned when the replacement instance's function is called.

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

What happened, in plain words

Chrome runs JavaScript and WebAssembly code inside a component called V8. V8 has a safety box around it, called the sandbox. The idea of the sandbox is simple: even if an attacker manages to break part of V8 and read or write memory inside that box, they should still be stuck inside the box. They should not be able to run their own native code on your computer or reach anything outside it.

This report describes a way to step over the edge of that box. The problem is not a single broken line of code. It is a mismatch between what one part of the engine promises and what another part actually does. A small internal description tells the optimising compiler "this operation only reads memory, it never writes and it never throws an error". In reality the operation can run JavaScript supplied by the attacker, and that JavaScript can do anything, including changing a table of functions that the compiler had already read and cached.

Because the compiler trusted the promise, it reused the old cached value. The result was that a function from one WebAssembly module was executed using the identity and memory of a different module. That mismatch then produced a write one slot past the end of a small native memory allocation: an out-of-bounds write, outside the sandbox.

The report was filed through the Chrome Vulnerability Reward Program against the Chromium source code, in Chrome 153.0.7978.0. It was classified as a sandbox escape, rated medium severity, and paid a bounty of 2,500 USD. The researcher is Jihyeon Jeong of Compsec Lab, Seoul National University, working as a research intern. It was disclosed on 8 September 2026 as CVE-2026-87491.

Some background before the details

A few ideas come up again and again below, so here they are from zero.

  • JavaScript engine: the program inside a browser that reads JavaScript and turns it into instructions the processor can run. V8 is Chrome's engine, and it also runs WebAssembly.
  • WebAssembly (Wasm): a second language browsers understand, designed to be fast and compact. Programmers compile other languages into it. A Wasm program is shipped as a module, and when the browser loads a module it creates an instance: the module is the recipe, the instance is the cake, with its own memory and its own state.
  • Sandbox: a boundary drawn around a program so that a bug inside it cannot damage the rest of the system. Think of a playpen: a child can knock things over inside it, but cannot reach the kitchen.
  • Memory corruption: a bug where a program reads or writes memory it was not supposed to touch. Attackers use these bugs to change values the program relies on.
  • Out-of-bounds write: the specific kind of memory corruption where a program writes just past the end of a reserved block of memory. It is like writing a note in the margin of a page that belongs to the next chapter.
  • Compiler optimisation: the engine rewrites your code to make it faster. To do that safely it needs to know what each operation can and cannot do. If it is told an operation cannot change memory, it may keep an old copy of a value in a register instead of re-reading it.
  • Accessor: in JavaScript, a property can be a plain value or a pair of functions, a getter and a setter. Reading the property runs the getter. That is how a simple-looking property read can end up running arbitrary code.
  • Exception: an error or special signal that interrupts normal flow. In Wasm, exceptions can carry a tag and a payload, and JavaScript can catch them.
  • ASan: AddressSanitizer, a debugging tool built into a special build of the engine. It watches memory accesses and shouts loudly, with a report, when code reads or writes outside an allocation. Researchers use it to prove a memory bug exists.
  • d8: the standalone command-line shell that ships with V8. It runs JavaScript and Wasm without a full browser, which makes testing much easier.

Context

V8 runs untrusted code inside the sandbox. The sandbox is meant to contain the damage of a memory-corruption bug: an attacker who gains arbitrary read and write inside the sandbox should still not be able to execute native code or escape it. This report is about a path that crosses that boundary.

The feature at the centre of it is BuiltinCallDescriptor::WasmGetOwnProperty, a Turboshaft builtin call descriptor used when the engine looks up an own property on a WebAssembly exception object. In plain terms: when Wasm throws an exception, the engine builds an object to represent it, and sometimes it needs to look up a property on that object. The descriptor is a small record that tells the optimising compiler what that lookup is allowed to do to memory and control flow. The report shows that the declared contract is weaker than what the builtin actually does, and that the gap lets a sandbox attacker turn a nominally read-only call into a mixed call_indirect dispatch and a native out-of-bounds write.

The issue was reported through the Chrome Vulnerability Reward Program against the Chromium source tree at https://source.chromium.org/chromium/chromium/src, in Chrome 153.0.7978.0. It was classified as a sandbox escape, rated medium severity, and rewarded with 2,500 USD.

Setup

The work was done against an ASan build of d8, named in the report as the archive used for confirmation. An ASan build is a special build of the engine that carries the AddressSanitizer tool, so any out-of-bounds access is caught and reported instead of silently corrupting something. The report names the exact archive used for confirmation:

Text
asan-v8-sandbox-testing-linux-release-1669311.zip

The PoC is a single JavaScript file, poc.js, run under d8 with two flags: --run-as-sandbox-security-poc, which puts the engine in the sandbox security testing mode, and --allow-natives-syntax, which the PoC needs for its use of Sandbox.MemoryView. The reproduction command is:

Shell
ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' \
/path/to/d8 \
  --run-as-sandbox-security-poc \
  --allow-natives-syntax \
  /path/to/poc.js

Line by line:

  1. ASAN_OPTIONS='detect_leaks=0:abort_on_error=1:symbolize=1' sets environment variables that control AddressSanitizer. detect_leaks=0 turns off leak checking, because we do not care about memory that was never freed. abort_on_error=1 makes the program stop immediately when ASan finds a problem, instead of trying to continue. symbolize=1 asks ASan to translate raw memory addresses into function names and line numbers, so the report is readable.
  2. /path/to/d8 is the engine binary you unpacked. The path is a placeholder for wherever you put it.
  3. --run-as-sandbox-security-poc is one of the two flags in the reproduction command.
  4. --allow-natives-syntax is the second flag in the reproduction command.
  5. /path/to/poc.js is the proof-of-concept script itself.

The precondition the report states explicitly is arbitrary read and write access inside the V8 sandbox. That means the attacker can already read and change any memory inside the sandbox. Sandbox.MemoryView is used only to model that prerequisite: it copies the genuine hidden exception-tag symbol into the accessor descriptor and places the accessor object in the exported exnref table. Sandbox.MemoryView is used only to model the prerequisite arbitrary read and write access inside the V8 sandbox. In other words, the PoC does not show how an attacker first gets read and write inside the sandbox; it assumes that has already happened and demonstrates what can be done next.

Finding it

The starting point is the descriptor definition in v8/src/compiler/turboshaft/builtin-call-descriptors.h, lines 1120 to 1135:

C++
// v8/src/compiler/turboshaft/builtin-call-descriptors.h:1120-1135
static constexpr Operator::Properties kProperties = Operator::kNoThrow;
static constexpr OpEffects kEffects =
    base_effects.CanReadHeapMemory().CanAllocate();

Line by line:

  1. The first line is a comment giving the file and the line range, so anyone can find the code in the Chromium source tree.
  2. static constexpr Operator::Properties kProperties = Operator::kNoThrow; declares a compile-time constant named kProperties and sets it to Operator::kNoThrow. This is the promise that the operation never throws an exception.
  3. static constexpr OpEffects kEffects = starts a second constant, kEffects, which describes what the operation does to memory.
  4. base_effects.CanReadHeapMemory().CanAllocate(); builds that description by starting from the default effects and adding two permissions: it may read heap memory, and it may allocate new memory. Nothing here says it may write to existing memory.

The descriptor declares the builtin as non-throwing (Operator::kNoThrow) and as an operation that reads heap memory and can allocate, but does not write memory. The implementation does more than that. The Torque builtin calls GetPropertyWithReceiver() when it finds the requested own property, and if the property is an accessor descriptor, that call invokes arbitrary JavaScript. Torque is the language V8 uses to write many of its built-in functions. A JavaScript callback can write memory, allocate, change control flow and throw. The correct model, the report argues, is CanCallAnything(), and Operator::kNoThrow must not be used. CanCallAnything() is the strongest possible statement: this operation may do literally anything, so the compiler must not assume anything survives it.

The second observation is about where the inputs live. All inputs used to interpret the hidden exception property are inside the V8 sandbox. That means a sandbox attacker can copy the genuine wasm_exception_tag_symbol into an accessor descriptor and reach WasmGetOwnProperty through an exnref table, throw_ref, and a WebAssembly.JSTag catch. The accessor can then mutate an imported function table during what the compiler believes is a read-only call. An exnref is a reference to a Wasm exception; throw_ref re-throws an exception you already hold; WebAssembly.JSTag is the JavaScript-side object that represents a Wasm exception tag, so JavaScript can catch it.

Exploitation

Step 1: Build the two instances

The PoC embeds two WebAssembly modules. The driver module exports driver, seed, and the exnref table. The replacement module exports target. The optimized driver function belongs to the driver instance, and the imported function table initially contains seed, another function exported by the driver instance. Two instances means two separate identities: each has its own globals, its own memory and its own internal bookkeeping. The whole trick depends on mixing them.

Step 2: Plant the accessor

Using the modelled arbitrary read and write inside the sandbox, the PoC copies the genuine hidden exception-tag symbol into an accessor descriptor and places the accessor object in the exported exnref table. This is what makes the later exception property lookup resolve to attacker-controlled JavaScript. The PoC copies the genuine hidden exception-tag symbol into an accessor descriptor.

Step 3: Reach the builtin through the exception path

The lookup is reached through an exnref table, throw_ref, and a WebAssembly.JSTag catch. When WasmGetOwnProperty finds the requested own property, it calls GetPropertyWithReceiver(), which invokes the accessor. This is the moment the compiler's promise is broken: it believed the lookup was read-only, but the lookup is now running attacker JavaScript.

Step 4: Mutate the table from the getter

The getter replaces seed with target, a function exported by the separate replacement instance, in the imported function table. It then returns undefined, which allows the catch body and its second call_indirect to execute. call_indirect is the Wasm instruction that calls a function through a table by index, rather than calling a fixed function directly.

Step 5: The stale dispatch tuple

Because the descriptor has no write effect, Late Load Elimination does not invalidate the WasmDispatchTable tuple that was loaded before the callback ran. Late Load Elimination is a compiler optimisation that removes redundant memory reads: if nothing between two reads can have changed the memory, the second read is replaced by the first result. The WasmDispatchTable is the engine's internal table mapping function indices to actual code and instance data. The later call_indirect therefore combines the replacement instance's reloaded target with the protected_implicit_arg that was previously loaded for the driver instance. The protected_implicit_arg is the hidden "who am I" pointer the engine passes to a Wasm function so it can find its own instance data. The result is that target executes with the driver instance's WasmTrustedInstanceData: the code of one module, running with the identity of another.

Step 6: Observe the mixed dispatch

The supporting non-crashing semantic-poc.js observes the mixed tuple through instance-specific globals. The driver instance exports the optimized driver function and owns the imported function table; the replacement instance exports the function installed into that table. Coherent dispatch of the replacement function with the replacement instance returns the replacement instance's global value 222. Vulnerable dispatch of the same function with the driver instance returned the driver instance's global value 111 in 10 out of 10 independent runs:

Text
RESULT=111 GETTER_COUNT=1 TABLE_CHANGED=true

Line by line:

  1. RESULT=111 is the value the function returned. 111 is the driver instance's global, which proves the replacement function ran with the driver instance's identity instead of its own.
  2. GETTER_COUNT=1 shows the accessor ran exactly once, so the table change happened during the lookup as intended.
  3. TABLE_CHANGED=true confirms the function table really was modified by the getter.

This variant does not crash. It is there to show the mixed dispatch clearly, using values that are easy to tell apart.

Step 7: Turn the mix into a native OOB write

The crashing PoC gives the driver module two declared functions, so the driver instance's tiering-budget allocation contains only indices 0 and 1. The replacement module exports a Liftoff function whose declared function index is 2. Liftoff is V8's baseline Wasm compiler, the fast first-tier compiler. Dynamic tiering is the mechanism that decides when a hot Wasm function should be recompiled at a higher optimisation tier, and it keeps a small per-instance budget array to count how often each function runs. Dynamic tiering loads the budget base from the driver instance's stale WasmTrustedInstanceData and obtains index 2 from the replacement function. wasm::TriggerTierUp then writes driver_instance.tiering_budget_array()[2], exactly one element past the driver instance's 8-byte native allocation. That is a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation. The array was sized for two entries, indices 0 and 1; writing index 2 lands just past the end.

Root cause

The mistake is a mismatch between the declared effects of a builtin call descriptor and what the builtin actually does. WasmGetOwnProperty is modelled as Operator::kNoThrow with effects limited to CanReadHeapMemory().CanAllocate(), while its implementation can call arbitrary JavaScript through GetPropertyWithReceiver() when it hits an accessor descriptor. The compiler's optimisations rely on that contract: Late Load Elimination treats the WasmDispatchTable tuple loaded before the call as still valid, because nothing in the descriptor says the call can write memory. The stale tuple then pairs a freshly reloaded function from the replacement instance with the driver instance's protected implicit argument.

The second half of the root cause is the tiering-budget layout. The driver instance's budget array is sized for its two declared functions, but the replacement function carries declared index 2. Dynamic tiering reads the budget base from the stale WasmTrustedInstanceData and the index from the replacement function, so the write lands one element past an 8-byte allocation. The write is a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation.

Impact

An attacker with arbitrary read and write access inside the V8 sandbox can invoke JavaScript from a Wasm exception metadata lookup without the compiler accounting for the callback. They can execute the replacement Liftoff function with the driver instance's WasmTrustedInstanceData and perform a native 4-byte heap-buffer-overflow outside the driver instance's tiering-budget allocation. The report classifies the issue as a sandbox escape and confirms it is related to a crash. The stated precondition is the arbitrary read and write inside the sandbox; the report does not describe how that primitive would be obtained.

Fix

The report states what the descriptor must become: the call must be modelled as CanCallAnything() and must not use Operator::kNoThrow. The report does not describe a patch that was applied.

Variants to test

  1. Audit other Turboshaft builtin call descriptors whose Torque implementation can reach JavaScript through a property lookup or a callback. A positive result is a descriptor declaring kNoThrow or omitting a write or call effect while the builtin can invoke user code.
  2. Look for other paths that reach GetPropertyWithReceiver() from WebAssembly metadata, such as exception tags and other hidden symbols. A positive result is a lookup that resolves an attacker-controlled accessor inside the sandbox.
  3. Check other places where a WasmTrustedInstanceData or similar protected implicit argument is loaded before a call that the compiler believes cannot write. A positive result is a stale tuple surviving the call and being combined with a reloaded function pointer.
  4. Vary the declared function counts between the two instances so that a replacement function's index falls outside the driver instance's tiering-budget allocation. A positive result is an ASan report of a write past the allocation, as in the 8-byte allocation with index 2 here.
  5. Run the semantic PoC with instance-specific globals to detect mixed dispatch without a crash. A positive result is the driver instance's global value being returned when the replacement instance's function is called.

Glossary

  • Accessor: a JavaScript property defined by a getter and/or setter function, so reading or writing the property runs code.
  • AddressSanitizer (ASan): a debugging tool that detects out-of-bounds and other invalid memory accesses and reports them.
  • Arbitrary read/write: the ability to read and change any memory address the attacker chooses, usually the result of a prior bug.
  • Bounty: a payment made by a vendor to a researcher who reports a valid security issue.
  • call_indirect: a WebAssembly instruction that calls a function looked up by index in a table, rather than a fixed function.
  • Chrome Vulnerability Reward Program (Chrome VRP): Google's programme that pays researchers for reporting Chrome security bugs.
  • Compiler optimisation: automatic rewriting of code to make it faster, which is only safe if the compiler knows what each operation can do.
  • CVE: a public identifier assigned to a known security vulnerability.
  • d8: the standalone command-line shell shipped with V8 for running JavaScript and WebAssembly outside a browser.
  • Descriptor (builtin call descriptor): an internal record telling the optimising compiler what a built-in operation may do to memory and control flow.
  • Dynamic tiering: the mechanism that promotes hot WebAssembly functions to higher optimisation tiers, using a per-instance budget array.
  • Exception: an error or special signal that interrupts normal execution and can be caught.
  • exnref: a WebAssembly reference type that points to an exception object.
  • Getter: the function that runs when a property is read.
  • Heap: the region of memory where a program stores objects it creates at runtime.
  • Instance (Wasm): a loaded, running copy of a WebAssembly module, with its own memory and state.
  • JavaScript engine: the software inside a browser that executes JavaScript, such as V8 in Chrome.
  • JSTag: the JavaScript-side object representing a WebAssembly exception tag, allowing JavaScript to catch Wasm exceptions.
  • Late Load Elimination: a compiler optimisation that removes repeated memory reads when nothing in between could have changed the memory.
  • Liftoff: V8's baseline WebAssembly compiler, the fast first tier.
  • Memory corruption: a bug that lets a program read or write memory it should not touch.
  • Module (Wasm): the compiled WebAssembly program; loading it creates an instance.
  • Out-of-bounds write: writing past the end of a reserved block of memory.
  • PoC (proof of concept): a small program that demonstrates a vulnerability.
  • protected_implicit_arg: a hidden pointer the engine passes to a WebAssembly function so it can find its own instance data.
  • Sandbox: a boundary around a program that limits the damage a bug inside it can cause.
  • Sandbox escape: a vulnerability that lets an attacker get out of the sandbox and affect the rest of the system.
  • Symbol (hidden): an internal identifier the engine uses to recognise its own properties; copying it lets an attacker forge a genuine-looking property.
  • throw_ref: a WebAssembly instruction that re-throws an exception reference.
  • Torque: the language V8 uses to write many of its built-in functions.
  • Turboshaft: the optimising compiler inside V8 that uses these descriptors.
  • V8: Chrome's JavaScript and WebAssembly engine.
  • WasmDispatchTable: the engine's internal table mapping WebAssembly function indices to code and instance data.
  • WasmGetOwnProperty: the built-in operation that looks up an own property on a WebAssembly exception object.
  • WasmTrustedInstanceData: the internal structure holding a WebAssembly instance's trusted state, including its tiering budget.
  • WebAssembly (Wasm): a fast, compact language browsers run alongside JavaScript.

More by Jihyeon Jeong

View all

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