Inappropriate implementation in WebAudio (CVE-2026-16421)
Several V8 optimising reductions assume floating-point behaviour that is wrong when code runs with flush-to-zero and denormals-are-zero enabled, as in the AudioWorklet isolate. Optimised and baseline code then disagree about signed zero versus raw subnormal bits, and the PoC turns that disagreement into a stale JSArray length/backing-store mismatch that can become a controlled native write.
Originally disclosed on Chrome VRP
- Fix shipped in 26 days
VULNERABILITY DETAILS
Several V8 optimizing reductions are unsound when generated code runs with FTZ/DAZ enabled (as in the AudioWorklet isolate). This is a same-mode FTZ issue: compilation and execution are both under FTZ/DAZ. The bug is not about compiling in one FTZ mode and executing in another.
In each supported case, optimized code and unoptimized/baseline execution
disagree about the same floating-point value: one side observes a signed zero
and the other side preserves raw subnormal bits. The attached PoC feeds that
disagreement into Object.is, integer range typing, and JSArray growth. The
result is a stale JSArray length/backing-store mismatch that can be turned into
a controlled native write.
PoC Structure
The d8 PoC uses V8 native syntax so that it can show the pre-optimization state,
warm the function, request optimization with %OptimizeFunctionOnNextCall, and
then run the optimized function. The selected optimization and the JSArray
length-corruption sequence are in the same generated function.
The browser AudioWorklet demo cannot use V8 native optimization intrinsics.
Instead, it repeatedly runs the same generated function in the AudioWorklet
isolate so that Chrome's normal tiering pipeline optimizes it. The query
parameter root=... selects which of the eight optimization cases to run; the
rest of the JavaScript and the command-execution code are shared.
The browser command-execution demo is intended for a local validation build with
the V8 sandbox disabled. The latest validation used out/current-d8/args.gn
with v8_enable_sandbox = false. The worklet also embeds two offsets into the
tested chrome binary; rerun ./refresh_rce_offsets.sh /path/to/chrome after
rebuilding Chrome. For the current validation binary, those offsets are
CHROME_DTOR_OFFSET = 0x0000000006f3d340n and
EXECVP_PLT_OFFSET = 0x000000000521c360n.
Affected Optimizations
Case ID: R001 DIV-ONE
Reduction / optimization:
Float64Div(x, 1.0) -> x.
Unsound FTZ assumption:
Runtime division under FTZ/DAZ materializes a subnormal input/result as signed zero;
deleting the division preserves raw subnormal bits.
V8 source locations:
v8/src/compiler/machine-operator-reducer.cc:676;
v8/src/compiler/turboshaft/machine-optimization-reducer.h:649;
v8/src/maglev/maglev-reducer-inl.h:3456.
Case ID: R005 UNARY-MATH-MINMAX
Reduction / optimization:
One-argument Math.min(x) / Math.max(x) reduced to ToNumber(x) / identity-like
numeric lowering.
Unsound FTZ assumption:
The unoptimized builtin path materializes the argument under FTZ; the optimized
one-argument reduction passes the raw subnormal through.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3076; v8/src/compiler/js-call-reducer.cc:3090;
v8/src/compiler/js-call-reducer.cc:5642.
Case ID: R006 SAMEVALUE-SIGNED-ZERO
Reduction / optimization:
Object.is / SameValue numeric lowering and signed-zero type reasoning.
Unsound FTZ assumption:
Optimized SameValue reasoning is not conservative for a negative subnormal that same-mode
FTZ execution can observe as -0.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3581; v8/src/compiler/typed-optimization.cc:677;
v8/src/compiler/simplified-lowering.cc:3770; v8/src/compiler/operation-typer.cc:1287.
Case ID: R009 MATH-ABS-FTZ-ZERO
Reduction / optimization:
Math.abs / NumberAbs lowered to raw Float64Abs / sign-bit clearing.
Unsound FTZ assumption:
The optimized path keeps raw subnormal-derived facts, while same-mode FTZ runtime
observation can classify the value as zero.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:5580; v8/src/compiler/js-call-reducer.cc:2982;
v8/src/compiler/simplified-lowering.cc:3350;
v8/src/compiler/simplified-lowering.cc:3382;
v8/src/compiler/turboshaft/graph-builder.cc:707;
v8/src/compiler/backend/x64/instruction-selector-x64.cc:3189;
v8/src/maglev/maglev-reducer-inl.h:3945; v8/src/maglev/x64/maglev-ir-x64.cc:862.
Case ID: R010 SUBTRACT-FTZ-MINUSZERO-TYPING
Reduction / optimization:
OperationTyper::NumberSubtract and downstream SameValue typing for exact
negative-subnormal subtraction results.
Unsound FTZ assumption:
The type excludes MinusZero, but under FTZ/DAZ an exact negative subnormal arithmetic
result can be observed as -0.
V8 source locations:
v8/src/compiler/operation-typer.cc:682; v8/src/compiler/operation-typer.cc:692;
v8/src/compiler/operation-typer.cc:719; v8/src/compiler/operation-typer.cc:1287;
v8/src/compiler/typed-optimization.cc:657.
Case ID: R011 BINARY-MATH-MINMAX-COMPARE-SELECT
Reduction / optimization:
Two-argument Math.min / Math.max lowered to NumberMin / NumberMax and Float64
compare/select.
Unsound FTZ assumption:
Denormals can compare as zero under DAZ while still carrying raw sign/subnormal bits
through selected optimized paths.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3076; v8/src/compiler/js-call-reducer.cc:3094;
v8/src/compiler/operation-typer.cc:1092; v8/src/compiler/operation-typer.cc:1127;
v8/src/compiler/simplified-lowering.cc:3463;
v8/src/compiler/simplified-lowering.cc:3512;
v8/src/compiler/representation-change.cc:1851.
Case ID: R018 FLOAT64MOD-ONE
Reduction / optimization:
% 1.0 / Float64Mod(x, 1.0) lowering and reducer handling.
Unsound FTZ assumption:
Source execution under FTZ flushes the subnormal before modulo; optimized lowering
preserves the raw subnormal result used by the attached PoC.
V8 source locations:
v8/src/compiler/js-typed-lowering.cc:447;
v8/src/compiler/machine-operator-reducer.cc:710;
v8/src/compiler/representation-change.cc:1799;
v8/src/compiler/representation-change.cc:1801;
v8/src/compiler/simplified-lowering.cc:3173;
v8/src/compiler/simplified-lowering.cc:3205;
v8/src/maglev/maglev-graph-optimizer.cc:2921; v8/src/maglev/x64/maglev-ir-x64.cc:809;
v8/src/maglev/x64/maglev-ir-x64.cc:816.
Case ID: R062 JSARRAY-DOUBLE-ELEMENT-MATERIALIZATION
Reduction / optimization:
JSArray PACKED_DOUBLE_ELEMENTS / HOLEY_DOUBLE_ELEMENTS store/load materialization and
direct double-element forwarding.
Unsound FTZ assumption:
Baseline FTZ stores/reloads the element as signed zero; optimized double-element paths can
forward raw subnormal bits into the SameValue and range-typing sequence used by the
attached PoC.
V8 source locations:
v8/src/compiler/js-native-context-specialization.cc:3795;
v8/src/compiler/js-native-context-specialization.cc:4140;
v8/src/compiler/access-builder.cc:1399;
v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:3407;
v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:3475;
v8/src/maglev/maglev-graph-builder.cc:4361;
v8/src/maglev/maglev-graph-builder.cc:4374;
v8/src/maglev/maglev-graph-builder.cc:5672;
v8/src/maglev/maglev-graph-builder.cc:5904; v8/src/maglev/maglev-ir.h:8858;
v8/src/maglev/maglev-ir.h:8925;
v8/src/compiler/turboshaft/turbolev-graph-builder.cc:3479;
v8/src/compiler/turboshaft/turbolev-graph-builder.cc:3617.
VERSION
Chrome Version: 151.0.7915.0 dev build.
Operating System: Ubuntu 24.04.4 LTS x86_64
(Linux 6.17.0-1010-aws).
Validated against:
- Chromium checkout:
6f813967910885b4b8dafaf6a72b7a5c80fba157. - V8 checkout:
0021d325c3a448f4e26e21ef4e0db1bea1e39fda. d8/ V8 version:15.1.192.- Browser RCE validation build:
v8_enable_sandbox = false.
REPRODUCTION CASE
Attached files:
- controlled release crash / stale-array state:
rce_controlled_crash.js; - browser AudioWorklet RCE demo launching
/usr/bin/xcalc:rce_poc.html; - browser RCE worklet:
rce_worklet.js; - RCE offset-refresh script:
refresh_rce_offsets.sh.
Controlled crash state without performing the marker write:
D8=${D8:-/path/to/d8}
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- R010
Expected pre-crash state for a vulnerable build includes:
CONTROLLED_STATE i=0,length=65,first[4] aliases second.length
To perform the marker write and crash the vulnerable build:
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- R010 trigger
The same script supports all release-memory-corruption cases:
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- list
For the browser RCE path, serve the directory containing rce_poc.html and
rce_worklet.js over HTTP and open:
rce_poc.html?root=R010&action=run&cmd=/usr/bin/xcalc&seconds=60&stay=1
The launcher accepts root=R001, R005, R006, R009, R010, R011,
R018, or R062. That parameter selects the affected optimization to
exercise. If cmd is omitted, the demo defaults to /usr/bin/xcalc; any other
command can be supplied with the cmd query parameter.
CRASH INFORMATION
Type of crash: V8 process crash in d8 for the controlled native-write trigger;
browser AudioWorklet command-execution demo in a local Chrome validation build
with the V8 sandbox disabled.
Crash State:
ROOT R010 SUBTRACT-FTZ-MINUSZERO-TYPING
BASELINE d=0x8000000000000000,b=true,i=64,len=65
OPT_STATE d=0x8000000000000000,b=true,n=-1,o=4294967296,o_=0,i=0,first.length=65,first[4]=3,second.length=3,second[0]=1,status=41
CONTROLLED_STATE i=0,length=65,first[4] aliases second.length
Received signal 11 SEGV_ACCERR 21de4141413f
==== C stack trace ===============================
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0x1f39676)[0x6040e41c3676]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x7f3c96c45330]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0xa0172e)[0x6040e2c8b72e]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0xa04b4e)[0x6040e2c8eb4e]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0x1dbfdb6)[0x6040e4049db6]
CREDIT INFORMATION
Reporter credit: Found by XBOW and triaged by Brendan Dolan-Gavitt
Context
This report concerns V8, the JavaScript engine used by Chrome, and specifically the floating-point behaviour of code that runs with flush-to-zero (FTZ) and denormals-are-zero (DAZ) enabled. The AudioWorklet isolate is one such environment: inside it, generated code runs with FTZ/DAZ active, so subnormal (denormal) floating-point values are flushed to signed zero at runtime.
The claim is that several V8 optimising reductions are unsound under that mode. The report is explicit that this is a same-mode FTZ issue: compilation and execution both happen under FTZ/DAZ. It is not a case of compiling in one FTZ mode and executing in another. In each supported case, optimised code and unoptimised or baseline execution disagree about the same floating-point value: one side observes a signed zero, the other preserves the raw subnormal bits.
The attached proof of concept feeds that disagreement into Object.is, integer range typing and JSArray growth. The result is a stale JSArray length/backing-store mismatch that can be turned into a controlled native write.
Setup
The report gives the following environment details.
- Chrome version:
151.0.7915.0dev build. - Operating system: Ubuntu 24.04.4 LTS x86_64 (
Linux 6.17.0-1010-aws). - Chromium checkout:
[redacted]. - V8 checkout:
[redacted]. d8/ V8 version:15.1.192.- Browser RCE validation build:
v8_enable_sandbox = false.
The browser command-execution demo is intended for a local validation build with the V8 sandbox disabled. The latest validation used out/current-d8/args.gn with v8_enable_sandbox = false. The worklet also embeds two offsets into the tested chrome binary, and the report says to rerun ./refresh_rce_offsets.sh /path/to/chrome after rebuilding Chrome. For the current validation binary those offsets are:
CHROME_DTOR_OFFSET = 0x0000000006f3d340n
EXECVP_PLT_OFFSET = 0x000000000521c360n
The attached files are:
rce_controlled_crash.js, for the controlled release crash / stale-array state;rce_poc.html, the browser AudioWorklet RCE demo launching/usr/bin/xcalc;rce_worklet.js, the browser RCE worklet;refresh_rce_offsets.sh, the RCE offset-refresh script.
Finding it
The report identifies a class of optimising reductions whose correctness depends on how subnormal values behave at runtime. Under FTZ/DAZ, a runtime operation can materialise a subnormal input or result as signed zero, while an optimised reduction that deletes or rewrites the operation preserves the raw subnormal bits. The two execution tiers then disagree about the same value.
The PoC turns that disagreement into memory corruption. The d8 PoC uses V8 native syntax so that it can show the pre-optimisation state, warm the function, request optimisation with %OptimizeFunctionOnNextCall, and then run the optimised function. The selected optimisation and the JSArray length-corruption sequence are in the same generated function.
The browser AudioWorklet demo cannot use V8 native optimisation intrinsics. Instead it repeatedly runs the same generated function in the AudioWorklet isolate so that Chrome's normal tiering pipeline optimises it. The query parameter root=... selects which of the eight optimisation cases to run; the rest of the JavaScript and the command-execution code are shared.
Affected optimisations
The report lists eight cases. Each entry below gives the case ID, the reduction, the unsound FTZ assumption and the V8 source locations named in the report.
R001 DIV-ONE
Reduction: Float64Div(x, 1.0) -> x.
Unsound FTZ assumption: runtime division under FTZ/DAZ materialises a subnormal input/result as signed zero; deleting the division preserves raw subnormal bits.
V8 source locations:
v8/src/compiler/machine-operator-reducer.cc:676v8/src/compiler/turboshaft/machine-optimization-reducer.h:649v8/src/maglev/maglev-reducer-inl.h:3456
R005 UNARY-MATH-MINMAX
Reduction: one-argument Math.min(x) / Math.max(x) reduced to ToNumber(x) / identity-like numeric lowering.
Unsound FTZ assumption: the unoptimised builtin path materialises the argument under FTZ; the optimised one-argument reduction passes the raw subnormal through.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3076v8/src/compiler/js-call-reducer.cc:3090v8/src/compiler/js-call-reducer.cc:5642
R006 SAMEVALUE-SIGNED-ZERO
Reduction: Object.is / SameValue numeric lowering and signed-zero type reasoning.
Unsound FTZ assumption: optimised SameValue reasoning is not conservative for a negative subnormal that same-mode FTZ execution can observe as -0.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3581v8/src/compiler/typed-optimization.cc:677v8/src/compiler/simplified-lowering.cc:3770v8/src/compiler/operation-typer.cc:1287
R009 MATH-ABS-FTZ-ZERO
Reduction: Math.abs / NumberAbs lowered to raw Float64Abs / sign-bit clearing.
Unsound FTZ assumption: the optimised path keeps raw subnormal-derived facts, while same-mode FTZ runtime observation can classify the value as zero.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:5580v8/src/compiler/js-call-reducer.cc:2982v8/src/compiler/simplified-lowering.cc:3350v8/src/compiler/simplified-lowering.cc:3382v8/src/compiler/turboshaft/graph-builder.cc:707v8/src/compiler/backend/x64/instruction-selector-x64.cc:3189v8/src/maglev/maglev-reducer-inl.h:3945v8/src/maglev/x64/maglev-ir-x64.cc:862
R010 SUBTRACT-FTZ-MINUSZERO-TYPING
Reduction: OperationTyper::NumberSubtract and downstream SameValue typing for exact negative-subnormal subtraction results.
Unsound FTZ assumption: the type excludes MinusZero, but under FTZ/DAZ an exact negative subnormal arithmetic result can be observed as -0.
V8 source locations:
v8/src/compiler/operation-typer.cc:682v8/src/compiler/operation-typer.cc:692v8/src/compiler/operation-typer.cc:719v8/src/compiler/operation-typer.cc:1287v8/src/compiler/typed-optimization.cc:657
R011 BINARY-MATH-MINMAX-COMPARE-SELECT
Reduction: two-argument Math.min / Math.max lowered to NumberMin / NumberMax and Float64 compare/select.
Unsound FTZ assumption: denormals can compare as zero under DAZ while still carrying raw sign/subnormal bits through selected optimised paths.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3076v8/src/compiler/js-call-reducer.cc:3094v8/src/compiler/operation-typer.cc:1092v8/src/compiler/operation-typer.cc:1127v8/src/compiler/simplified-lowering.cc:3463v8/src/compiler/simplified-lowering.cc:3512v8/src/compiler/representation-change.cc:1851
R018 FLOAT64MOD-ONE
Reduction: % 1.0 / Float64Mod(x, 1.0) lowering and reducer handling.
Unsound FTZ assumption: source execution under FTZ flushes the subnormal before modulo; optimised lowering preserves the raw subnormal result used by the attached PoC.
V8 source locations:
v8/src/compiler/js-typed-lowering.cc:447v8/src/compiler/machine-operator-reducer.cc:710v8/src/compiler/representation-change.cc:1799v8/src/compiler/representation-change.cc:1801v8/src/compiler/simplified-lowering.cc:3173v8/src/compiler/simplified-lowering.cc:3205v8/src/maglev/maglev-graph-optimizer.cc:2921v8/src/maglev/x64/maglev-ir-x64.cc:809v8/src/maglev/x64/maglev-ir-x64.cc:816
R062 JSARRAY-DOUBLE-ELEMENT-MATERIALIZATION
Reduction: JSArray PACKED_DOUBLE_ELEMENTS / HOLEY_DOUBLE_ELEMENTS store/load materialisation and direct double-element forwarding.
Unsound FTZ assumption: baseline FTZ stores/reloads the element as signed zero; optimised double-element paths can forward raw subnormal bits into the SameValue and range-typing sequence used by the attached PoC.
V8 source locations:
v8/src/compiler/js-native-context-specialization.cc:3795v8/src/compiler/js-native-context-specialization.cc:4140v8/src/compiler/access-builder.cc:1399v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:3407v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:3475v8/src/maglev/maglev-graph-builder.cc:4361v8/src/maglev/maglev-graph-builder.cc:4374v8/src/maglev/maglev-graph-builder.cc:5672v8/src/maglev/maglev-graph-builder.cc:5904v8/src/maglev/maglev-ir.h:8858v8/src/maglev/maglev-ir.h:8925v8/src/compiler/turboshaft/turbolev-graph-builder.cc:3479v8/src/compiler/turboshaft/turbolev-graph-builder.cc:3617
Exploitation
Step 1: reproduce the stale-array state in d8
The controlled crash script is run with native syntax enabled and denormals flushed, selecting the R010 case:
D8=${D8:-/path/to/d8}
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- R010
--allow-natives-syntax and --flush-denormals are the flags shown in the report's command. The trailing R010 selects the subtraction typing case.
For a vulnerable build, the expected pre-crash state includes:
CONTROLLED_STATE i=0,length=65,first[4] aliases second.length
The report lists that line as part of the expected pre-crash state for a vulnerable build.
Step 2: perform the marker write and crash
The same script is rerun with the trigger argument to carry out the marker write:
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- R010 trigger
The report describes this as the controlled native-write trigger. The crash information section records the resulting state:
ROOT R010 SUBTRACT-FTZ-MINUSZERO-TYPING
BASELINE d=0x8000000000000000,b=true,i=64,len=65
OPT_STATE d=0x8000000000000000,b=true,n=-1,o=4294967296,o_=0,i=0,first.length=65,first[4]=3,second.length=3,second[0]=1,status=41
CONTROLLED_STATE i=0,length=65,first[4] aliases second.length
Received signal 11 SEGV_ACCERR 21de4141413f
==== C stack trace ===============================
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0x1f39676)[0x6040e41c3676]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x7f3c96c45330]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0xa0172e)[0x6040e2c8b72e]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0xa04b4e)[0x6040e2c8eb4e]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0x1dbfdb6)[0x6040e4049db6]
The baseline line shows d=0x8000000000000000, b=true, i=64 and len=65. The optimised state line shows the same d and b, but with n=-1, o=4294967296, o_=0, i=0, first.length=65, first[4]=3, second.length=3 and second[0]=1, with status=41. The controlled state line confirms the aliasing. The report then shows Received signal 11 SEGV_ACCERR 21de4141413f followed by the C stack trace above.
Step 3: list the supported cases
The same script supports all release-memory-corruption cases:
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- list
Step 4: run the browser AudioWorklet demo
For the browser RCE path, serve the directory containing rce_poc.html and rce_worklet.js over HTTP and open:
rce_poc.html?root=R010&action=run&cmd=/usr/bin/xcalc&seconds=60&stay=1
The launcher accepts root=R001, R005, R006, R009, R010, R011, R018 or R062. That parameter selects the affected optimisation to exercise. If cmd is omitted, the demo defaults to /usr/bin/xcalc; any other command can be supplied with the cmd query parameter. The action, seconds and stay parameters are shown in the URL above; the report does not describe them further.
Root cause
The root cause is a mismatch between the FTZ/DAZ semantics of runtime execution and the assumptions baked into optimising reductions. Under FTZ/DAZ, a subnormal value can be observed as signed zero at runtime. Several reductions rewrite or delete the operation that would have performed that flush, so the optimised code keeps the raw subnormal bits instead. The report frames this as a same-mode issue: both compilation and execution are under FTZ/DAZ, so the problem is not a mode mismatch between tiers but an incorrect assumption inside the reductions themselves.
The disagreement is then amplified. The PoC feeds it into Object.is, integer range typing and JSArray growth. Because the optimised tier believes one thing about the value (for example, that a subtraction result cannot be MinusZero, as in R010) while runtime observation produces -0, the type reasoning and the SameValue checks diverge from what actually happens. The JSArray double-element materialisation case (R062) lets raw subnormal bits be forwarded into that SameValue and range-typing sequence, where baseline execution would have stored and reloaded the element as signed zero. The end result is a stale JSArray length/backing-store mismatch, which the PoC turns into a controlled native write.
The report does not describe any specific defence that was in place and failed; it presents the reductions themselves as the defect.
Impact
The report describes two demonstrated outcomes. In d8, the controlled native-write trigger produces a V8 process crash, with the stale-array state shown above. In the browser, the AudioWorklet command-execution demo runs in a local Chrome validation build with the V8 sandbox disabled and launches a command, defaulting to /usr/bin/xcalc.
The browser command-execution path depends on the stated preconditions: a local validation build with v8_enable_sandbox = false, and worklet offsets that match the tested chrome binary, refreshed with ./refresh_rce_offsets.sh /path/to/chrome after rebuilding. The report describes the browser demo only for a local validation build with the V8 sandbox disabled.
Fix
The platform record lists this as CVE-2026-16421, an inappropriate implementation in WebAudio, disclosed on 2026-07-21 with a bounty of 500.00 USD. The technical fix is not described in the report text.
Variants to test
Each of the eight cases is a concrete variant to exercise against a build with FTZ/DAZ execution. The launcher accepts each as a root value, and the d8 script accepts the case ID as its argument.
R001(Float64Div(x, 1.0) -> x): run the case and check whether optimised and baseline execution disagree on a subnormal input, with one side seeing signed zero and the other raw subnormal bits.R005(one-argumentMath.min/Math.max): check whether the optimised reduction passes a raw subnormal through where the unoptimised builtin materialises it under FTZ.R006(Object.is/ SameValue): check whether optimised SameValue reasoning treats a negative subnormal as not-0when same-mode FTZ execution observes-0.R009(Math.abs/NumberAbs): check whether the optimised path keeps raw subnormal-derived facts while FTZ runtime observation classifies the value as zero.R010(OperationTyper::NumberSubtract): check whether an exact negative-subnormal subtraction result is typed as excludingMinusZerowhile runtime observation yields-0. This is the case used for the controlled crash and the browser demo.R011(two-argumentMath.min/Math.max): check whether denormals compare as zero under DAZ while raw sign/subnormal bits pass through the selected optimised path.R018(% 1.0/Float64Mod(x, 1.0)): check whether source execution flushes the subnormal before modulo while optimised lowering preserves the raw subnormal result.R062(JSArray double-element materialisation): check whether baseline FTZ stores and reloads the element as signed zero while optimised double-element paths forward raw subnormal bits into the SameValue and range-typing sequence.
A positive result for any of these is the same observable pattern: optimised and unoptimised execution disagree about the same floating-point value, and the disagreement can be driven into Object.is, integer range typing and JSArray growth to produce the stale length/backing-store mismatch shown by CONTROLLED_STATE i=0,length=65,first[4] aliases second.length.
What happened, in plain words
Chrome runs JavaScript using a piece of software called V8. V8 is the JavaScript engine: the program inside the browser that reads the JavaScript on a web page and actually carries out the instructions. When a page says "add these two numbers" or "put this value in a list", V8 is what does it.
V8 has two ways of running the same JavaScript. The first is a careful, straightforward interpreter that does exactly what the code says, step by step. The second is an optimising compiler: after V8 has seen the same function run many times, it rewrites that function into a faster version, on the assumption that it now knows what the code is doing. This is normal and is how browsers make heavy JavaScript fast. The fast version is supposed to behave exactly like the slow one. If it does not, that difference is a bug.
This report is about a specific kind of number and a specific setting. Computers store decimal numbers in a format called floating point. Most floating point numbers are "normal", but there is a special range of extremely tiny values called subnormal (or denormal) numbers. They are so small that they sit right at the edge of what the format can represent.
Some processors can be told to treat those tiny numbers as if they were zero. The setting has two names:
- FTZ (flush to zero): when a calculation produces a subnormal result, store it as zero instead.
- DAZ (denormals are zero): when a subnormal value is read as input, treat it as zero.
Together, FTZ/DAZ mean "pretend the tiny numbers do not exist". This is a deliberate speed setting: handling subnormals can be slow on some hardware, and many audio and graphics programs do not care about values that small.
Chrome uses this setting in one particular place: the AudioWorklet. An AudioWorklet is a small JavaScript program that runs on a dedicated audio thread to process sound in real time. Because audio processing must be fast and predictable, the code inside an AudioWorklet runs with FTZ/DAZ switched on. That is the environment this report is about.
The bug is this: several of V8's speed rewrites assume that a tiny number stays a tiny number. But inside the AudioWorklet, the processor flushes that tiny number to zero. So the slow version of the code sees zero, and the fast version sees the original tiny value. The two versions disagree about the same number.
The report is careful about one point. This is a same-mode problem: the code is both compiled and run with FTZ/DAZ on. It is not a case of compiling with the setting off and running with it on. The mistake is inside the rewrites themselves, which do not account for the setting even when it is active the whole time.
The proof of concept feeds that disagreement into Object.is, integer range typing and JSArray growth. The result is a stale JSArray length/backing-store mismatch: the array's recorded length and the actual block of memory holding its elements get out of step. The report says that mismatch can be turned into a controlled native write, meaning the attacker can make the program write a chosen value to a chosen place in memory. The report describes the mismatch as something that can be turned into a controlled native write.
The setup
The report records the exact environment used, so that someone else can rebuild it and see the same thing.
- Chrome version:
151.0.7915.0dev build. A dev build is an early, unfinished build of Chrome used by developers, not the version ordinary users have. - Operating system: Ubuntu 24.04.4 LTS x86_64 (
Linux 6.17.0-1010-aws). - Chromium checkout:
[redacted]. A checkout is a specific snapshot of the source code, identified by a long hash so that everyone is looking at exactly the same code. - V8 checkout:
[redacted]. d8/ V8 version:15.1.192. d8 is V8's own small command-line program for running JavaScript outside a browser. Researchers use it because it is much easier to experiment with than full Chrome.- Browser RCE validation build:
v8_enable_sandbox = false. RCE stands for remote code execution: making a program run commands of your choosing. The V8 sandbox is a containment layer that tries to stop a V8 bug from turning into full control of the browser process. Setting it tofalseswitches that containment off, which is why the demo is only meant for a local test build.
The browser command-execution demo is intended for a local validation build with the V8 sandbox disabled. The latest validation used out/current-d8/args.gn with v8_enable_sandbox = false. The worklet also embeds two offsets into the tested chrome binary. An offset is a distance from the start of a file to a particular piece of code inside it; if the binary is rebuilt, those distances change, so they have to be recalculated. The report says to rerun ./refresh_rce_offsets.sh /path/to/chrome after rebuilding Chrome. For the current validation binary those offsets are:
CHROME_DTOR_OFFSET = 0x0000000006f3d340n
EXECVP_PLT_OFFSET = 0x000000000521c360n
The report gives the two offsets as CHROME_DTOR_OFFSET and EXECVP_PLT_OFFSET without further explanation. The 0x prefix means the number is written in hexadecimal, and the trailing n marks it as a JavaScript BigInt, a number type that can hold very large integers exactly.
The attached files are:
rce_controlled_crash.js, for the controlled release crash / stale-array state;rce_poc.html, the browser AudioWorklet RCE demo launching/usr/bin/xcalc;rce_worklet.js, the browser RCE worklet;refresh_rce_offsets.sh, the RCE offset-refresh script.
/usr/bin/xcalc is the command the demo launches by default.
Finding it
The report identifies a whole class of optimising rewrites whose correctness depends on how tiny numbers behave at runtime. Under FTZ/DAZ, a runtime operation can turn a subnormal input or result into signed zero. An optimised rewrite that deletes or rewrites that operation keeps the raw subnormal bits instead. The two execution tiers then disagree about the same value.
Signed zero deserves a moment. Floating point has two zeros, +0 and -0. They compare as equal, but they are not identical: Object.is(+0, -0) is false. The report says optimised SameValue reasoning is not conservative for a negative subnormal that same-mode FTZ execution can observe as -0.
The PoC turns that disagreement into memory corruption. The d8 PoC uses V8 native syntax, special functions that only exist in V8's own test shell and let a script peek at and control the engine's internals. With them the script can show the pre-optimisation state, warm the function (run it enough times that V8 decides it is hot), request optimisation with %OptimizeFunctionOnNextCall, and then run the optimised function. The selected optimisation and the JSArray length-corruption sequence are in the same generated function, so the wrong number flows straight into the array logic.
The browser AudioWorklet demo cannot use V8 native optimisation intrinsics, because a normal web page has no access to them. Instead it repeatedly runs the same generated function in the AudioWorklet isolate so that Chrome's normal tiering pipeline optimises it. Tiering is the process by which V8 moves a function from the slow interpreter to faster compiled versions as it gets hotter. The query parameter root=... selects which of the eight optimisation cases to run; the rest of the JavaScript and the command-execution code are shared.
Affected optimisations
The report lists eight cases. Each entry below gives the case ID, the reduction, the unsound FTZ assumption and the V8 source locations named in the report. A reduction is a rewrite rule: "this expression can always be replaced by that simpler one". A source location is a file and line number in the V8 code, so a fixer can go straight to the relevant line.
R001 DIV-ONE
Reduction: Float64Div(x, 1.0) -> x. Dividing a number by one always gives the same number, so V8 deletes the division.
Unsound FTZ assumption: runtime division under FTZ/DAZ materialises a subnormal input/result as signed zero; deleting the division preserves raw subnormal bits.
V8 source locations:
v8/src/compiler/machine-operator-reducer.cc:676v8/src/compiler/turboshaft/machine-optimization-reducer.h:649v8/src/maglev/maglev-reducer-inl.h:3456
R005 UNARY-MATH-MINMAX
Reduction: one-argument Math.min(x) / Math.max(x) reduced to ToNumber(x) / identity-like numeric lowering. With only one argument, the smallest or largest of one number is just that number, so V8 simplifies it away.
Unsound FTZ assumption: the unoptimised builtin path materialises the argument under FTZ; the optimised one-argument reduction passes the raw subnormal through.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3076v8/src/compiler/js-call-reducer.cc:3090v8/src/compiler/js-call-reducer.cc:5642
R006 SAMEVALUE-SIGNED-ZERO
Reduction: Object.is / SameValue numeric lowering and signed-zero type reasoning. Object.is is the JavaScript comparison that, unlike ===, tells +0 and -0 apart.
Unsound FTZ assumption: optimised SameValue reasoning is not conservative for a negative subnormal that same-mode FTZ execution can observe as -0.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3581v8/src/compiler/typed-optimization.cc:677v8/src/compiler/simplified-lowering.cc:3770v8/src/compiler/operation-typer.cc:1287
R009 MATH-ABS-FTZ-ZERO
Reduction: Math.abs / NumberAbs lowered to raw Float64Abs / sign-bit clearing. Math.abs returns the distance of a number from zero, so it removes the minus sign.
Unsound FTZ assumption: the optimised path keeps raw subnormal-derived facts, while same-mode FTZ runtime observation can classify the value as zero.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:5580v8/src/compiler/js-call-reducer.cc:2982v8/src/compiler/simplified-lowering.cc:3350v8/src/compiler/simplified-lowering.cc:3382v8/src/compiler/turboshaft/graph-builder.cc:707v8/src/compiler/backend/x64/instruction-selector-x64.cc:3189v8/src/maglev/maglev-reducer-inl.h:3945v8/src/maglev/x64/maglev-ir-x64.cc:862
R010 SUBTRACT-FTZ-MINUSZERO-TYPING
Reduction: OperationTyper::NumberSubtract and downstream SameValue typing for exact negative-subnormal subtraction results. The type system here is V8's internal bookkeeping about what kind of value a variable can hold; if it decides a result can never be -0, later code may skip the check for it.
Unsound FTZ assumption: the type excludes MinusZero, but under FTZ/DAZ an exact negative subnormal arithmetic result can be observed as -0.
V8 source locations:
v8/src/compiler/operation-typer.cc:682v8/src/compiler/operation-typer.cc:692v8/src/compiler/operation-typer.cc:719v8/src/compiler/operation-typer.cc:1287v8/src/compiler/typed-optimization.cc:657
R011 BINARY-MATH-MINMAX-COMPARE-SELECT
Reduction: two-argument Math.min / Math.max lowered to NumberMin / NumberMax and Float64 compare/select. With two arguments, V8 compares them and picks one, which is a cheap operation on the processor.
Unsound FTZ assumption: denormals can compare as zero under DAZ while still carrying raw sign/subnormal bits through selected optimised paths.
V8 source locations:
v8/src/compiler/js-call-reducer.cc:3076v8/src/compiler/js-call-reducer.cc:3094v8/src/compiler/operation-typer.cc:1092v8/src/compiler/operation-typer.cc:1127v8/src/compiler/simplified-lowering.cc:3463v8/src/compiler/simplified-lowering.cc:3512v8/src/compiler/representation-change.cc:1851
R018 FLOAT64MOD-ONE
Reduction: % 1.0 / Float64Mod(x, 1.0) lowering and reducer handling. The % operator gives the remainder after division; anything modulo one is the fractional part.
Unsound FTZ assumption: source execution under FTZ flushes the subnormal before modulo; optimised lowering preserves the raw subnormal result used by the attached PoC.
V8 source locations:
v8/src/compiler/js-typed-lowering.cc:447v8/src/compiler/machine-operator-reducer.cc:710v8/src/compiler/representation-change.cc:1799v8/src/compiler/representation-change.cc:1801v8/src/compiler/simplified-lowering.cc:3173v8/src/compiler/simplified-lowering.cc:3205v8/src/maglev/maglev-graph-optimizer.cc:2921v8/src/maglev/x64/maglev-ir-x64.cc:809v8/src/maglev/x64/maglev-ir-x64.cc:816
R062 JSARRAY-DOUBLE-ELEMENT-MATERIALIZATION
Reduction: JSArray PACKED_DOUBLE_ELEMENTS / HOLEY_DOUBLE_ELEMENTS store/load materialisation and direct double-element forwarding. A JavaScript array can hold its numbers in a compact block of floating point slots; PACKED means no gaps, HOLEY means some slots are empty. Materialisation is the moment a value is actually written into memory rather than kept in a register.
Unsound FTZ assumption: baseline FTZ stores/reloads the element as signed zero; optimised double-element paths can forward raw subnormal bits into the SameValue and range-typing sequence used by the attached PoC.
V8 source locations:
v8/src/compiler/js-native-context-specialization.cc:3795v8/src/compiler/js-native-context-specialization.cc:4140v8/src/compiler/access-builder.cc:1399v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:3407v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:3475v8/src/maglev/maglev-graph-builder.cc:4361v8/src/maglev/maglev-graph-builder.cc:4374v8/src/maglev/maglev-graph-builder.cc:5672v8/src/maglev/maglev-graph-builder.cc:5904v8/src/maglev/maglev-ir.h:8858v8/src/maglev/maglev-ir.h:8925v8/src/compiler/turboshaft/turbolev-graph-builder.cc:3479v8/src/compiler/turboshaft/turbolev-graph-builder.cc:3617
Exploitation
Step 1: reproduce the stale-array state in d8
The controlled crash script is run with native syntax enabled and denormals flushed, selecting the R010 case:
D8=${D8:-/path/to/d8}
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- R010
Line by line:
D8=${D8:-/path/to/d8}sets a shell variable calledD8. IfD8is already set in the environment, it keeps that value; otherwise it uses the placeholder path/path/to/d8. This lets you point the script at your own copy of d8 without editing it."$D8"runs that program. The quotes matter because the path may contain spaces.--allow-natives-syntaxenables the V8 intrinsics the PoC uses to inspect pre-optimisation state and force optimisation. Without it,%OptimizeFunctionOnNextCalland similar calls would be rejected.--flush-denormalsputs execution in the FTZ/DAZ mode the bug depends on. This is the switch that makes the tiny numbers behave like zero, reproducing the AudioWorklet environment.rce_controlled_crash.jsis the script being run.--tells d8 that everything after it belongs to the script, not to d8 itself.R010selects the subtraction typing case.
For a vulnerable build, the expected pre-crash state includes:
CONTROLLED_STATE i=0,length=65,first[4] aliases second.length
That line is the core of the bug. first and second are two arrays. first[4] is the fifth element of the first array, and second.length is the recorded length of the second array. The line says the element and the length are the same piece of memory: writing to one changes the other. That is the stale JSArray length/backing-store mismatch. The backing store is the separate block of memory that actually holds the array's elements; the length is a number stored elsewhere. Normally they are kept in agreement, and here they are not.
Step 2: perform the marker write and crash
The same script is rerun with the trigger argument to carry out the marker write:
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- R010 trigger
This is the same command as before with one extra word, trigger, at the end. The report describes this run as performing the marker write and crashing the vulnerable build. The report describes this as the controlled native-write trigger. The crash information section records the resulting state:
ROOT R010 SUBTRACT-FTZ-MINUSZERO-TYPING
BASELINE d=0x8000000000000000,b=true,i=64,len=65
OPT_STATE d=0x8000000000000000,b=true,n=-1,o=4294967296,o_=0,i=0,first.length=65,first[4]=3,second.length=3,second[0]=1,status=41
CONTROLLED_STATE i=0,length=65,first[4] aliases second.length
Received signal 11 SEGV_ACCERR 21de4141413f
==== C stack trace ===============================
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0x1f39676)[0x6040e41c3676]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x7f3c96c45330]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0xa0172e)[0x6040e2c8b72e]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0xa04b4e)[0x6040e2c8eb4e]
/home/moyix/chromium-src-codex/src/out/current-d8/d8(+0x1dbfdb6)[0x6040e4049db6]
What each part means:
ROOT R010 SUBTRACT-FTZ-MINUSZERO-TYPINGnames the case being exercised.- The
BASELINEline is what the slow, unoptimised path saw.d=0x8000000000000000is the raw bit pattern of negative zero, written in hexadecimal.b=trueis a boolean result,i=64an integer,len=65a length. - The
OPT_STATEline is what the optimised path saw. It shows the samedandb, but withn=-1,o=4294967296,o_=0,i=0,first.length=65,first[4]=3,second.length=3andsecond[0]=1, withstatus=41. The two lines disagreeing is the bug in action. - The
CONTROLLED_STATEline confirms the aliasing described above. Received signal 11 SEGV_ACCERR 21de4141413fis the crash. Signal 11 isSIGSEGV, a segmentation fault: the program tried to touch memory it is not allowed to touch.SEGV_ACCERRsays the access permission was wrong, and21de4141413fis the address it tried to use.21de4141413fis the value shown in the report's signal line.- The C stack trace lists the chain of function calls that led to the crash, innermost frame first. The paths show the d8 binary and the system C library.
Step 3: list the supported cases
The same script supports all release-memory-corruption cases:
"$D8" --allow-natives-syntax --flush-denormals \
rce_controlled_crash.js -- list
Here the final word is list instead of a case ID or trigger. It asks the script to print the cases it can run, so you can see the full menu before choosing one.
Step 4: run the browser AudioWorklet demo
For the browser RCE path, serve the directory containing rce_poc.html and rce_worklet.js over HTTP and open:
rce_poc.html?root=R010&action=run&cmd=/usr/bin/xcalc&seconds=60&stay=1
This is a URL with a query string: everything after the ? is a list of name=value pairs separated by &. Each pair is a setting the page reads when it loads.
root=R010picks the optimisation case.action=runis passed in the URL; the report does not describe it further.cmd=/usr/bin/xcalcis the program to launch.seconds=60andstay=1are also passed; the report does not describe them further.
The launcher accepts root=R001, R005, R006, R009, R010, R011, R018 or R062. That parameter selects the affected optimisation to exercise. If cmd is omitted, the demo defaults to /usr/bin/xcalc; any other command can be supplied with the cmd query parameter.
Serving the directory over HTTP simply means running a small local web server in that folder, so the browser can load the page as a normal website rather than as a local file.
Root cause
The root cause is a mismatch between the FTZ/DAZ behaviour of runtime execution and the assumptions baked into optimising reductions. Under FTZ/DAZ, a subnormal value can be observed as signed zero at runtime. Several reductions rewrite or delete the operation that would have performed that flush, so the optimised code keeps the raw subnormal bits instead. The report frames this as a same-mode issue: both compilation and execution are under FTZ/DAZ, so the problem is not a mode mismatch between tiers but an incorrect assumption inside the reductions themselves.
A useful comparison: imagine a shop that rounds every price to the nearest pound at the till. A shortcut that says "skip the till, the price is already a whole number" is fine only if the price really is whole. Here the shortcut assumes the tiny number is still a tiny number, but the till (the processor in FTZ/DAZ mode) rounds it to zero. The shortcut is wrong even though everyone is using the same till.
The disagreement is then amplified. The PoC feeds it into Object.is, integer range typing and JSArray growth. Because the optimised tier believes one thing about the value (for example, that a subtraction result cannot be MinusZero, as in R010) while runtime observation produces -0, the type reasoning and the SameValue checks diverge from what actually happens. The JSArray double-element materialisation case (R062) lets raw subnormal bits be forwarded into that SameValue and range-typing sequence, where baseline execution would have stored and reloaded the element as signed zero. The end result is a stale JSArray length/backing-store mismatch, which the PoC turns into a controlled native write.
Impact
The report describes two demonstrated outcomes. In d8, the controlled native-write trigger produces a V8 process crash, with the stale-array state shown above. In the browser, the AudioWorklet command-execution demo runs in a local Chrome validation build with the V8 sandbox disabled and launches a command, defaulting to /usr/bin/xcalc.
The browser command-execution path depends on the stated preconditions: a local validation build with v8_enable_sandbox = false, and worklet offsets that match the tested chrome binary, refreshed with ./refresh_rce_offsets.sh /path/to/chrome after rebuilding. The report does not claim exploitation against a production Chrome build with the sandbox enabled.
Fix
The platform record lists this as CVE-2026-16421, an inappropriate implementation in WebAudio, disclosed on 2026-07-21 with a bounty of 500.00 USD. A CVE is a public identifier for a known vulnerability, so that people can look it up and track it. The technical fix is not described in the report text.
Variants to test
Each of the eight cases is a concrete variant to exercise against a build with FTZ/DAZ execution. The launcher accepts each as a root value, and the d8 script accepts the case ID as its argument.
R001(Float64Div(x, 1.0) -> x): run the case and check whether optimised and baseline execution disagree on a subnormal input, with one side seeing signed zero and the other raw subnormal bits.R005(one-argumentMath.min/Math.max): check whether the optimised reduction passes a raw subnormal through where the unoptimised builtin materialises it under FTZ.R006(Object.is/ SameValue): check whether optimised SameValue reasoning treats a negative subnormal as not-0when same-mode FTZ execution observes-0.R009(Math.abs/NumberAbs): check whether the optimised path keeps raw subnormal-derived facts while FTZ runtime observation classifies the value as zero.R010(OperationTyper::NumberSubtract): check whether an exact negative-subnormal subtraction result is typed as excludingMinusZerowhile runtime observation yields-0. This is the case used for the controlled crash and the browser demo.R011(two-argumentMath.min/Math.max): check whether denormals compare as zero under DAZ while raw sign/subnormal bits pass through the selected optimised path.R018(% 1.0/Float64Mod(x, 1.0)): check whether source execution flushes the subnormal before modulo while optimised lowering preserves the raw subnormal result.R062(JSArray double-element materialisation): check whether baseline FTZ stores and reloads the element as signed zero while optimised double-element paths forward raw subnormal bits into the SameValue and range-typing sequence.
A positive result for any of these is the same observable pattern: optimised and unoptimised execution disagree about the same floating-point value, and the disagreement can be driven into Object.is, integer range typing and JSArray growth to produce the stale length/backing-store mismatch shown by CONTROLLED_STATE i=0,length=65,first[4] aliases second.length.
Glossary
- API: a defined set of functions one program offers to another so they can talk to each other without knowing each other's internals.
- AudioWorklet: a Chrome feature that runs JavaScript on a dedicated audio thread to process sound in real time.
- Backing store: the separate block of memory that actually holds a JavaScript array's elements, as opposed to the length number stored elsewhere.
- Baseline: the simple, unoptimised way of running code, used before V8 decides a function is hot enough to optimise.
- BigInt: a JavaScript number type that can hold very large integers exactly, written with a trailing
n. - Bit pattern: the exact sequence of 0s and 1s a computer uses to store a value.
- Checkout: a specific snapshot of a source code repository, identified by a long hash.
- CVE: a public identifier for a known vulnerability, so people can look it up and track it.
- DAZ (denormals are zero): a processor setting that treats subnormal values as zero when they are read as input.
- d8: V8's own small command-line program for running JavaScript outside a browser, used by researchers.
- Denormal: another word for subnormal; an extremely tiny floating point value at the edge of what the format can represent.
- Dev build: an early, unfinished build of Chrome used by developers, not the version ordinary users have.
- Floating point: the computer format for storing decimal numbers, with a sign, a fraction and an exponent.
- FTZ (flush to zero): a processor setting that stores a subnormal calculation result as zero.
- FTZ/DAZ: the two settings together, meaning tiny numbers are treated as zero on both input and output.
- Hexadecimal: a way of writing numbers in base 16, using digits 0 to 9 and letters A to F, often prefixed with
0x. - Intrinsic: a special function built into the engine that a normal web page cannot call, used by V8's own tests.
- Isolate: an isolated instance of the V8 engine with its own memory and state; the AudioWorklet runs in its own isolate.
- JavaScript engine: the program inside a browser that reads and executes JavaScript.
- JSArray: V8's internal representation of a JavaScript array.
- Materialisation: the moment a value is actually written into memory rather than kept in a processor register.
- Memory corruption: a bug where a program writes to memory it should not, changing data or code it does not own.
- MinusZero: the negative zero value,
-0, which compares equal to+0but is not identical to it. - Native write: writing a chosen value to a chosen place in a program's memory.
- Object.is: the JavaScript comparison that, unlike
===, distinguishes+0from-0. - Offset: a distance from the start of a file to a particular piece of code inside it.
- Optimising compiler: the part of an engine that rewrites hot functions into faster versions, assuming it knows what the code does.
- Query string: the part of a URL after the
?, made ofname=valuepairs separated by&. - RCE (remote code execution): making a program run commands of your choosing.
- Reduction: a rewrite rule that replaces an expression with a simpler equivalent one.
- SameValue: the comparison algorithm behind
Object.is, which treats+0and-0as different. - Segmentation fault (SIGSEGV): the crash that happens when a program touches memory it is not allowed to touch.
- Signed zero: the fact that floating point has both
+0and-0, which compare equal but are not identical. - Source location: a file and line number in the source code, used to point a fixer at the relevant line.
- Stack trace: the list of function calls that led to a crash, innermost first.
- Stale length/backing-store mismatch: a state where an array's recorded length and the memory holding its elements disagree.
- Subnormal: an extremely tiny floating point value at the edge of what the format can represent.
- Tiering: the process by which V8 moves a function from the slow interpreter to faster compiled versions as it gets hotter.
- Type system (typing): V8's internal bookkeeping about what kind of value a variable can hold, used to skip checks.
- V8: the JavaScript engine used by Chrome.
- V8 sandbox: a containment layer that tries to stop a V8 bug from turning into full control of the browser process.
- Warm up: run a function enough times that the engine decides it is hot and optimises it.