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

Heap buffer overflow in WebML (CVE-2026-3913)

A heap buffer overflow occurs in XNNPACK's fully-connected operator when the input tensor has zero dimensions, due to an unsigned integer underflow. An attacker can trigger this via a malicious website using WebNN, leading to a GPU process crash and potentially controlled heap corruption for code execution.

Tobias Wienand Follow

Originally disclosed on Chrome VRP

Bounty$33,000 Critical View original
  • Fix shipped in 29 days

Report description

Heap Buffer Overflow in TFLite + XNNPack via WebNN


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/+/main:third_party/xnnpack/src/src/subgraph/fully-connected.c


The problem

Please describe the technical details of the vulnerability

Building Chromium with ASAN

Environment

Ubuntu + AMD processor (for completeness, shouldn't matter)

Base Chromium revision

a0062e558d37e03d9129522e5a3c6c29946d8195 (2026-02-10)

GN args

is_asan = true
is_debug = false
symbol_level = 1

Build

cd chromium/src
gn gen out/asan_shell
autoninja -C out/asan_shell content_shell

Running the PoC

WebNN is behind a feature flag. The GPU process is a separate process, so its ASAN errors don't appear on the main process stderr. Setting ASAN_OPTIONS with log_path captures per-process ASAN output to disk.

ASAN_OPTIONS="log_path=/tmp/asan_log:detect_leaks=0" ./out/asan_shell/content_shell --enable-features=WebMachineLearningNeuralNetwork file:///path/to/poc.html

The GPU process crashes during graph compilation. ASAN output is at /tmp/asan_log.<gpu_pid>. The poc.html file is included in this report.

If the sandbox is unavailable (e.g., AppArmor restricts unprivileged user namespaces), add --no-sandbox. On a headless machine, prefix the command with xvfb-run -a to provide a virtual X display.

ASAN output

==321087==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x775ffc4c6540 at pc 0x5a4f845042c6 bp 0x754f909f9710 sp 0x754f909f9708
WRITE of size 8 at 0x775ffc4c6540 thread T71 (ThreadPoolForeg)
    #0 reshape_fully_connected_operator     third_party/xnnpack/src/src/subgraph/fully-connected.c:796:32
    #1 xnn_reshape_runtime                  third_party/xnnpack/src/src/runtime.c:921:30
    #2 SubgraphPrepare                      third_party/tflite/src/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc:1258:16
    #3 PrepareOpsStartingAt                 third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1540:44
    #4 PrepareOpsAndTensors                 third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1588:7
    #5 AllocateTensors                      third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1035:25
    #6 ComputeResources::Create             services/webnn/tflite/graph_impl_tflite.cc:221:34
    #7 CreateAndBuildOnBackgroundThread      services/webnn/tflite/graph_impl_tflite.cc:519:20

0x775ffc4c6540 is located 0 bytes after 4160-byte region [0x775ffc4c5500,0x775ffc4c6540)
allocated by thread T71 (ThreadPoolForeg) here:
    #0 malloc
    #1 xnn_allocate_zero_memory             third_party/xnnpack/src/src/xnnpack/allocator.h:37:7
    #2 create_runtime_impl                  third_party/xnnpack/src/src/runtime.c
    #3 SubgraphInit                         third_party/tflite/src/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc:1214:14

SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/xnnpack/src/src/subgraph/fully-connected.c:796:32 in reshape_fully_connected_operator

Root cause

The crash is in resize_fully_connected_output_tensor in fully-connected.c:

C
output->shape.num_dims = input->shape.num_dims;
output->shape.dim[output->shape.num_dims - 1] =           // (A) OOB
    filter->shape.dim[filter_output_channel_index];

for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) {
    output->shape.dim[cur_dim] = input->shape.dim[cur_dim]; // (B) OOB
}

When the FC input has num_dims == 0, the size_t expression (num_dims - 1) underflows to SIZE_MAX. At (A) this writes 8 bytes at dim[SIZE_MAX]. At (B) the loop iterates up to SIZE_MAX times, writing far past the heap allocation.

How num_dims becomes 0

Three mechanisms interact:

1. ELU emulation. When elu.alpha != 1.0, graph_builder_tflite.cc (SerializeElu) decomposes ELU into six elementary ops: max(0, x) + alpha * (exp(min(0, x)) - 1). The scalar constants 0 and 1 are serialized with empty dimensions (num_dims = 0).

2. Conv2d-to-FC conversion. XNNPACK's xnn_define_convolution_2d converts 1x1 convolutions (unit stride, no padding) into xnn_define_fully_connected at define time, before any optimization.

3. min/max-to-clamp conversion corrupts input selection. During xnn_subgraph_optimize, optimize_common_subgraphs_min_max_to_clamp converts the binary max(scalar_0, x) and min(scalar_0, x) nodes into unary clamp nodes. To do this, it must determine which input is the scalar argument and which is the pass-through tensor. The PoC's ELU input is a constant with shape [1,1,1,1] — all dimensions multiply to 1 and it has static allocation, so XNNPACK treats it as a scalar constant. The optimization selects the wrong input: it uses the zero scalar (num_dims = 0) as the clamp's pass-through input instead of the 4D ELU input.

Verified with instrumentation: after the first optimization iteration (2 changes), the clamp nodes have in=[v15] where v15 is the zero scalar with num_dims = 0. The second iteration's shape propagation then copies num_dims = 0 through the entire chain (clamp output, exp, sub, mul, add), and the fully-connected node receives input_ndims = 0.

Bisection

The vulnerability requires two components: (1) the ELU alpha decomposition in WebNN's TFLite backend, and (2) XNNPACK's min/max-to-clamp subgraph optimization. The bug became reachable when the second component was rolled into Chromium.

Introducing Chromium commit: 2f50380887f7952fe03b602fd14254596b273d0a ("Roll TFLite to Next Green Version", 2025-11-04), which rolled the XNNPACK submodule from 9ff05d7fc634 to b69a4cf83011.

Introducing XNNPACK commit: e9bc43cef4c8663d2831e5c99b6bf799f09168fa (2025-10-29): "Subgraph rewrites for Binary minimum, maximum, and Unary clamp nodes: Replace Binary minimum/maximum with a static scalar operand with a clamp node, Fuse clamp nodes up into clamping nodes, Remove no-op clamp nodes where possible."

Verified by building and testing the adjacent commits:

  • f31c6ffb1de2 (parent, XNNPACK 9ff05d7fc634): no crash
  • 2f50380887f79 (XNNPACK b69a4cf83011): heap-buffer-overflow in resize_fully_connected_output_tensor

Impact analysis

Affected platforms

Tested on Linux (x86_64) with the TFLite+XNNPACK backend. The bug is in platform-independent XNNPACK C code, so it should also affect Android (ARM64, x86/x64) and ChromeOS, which use the same TFLite+XNNPACK backend as their primary WebNN implementation.

Impact

  • Attack vector: Any website, no user interaction required beyond navigation. WebNN is behind a feature flag (WebMachineLearningNeuralNetwork), which is not yet enabled by default, but eligible for VRP according to the rules and it is also in origin trial since Jan 31: https://chromium-review.googlesource.com/c/chromium/src/+/7518276.
  • Process: GPU process. On Android, this is unsandboxed. Android is vulnerable because it also uses TFLite + XNNPack. This means this not just affects highly privileged processes, but also non-sandboxed processes!
  • Primitive: The loop at (B) writes dim[0] through dim[SIZE_MAX-1], starting within the allocation and quickly overflowing past the 4160-byte xnn_value array into heap metadata and adjacent objects. Without ASAN, the loop continues until it hits an unmapped page.
  • Consequence: GPU process crash (denial of service). Controlled heap corruption (see below) leading to potential code execution within the GPU process sandbox.

Controlled write primitive

The OOB write is not just an uncontrolled crash. The attacker controls both WHAT is written and WHERE the writes land in the heap. This was verified against a0062e558d37e (2026-02-10) with ASAN content_shell.

Memory layout

The XNNPACK runtime allocates all values in a single contiguous array:

C
runtime->values = xnn_allocate_zero_memory(
    sizeof(struct xnn_runtime_value) * subgraph->num_values);

Each xnn_runtime_value is 160 bytes (verified empirically with offsetof):

Offset  Field                   Size
------  -----                   ----
+0      void* data              8
+8      gemm_config             8
+16     fp32_data               8
+24     shape.num_dims          8       <-- statement (A) target
+32     shape.dim[0..5]         48      <-- statement (B) starts here
+80     size                    8
+88     quantization            48
+136    id                      4
+140    type                    4
+144    datatype                4
+148    allocation_type         4
+152    flags                   4
+156    first_consumer          4

Statement (A): controlled intra-object write

C
output->shape.num_dims = input->shape.num_dims;         // = 0
output->shape.dim[output->shape.num_dims - 1] =         // dim[SIZE_MAX]
    filter->shape.dim[filter_output_channel_index];

When num_dims == 0, dim[SIZE_MAX] computes address &dim[0] + (2^64 - 1) * 8. On 64-bit, this wraps to &dim[0] - 8 = &num_dims. Statement (A) writes filter_output_channels (an attacker-controlled JavaScript parameter: the first dimension of the conv2d filter shape) to output->shape.num_dims.

Verified empirically with three PoC variants and post-write readback:

?channels=2:

XNNDBG [A] about to write dim[SIZE_MAX]: value=0x2 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 2

?channels=65 (0x41):

XNNDBG [A] about to write dim[SIZE_MAX]: value=0x41 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 65

?channels=1337 (0x539):

XNNDBG [A] about to write dim[SIZE_MAX]: value=0x539 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 1337

The readback confirms dim[SIZE_MAX] wraps to &num_dims. The attacker fully controls the 8-byte value written. The wraparound address arithmetic was also verified with a standalone C program computing &dim[0] + SIZE_MAX == &num_dims on the actual struct definition.

Statement (B): sequential cross-object heap corruption

C
for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) {
    output->shape.dim[cur_dim] = input->shape.dim[cur_dim];
}

The loop iterates from dim[0] to dim[SIZE_MAX-1], writing sequentially past the dim array into the output value's remaining fields, then into adjacent xnn_runtime_value structs. ASAN catches the first write past the allocation boundary.

Annotated trace from ?channels=2 (26 values, FC output at index 25). Each dim[N] overwrites offset 32 + N*8 within the output struct (verified with offsetof):

dim[N]      value               overwrites (output struct)          reads from (input struct)
------      -----               --------------------------          -------------------------
dim[0..5]   0x0                 shape.dim[0..5] (+32..+72)          input shape dims (all 0)
dim[6]      0x4                 size (+80)                          input->size (4 = sizeof(float32))
dim[7..12]  0x0                 quantization (+88..+128)            input quantization (zeroed)
dim[13]     0x10000000e         id(+136)+type(+140)                 input id=14, type=1 (dense_tensor)
dim[14]     0x200000001         datatype(+144)+alloc_type(+148)     input float32(1), workspace(2)
dim[15]     0x600005200         flags(+152)+first_consumer(+156)    input flags=0x5200, consumer=6
dim[16]     <heap pointer>      FIRST WRITE PAST ALLOCATION -> ASAN

Cross-object corruption

Adding a sigmoid after the conv2d (?mode=crossobj) places values after the FC output in the array. The loop then writes over those adjacent structs. Trace from ?mode=crossobj&channels=1337 (28 values, FC output at index 26, sigmoid value at 27):

dim[N]      value               target: values[27] field at offset    source interpretation
------      -----               ------------------------------------  --------------------
dim[0..15]                      <FC output struct, same as above>
--- struct boundary: dim[16] = offset 160 = start of values[27] ---
dim[16]     0x6c9f55f8e010      values[27].data (+0)                  heap pointer
dim[17..18] 0x0                 values[27].gemm_config,fp32_data      NULL
dim[19..25] 0x0                 values[27].shape (num_dims + dims)    zero shape
dim[26]     0x4                 values[27].size (+80)                 4 bytes (float32)
dim[27..32] 0x0                 values[27].quantization (+88)         zeroed
dim[33]     0x100000010         values[27].id(+136)+type(+140)        id=16, type=1
dim[34]     0x100000001         values[27].datatype+alloc_type        float32(1), static(1)
dim[35]     0x3001              values[27].flags+first_consumer       EXTERNAL_INPUT|STATIC|IS_ZERO
dim[36]     0x0                 FIRST WRITE PAST ALLOCATION -> ASAN

The dim[33] value 0x100000010 reveals the source: the loop reads from input->shape.dim[33], which at offset 32+33*8=296 from the input struct (value 15) crosses into values[16]—the zero scalar constant from ELU decomposition (confirmed by its IS_ZERO flag in 0x3001 = SHAPE_IS_STATIC|IS_ZERO|bit0). The id=16 matches values[16].

The loop completely overwrites all fields of the adjacent value struct, including its data pointer, size, type, and flags. Without ASAN, the loop continues into subsequent structs and only stops when it hits an unmapped page.

Allocation size control

The attacker controls the total allocation size by varying the graph structure. More WebNN operations produce more XNNPACK values:

PoC variant num_values Allocation FC output index
?channels=2 26 4160 bytes 25
?channels=1337 26 4160 bytes 25
?channels=2&padding=10 66 10560 bytes 65
?mode=crossobj 28 4480 bytes 26

Summary

The primitive provides:

  1. Controlled value write (statement A): Attacker sets the conv2d output_channels parameter from JavaScript. This 8-byte value is written to a predictable struct field (num_dims) via unsigned integer underflow wrap-around.
  2. Sequential heap spray (statement B): The loop overwrites all fields of the output struct and all subsequent xnn_runtime_value structs. The values written are deterministic and come from the input value's struct fields (readable via the annotated trace).
  3. Layout control: The attacker controls the allocation size and the FC output's position by varying the graph structure.

The cause

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

147.0.7681.0 dev

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Memory Corruption (in a non-sandboxed process)

How would you like to be publicly acknowledged for your report?

Tobias Wienand

The original report as published on the Chromium issue tracker, by Tobias Wienand. 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. 14 min read.

Context

This report describes a heap buffer overflow in the WebNN implementation of Chromium, reached through the TFLite + XNNPACK backend. WebNN is the browser API that lets a web page describe neural network graphs (tensors, operators such as convolution, fully connected layers, activation functions) and have the browser execute them, typically on the GPU process. In Chromium the TFLite backend lowers the WebNN graph into TFLite, which in turn delegates supported operators to XNNPACK, a C library of optimised kernels.

The vulnerable code is in XNNPACK's subgraph handling, specifically the fully connected operator:

Text
https://source.chromium.org/chromium/chromium/src/+/main:third_party/xnnpack/src/src/subgraph/fully-connected.c

The report was filed under the Chrome Vulnerability Reward Program. The researcher is Tobias Wienand. The platform records the issue as a critical heap buffer overflow in WebML (the WebNN component), disclosed on 2026-03-10, with a bounty of 33,000 USD. The report itself does not state a CVSS score.

Setup

The researcher built Chromium from source with AddressSanitizer. The environment was Ubuntu on an AMD processor, which the report notes should not matter.

Base Chromium revision:

Text
[redacted] (2026-02-10)

GN arguments:

Text
is_asan = true
is_debug = false
symbol_level = 1

Build commands:

Bash
cd chromium/src
gn gen out/asan_shell
autoninja -C out/asan_shell content_shell

Two preconditions matter for reproducing the issue:

  1. WebNN is behind a feature flag. The flag used here is WebMachineLearningNeuralNetwork.
  2. The GPU process is a separate process, so its ASAN errors do not appear on the main process stderr. The researcher sets ASAN_OPTIONS with log_path so that each process writes its ASAN output to disk.

Finding it

The crash occurs during graph compilation in the GPU process, inside XNNPACK's fully connected reshape path, and the report states it is reachable from any website through WebNN. The report frames the bug as requiring two components working together:

  1. The ELU alpha decomposition in WebNN's TFLite backend.
  2. XNNPACK's min/max-to-clamp subgraph optimisation.

The bug became reachable when the second component was rolled into Chromium.

Exploitation

Step 1: run the proof of concept under ASAN

The PoC is an HTML file (included in the original report but not reproduced here) that builds a WebNN graph. It is loaded in content_shell with the WebNN feature flag enabled:

Bash
ASAN_OPTIONS="log_path=/tmp/asan_log:detect_leaks=0" ./out/asan_shell/content_shell --enable-features=WebMachineLearningNeuralNetwork file:///path/to/poc.html

The GPU process crashes during graph compilation. ASAN output is written to /tmp/asan_log.<gpu_pid>.

The report adds two practical notes for running the PoC:

  • If the sandbox is unavailable (for example, AppArmor restricts unprivileged user namespaces), add --no-sandbox.
  • On a headless machine, prefix the command with xvfb-run -a to provide a virtual X display.

Step 2: read the ASAN report

The crash output identifies a heap buffer overflow in reshape_fully_connected_operator:

Text
==321087==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x775ffc4c6540 at pc 0x5a4f845042c6 bp 0x754f909f9710 sp 0x754f909f9708
WRITE of size 8 at 0x775ffc4c6540 thread T71 (ThreadPoolForeg)
    #0 reshape_fully_connected_operator     third_party/xnnpack/src/src/subgraph/fully-connected.c:796:32
    #1 xnn_reshape_runtime                  third_party/xnnpack/src/src/runtime.c:921:30
    #2 SubgraphPrepare                      third_party/tflite/src/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc:1258:16
    #3 PrepareOpsStartingAt                 third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1540:44
    #4 PrepareOpsAndTensors                 third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1588:7
    #5 AllocateTensors                      third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1035:25
    #6 ComputeResources::Create             services/webnn/tflite/graph_impl_tflite.cc:221:34
    #7 CreateAndBuildOnBackgroundThread      services/webnn/tflite/graph_impl_tflite.cc:519:20

0x775ffc4c6540 is located 0 bytes after 4160-byte region [0x775ffc4c5500,0x775ffc4c6540)
allocated by thread T71 (ThreadPoolForeg) here:
    #0 malloc
    #1 xnn_allocate_zero_memory             third_party/xnnpack/src/src/xnnpack/allocator.h:37:7
    #2 create_runtime_impl                  third_party/xnnpack/src/src/runtime.c
    #3 SubgraphInit                         third_party/tflite/src/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc:1214:14

SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/xnnpack/src/src/subgraph/fully-connected.c:796:32 in reshape_fully_connected_operator

The stack shows the path from WebNN's TFLite graph creation (graph_impl_tflite.cc) through TFLite's AllocateTensors and the XNNPACK delegate into xnn_reshape_runtime, ending in the fully connected reshape. The write is 8 bytes, immediately after a 4160-byte allocation made by xnn_allocate_zero_memory in create_runtime_impl.

Step 3: identify the faulty code

The crash is in resize_fully_connected_output_tensor in fully-connected.c:

C
output->shape.num_dims = input->shape.num_dims;
output->shape.dim[output->shape.num_dims - 1] =           // (A) OOB
    filter->shape.dim[filter_output_channel_index];

for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) {
    output->shape.dim[cur_dim] = input->shape.dim[cur_dim]; // (B) OOB
}

When the fully connected input has num_dims == 0, the size_t expression (num_dims - 1) underflows to SIZE_MAX. At (A) this writes 8 bytes at dim[SIZE_MAX]. At (B) the loop iterates up to SIZE_MAX times, writing far past the heap allocation.

Step 4: understand how num_dims becomes 0

Three mechanisms interact.

1. ELU emulation. When elu.alpha != 1.0, graph_builder_tflite.cc (SerializeElu) decomposes ELU into six elementary ops: max(0, x) + alpha * (exp(min(0, x)) - 1). The scalar constants 0 and 1 are serialised with empty dimensions (num_dims = 0).

2. Conv2d-to-FC conversion. XNNPACK's xnn_define_convolution_2d converts 1x1 convolutions (unit stride, no padding) into xnn_define_fully_connected at define time, before any optimisation.

3. min/max-to-clamp conversion corrupts input selection. During xnn_subgraph_optimize, optimize_common_subgraphs_min_max_to_clamp converts the binary max(scalar_0, x) and min(scalar_0, x) nodes into unary clamp nodes. To do this it must determine which input is the scalar argument and which is the pass-through tensor. The PoC's ELU input is a constant with shape [1,1,1,1]: all dimensions multiply to 1 and it has static allocation, so XNNPACK treats it as a scalar constant. The optimisation selects the wrong input: it uses the zero scalar (num_dims = 0) as the clamp's pass-through input instead of the 4D ELU input.

The researcher verified this with instrumentation: after the first optimisation iteration (2 changes), the clamp nodes have in=[v15] where v15 is the zero scalar with num_dims = 0. The second iteration's shape propagation then copies num_dims = 0 through the entire chain (clamp output, exp, sub, mul, add), and the fully connected node receives input_ndims = 0.

Step 5: bisect to the introducing commits

The vulnerability requires both components: the ELU alpha decomposition in WebNN's TFLite backend, and XNNPACK's min/max-to-clamp subgraph optimisation.

Introducing Chromium commit:

Text
[redacted] ("Roll TFLite to Next Green Version", 2025-11-04)

This rolled the XNNPACK submodule from 9ff05d7fc634 to b69a4cf83011.

Introducing XNNPACK commit:

Text
[redacted] (2025-10-29): "Subgraph rewrites for Binary minimum, maximum, and Unary clamp nodes: Replace Binary minimum/maximum with a static scalar operand with a clamp node, Fuse clamp nodes up into clamping nodes, Remove no-op clamp nodes where possible."

The researcher verified this by building and testing the adjacent commits:

  • f31c6ffb1de2 (parent, XNNPACK 9ff05d7fc634): no crash.
  • 2f50380887f79 (XNNPACK b69a4cf83011): heap-buffer-overflow in resize_fully_connected_output_tensor.

Step 6: establish the controlled write primitive

The report stresses that the OOB write is not just an uncontrolled crash. The attacker controls both what is written and where the writes land in the heap. This was verified against a0062e558d37e (2026-02-10) with ASAN content_shell.

Memory layout

The XNNPACK runtime allocates all values in a single contiguous array:

C
runtime->values = xnn_allocate_zero_memory(
    sizeof(struct xnn_runtime_value) * subgraph->num_values);

Each xnn_runtime_value is 160 bytes (verified empirically with offsetof):

Text
Offset  Field                   Size
------  -----                   ----
+0      void* data              8
+8      gemm_config             8
+16     fp32_data               8
+24     shape.num_dims          8       <-- statement (A) target
+32     shape.dim[0..5]         48      <-- statement (B) starts here
+80     size                    8
+88     quantization            48
+136    id                      4
+140    type                    4
+144    datatype                4
+148    allocation_type         4
+152    flags                   4
+156    first_consumer          4

Statement (A): controlled intra-object write

C
output->shape.num_dims = input->shape.num_dims;         // = 0
output->shape.dim[output->shape.num_dims - 1] =         // dim[SIZE_MAX]
    filter->shape.dim[filter_output_channel_index];

When num_dims == 0, dim[SIZE_MAX] computes address &dim[0] + (2^64 - 1) * 8. On 64-bit, this wraps to &dim[0] - 8 = &num_dims. Statement (A) writes filter_output_channels (an attacker-controlled JavaScript parameter: the first dimension of the conv2d filter shape) to output->shape.num_dims.

The researcher verified this empirically with three PoC variants and post-write readback.

?channels=2:

Text
XNNDBG [A] about to write dim[SIZE_MAX]: value=0x2 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 2

?channels=65 (0x41):

Text
XNNDBG [A] about to write dim[SIZE_MAX]: value=0x41 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 65

?channels=1337 (0x539):

Text
XNNDBG [A] about to write dim[SIZE_MAX]: value=0x539 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 1337

The readback confirms dim[SIZE_MAX] wraps to &num_dims. The attacker fully controls the 8-byte value written. The wraparound address arithmetic was also verified with a standalone C program computing &dim[0] + SIZE_MAX == &num_dims on the actual struct definition.

Statement (B): sequential cross-object heap corruption

C
for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) {
    output->shape.dim[cur_dim] = input->shape.dim[cur_dim];
}

The loop iterates from dim[0] to dim[SIZE_MAX-1], writing sequentially past the dim array into the output value's remaining fields, then into adjacent xnn_runtime_value structs. ASAN catches the first write past the allocation boundary.

Annotated trace from ?channels=2 (26 values, FC output at index 25). Each dim[N] overwrites offset 32 + N*8 within the output struct (verified with offsetof):

Text
dim[N]      value               overwrites (output struct)          reads from (input struct)
------      -----               --------------------------          -------------------------
dim[0..5]   0x0                 shape.dim[0..5] (+32..+72)          input shape dims (all 0)
dim[6]      0x4                 size (+80)                          input->size (4 = sizeof(float32))
dim[7..12]  0x0                 quantization (+88..+128)            input quantization (zeroed)
dim[13]     0x10000000e         id(+136)+type(+140)                 input id=14, type=1 (dense_tensor)
dim[14]     0x200000001         datatype(+144)+alloc_type(+148)     input float32(1), workspace(2)
dim[15]     0x600005200         flags(+152)+first_consumer(+156)    input flags=0x5200, consumer=6
dim[16]     <heap pointer>      FIRST WRITE PAST ALLOCATION -> ASAN

Cross-object corruption

Adding a sigmoid after the conv2d (?mode=crossobj) places values after the FC output in the array. The loop then writes over those adjacent structs. Trace from ?mode=crossobj&channels=1337 (28 values, FC output at index 26, sigmoid value at 27):

Text
dim[N]      value               target: values[27] field at offset    source interpretation
------      -----               ------------------------------------  --------------------
dim[0..15]                      <FC output struct, same as above>
--- struct boundary: dim[16] = offset 160 = start of values[27] ---
dim[16]     0x6c9f55f8e010      values[27].data (+0)                  heap pointer
dim[17..18] 0x0                 values[27].gemm_config,fp32_data      NULL
dim[19..25] 0x0                 values[27].shape (num_dims + dims)    zero shape
dim[26]     0x4                 values[27].size (+80)                 4 bytes (float32)
dim[27..32] 0x0                 values[27].quantization (+88)         zeroed
dim[33]     0x100000010         values[27].id(+136)+type(+140)        id=16, type=1
dim[34]     0x100000001         values[27].datatype+alloc_type        float32(1), static(1)
dim[35]     0x3001              values[27].flags+first_consumer       EXTERNAL_INPUT|STATIC|IS_ZERO
dim[36]     0x0                 FIRST WRITE PAST ALLOCATION -> ASAN

The dim[33] value 0x100000010 reveals the source: the loop reads from input->shape.dim[33], which at offset 32+33*8=296 from the input struct (value 15) crosses into values[16], the zero scalar constant from ELU decomposition (confirmed by its IS_ZERO flag in 0x3001 = SHAPE_IS_STATIC|IS_ZERO|bit0). The id=16 matches values[16].

The loop completely overwrites all fields of the adjacent value struct, including its data pointer, size, type, and flags. Without ASAN, the loop continues into subsequent structs and only stops when it hits an unmapped page.

Allocation size control

The attacker controls the total allocation size by varying the graph structure. More WebNN operations produce more XNNPACK values:

Text
PoC variant           num_values | Allocation | FC output index
---------------------|------------|------------|----------------
?channels=2           | 26         | 4160 bytes | 25
?channels=1337        | 26         | 4160 bytes | 25
?channels=2&padding=10| 66         | 10560 bytes| 65
?mode=crossobj        | 28         | 4480 bytes | 26

Summary of the primitive

The primitive provides:

  1. Controlled value write (statement A): the attacker sets the conv2d output_channels parameter from JavaScript. This 8-byte value is written to a predictable struct field (num_dims) via unsigned integer underflow wrap-around.
  2. Sequential heap spray (statement B): the loop overwrites all fields of the output struct and all subsequent xnn_runtime_value structs. The values written are deterministic and come from the input value's struct fields (readable via the annotated trace).
  3. Layout control: the attacker controls the allocation size and the FC output's position by varying the graph structure.

Root cause

The mistake is in resize_fully_connected_output_tensor in fully-connected.c. The code assumes the fully connected input always has at least one dimension. It computes input->shape.num_dims - 1 in size_t arithmetic without checking for zero. When num_dims is 0, the subtraction underflows to SIZE_MAX, producing an out-of-bounds index at (A) and an effectively unbounded loop at (B).

The zero dimension is not supposed to reach the fully connected operator. It does so because of a chain of transformations:

  1. WebNN's TFLite backend decomposes ELU with alpha != 1.0 into elementary ops, introducing scalar constants with num_dims = 0.
  2. XNNPACK converts a 1x1 convolution into a fully connected operator at define time.
  3. The min/max-to-clamp optimisation in xnn_subgraph_optimize misidentifies which input of the binary min/max is the scalar and which is the pass-through tensor. Because the ELU input is a constant of shape [1,1,1,1] with static allocation, XNNPACK treats it as a scalar constant and selects the zero scalar (num_dims = 0) as the clamp's pass-through input.
  4. Shape propagation then carries num_dims = 0 through the chain (clamp output, exp, sub, mul, add) into the fully connected node.

The report does not discuss any existing defence that might have caught this before the crash. ASAN catches the first write past the allocation boundary, but in a non-ASAN build the loop continues until it hits an unmapped page. The report does not discuss any other check that might have stopped the zero dimension from propagating.

Impact

The report describes the following impact.

  • Attack vector: any website, with no user interaction beyond navigation. WebNN is behind the WebMachineLearningNeuralNetwork feature flag, which is not yet enabled by default, but the researcher notes it is eligible for the VRP according to the program rules and has been in origin trial since Jan 31 (the report links a Chromium review at https://chromium-review.googlesource.com/c/chromium/src/+/7518276).
  • Process: the GPU process. On Android, the report states this process is unsandboxed. Android is described as vulnerable because it also uses TFLite + XNNPACK. The report stresses that this affects not just highly privileged processes but also non-sandboxed processes.
  • Primitive: the loop at (B) writes dim[0] through dim[SIZE_MAX-1], starting within the allocation and quickly overflowing past the 4160-byte xnn_value array into heap metadata and adjacent objects. Without ASAN, the loop continues until it hits an unmapped page.
  • Consequence: GPU process crash (denial of service), and controlled heap corruption (as described above) leading to potential code execution within the GPU process sandbox.

Affected platforms: the researcher tested on Linux (x86_64) with the TFLite + XNNPACK backend. Because the bug is in platform-independent XNNPACK C code, the report states it should also affect Android (ARM64, x86/x64) and ChromeOS, which use the same TFLite + XNNPACK backend as their primary WebNN implementation.

The Chrome version reported is 147.0.7681.0 dev. The vulnerability type selected in the report is memory corruption in a non-sandboxed process, and the issue is related to a crash.

Fix

The original report does not describe a fix, a patch or a mitigation. It documents the vulnerable code, the introducing commits and the exploitation primitive. The report does not say what was changed after disclosure.

Variants to test

These are concrete directions suggested by the report's mechanisms, for testing similar targets. Each is a hypothesis to check, not a claim that the original report tested it.

  1. Other decompositions that introduce scalar constants. Look for WebNN operators that the TFLite backend lowers into elementary ops with scalar constants (the report names ELU with alpha != 1.0). A positive result is a graph where a scalar constant with num_dims = 0 reaches an operator that assumes at least one dimension.
  2. Other shape-changing optimisations. The report identifies optimize_common_subgraphs_min_max_to_clamp as the component that mis-selects the pass-through input. Test other subgraph rewrites that classify inputs as scalar versus tensor. A positive result is a rewrite that picks the wrong input and propagates a zero dimension downstream.
  3. Other operators with num_dims - 1 arithmetic. Search XNNPACK subgraph code for size_t subtractions on num_dims without a zero check. A positive result is an operator that can be reached with num_dims = 0 and writes out of bounds.
  4. Conv2d-to-FC conversion combined with constant inputs. The report notes that 1x1 convolutions are converted to fully connected at define time. Test graphs where the convolution input is a constant of shape [1,1,1,1] with static allocation. A positive result is the same misclassification of a scalar constant as the pass-through input.
  5. Graph structure to control allocation size and position. The report shows that adding operations changes num_values, the allocation size and the FC output index. Test whether a chosen graph layout places a target struct immediately after the FC output. A positive result is a trace where the loop overwrites a chosen adjacent struct's fields, including its data pointer.
  6. Platforms using the same backend. The report states Android and ChromeOS use the same TFLite + XNNPACK backend. Test the same PoC on those platforms, noting that on Android the GPU process is described as unsandboxed. A positive result is the same crash or corruption on those platforms.

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

What happened, in plain words

A security researcher found a serious bug in Google Chrome, the web browser. The bug lives in a part of Chrome that runs small artificial intelligence (AI) models inside a web page. A malicious website could use this bug to crash the browser, and the report describes controlled heap corruption leading to potential code execution within the GPU process sandbox. Google paid the researcher 33,000 US dollars for the report, and the issue was made public on 10 March 2026.

The platform that recorded the report lists it as a critical heap buffer overflow in WebML, which is the name of the WebNN component. The report itself does not give a CVSS score, so we do not quote one.

This article explains the report from scratch. It assumes you can use a browser and a computer, and nothing more. Every technical term is explained the first time it appears, and there is a glossary at the end.

The product and the feature

Chrome is a web browser. A browser's job is to take instructions from a website (HTML for structure, JavaScript for behaviour) and turn them into something you can see and interact with.

Modern browsers also expose extra abilities to websites through things called APIs. An API (Application Programming Interface) is a defined set of commands that one piece of software offers to another. Think of it as the menu and ordering counter at a restaurant: you do not walk into the kitchen, you pick from a list and the kitchen does the work. A website cannot touch your files or your hardware directly, but it can ask the browser, through an API, to do specific things on its behalf.

WebNN is one such API. The name stands for Web Neural Network. A neural network is a style of computer program, loosely inspired by the brain, that learns patterns from examples and is used for tasks such as recognising images or understanding speech. WebNN lets a web page describe a neural network as a graph: a list of mathematical operations (called operators) connected together, plus the data those operations work on (called tensors). The browser then runs that graph, in this case in the GPU process.

A tensor is just a block of numbers arranged in a grid. A single number is a tensor with zero dimensions. A list of numbers is a tensor with one dimension. A table is two dimensions, a cube of numbers is three, and so on. The number of dimensions is called num_dims in the code we will look at. This detail matters enormously later.

Chrome does not run the graph itself from scratch. It hands the work to two helper libraries:

  • TFLite (TensorFlow Lite) is a small, efficient engine for running neural networks on modest hardware, such as phones.
  • XNNPACK is a library of highly optimised low-level maths routines written in the C programming language. TFLite passes supported operations down to XNNPACK.

So the chain is: web page, then WebNN, then TFLite, then XNNPACK, then the actual maths. The bug is in XNNPACK.

The bug location

The report says the vulnerable code is in XNNPACK's handling of a subgraph, which is the internal representation of the network graph, and specifically in the fully connected operator. A fully connected layer is a standard neural network operation: it takes a list of input numbers and multiplies them by a table of weights to produce output numbers. The report gives this location:

Text
https://source.chromium.org/chromium/chromium/src/+/main:third_party/xnnpack/src/src/subgraph/fully-connected.c

This is a link into the Chromium source code browser. third_party/xnnpack means XNNPACK is a separate project stored inside the Chromium source tree. src/subgraph/fully-connected.c is the file that implements the fully connected operator. The report was filed under the Chrome Vulnerability Reward Program, the scheme through which Google pays people for reporting security bugs. The researcher is named as Tobias Wienand.

The problem: what kind of bug is this?

The report calls it a heap buffer overflow. To understand that, you need two ideas: memory and the heap.

A computer program keeps its working data in memory (RAM). Memory is divided into numbered slots, and each slot has an address, like house numbers on a street. A program asks the operating system for a block of memory, gets back the address of the first slot, and promises to stay inside that block.

The heap is the general-purpose pool of memory that a program uses for data whose size is only known while it is running. When a program needs a block, it calls a function such as malloc (memory allocate), which returns the address of a block of a requested size. When it is done, it calls free to give the block back.

A buffer is simply a block of memory used to hold a sequence of items, such as an array of numbers. A buffer overflow happens when a program writes past the end of its block. It is like renting a storage unit and stacking boxes past the back wall into the neighbouring unit. If the neighbour is another program's data, you have just corrupted it.

A heap buffer overflow is exactly that, on the heap. It is dangerous because the data next to your block often belongs to something important, and an attacker who can choose what gets written where can change the program's behaviour.

Building Chromium with ASAN

The researcher did not test the bug in the Chrome you download from Google. Instead, they built Chrome from its source code with a special tool called AddressSanitizer, abbreviated ASAN.

ASAN is a debugging tool that a programmer can switch on when compiling a program. It adds invisible checks around every memory access. If the program reads or writes outside a block it was given, ASAN stops it immediately and prints a detailed report saying exactly where and how. Without ASAN, such a write might silently corrupt data, or crash much later in a confusing place. ASAN turns a silent problem into a loud, precise one. It is a smoke detector for memory bugs.

Compiling means turning human-readable source code into a program the computer can run. Chrome is huge, so this takes a while and uses a build system called GN (which generates the build files) and Ninja (which runs the actual compilation).

The environment was Ubuntu (a popular version of the Linux operating system) on an AMD processor. The report notes this should not matter, meaning the bug is not specific to that hardware.

The base Chromium revision is the exact snapshot of the source code that was used:

Text
[redacted] (2026-02-10)

A revision (or commit) is a unique fingerprint for one saved state of a code project. The long string of letters and numbers is a hash, a kind of digital fingerprint. Anyone can use it to get exactly the same code. The date in brackets is when that snapshot was made.

The GN arguments are the settings passed to the build system:

Text
is_asan = true
is_debug = false
symbol_level = 1

Line by line:

  • is_asan = true switches AddressSanitizer on. This is the whole point: we want the memory checker active.
  • is_debug = false builds an optimised, release-style program rather than a slow debugging build. This makes the test closer to what real users run.
  • symbol_level = 1 keeps a moderate amount of debugging information in the binary, so that crash reports can name functions and files instead of showing bare addresses.

The build commands are:

Bash
cd chromium/src
gn gen out/asan_shell
autoninja -C out/asan_shell content_shell

Line by line:

  • cd chromium/src changes the current directory to the src folder inside the downloaded Chromium source tree. cd means change directory.
  • gn gen out/asan_shell asks GN to generate the build files for a build configuration called asan_shell, placing them in the out/asan_shell folder. The name is just a label chosen by the researcher.
  • autoninja -C out/asan_shell content_shell runs Ninja to compile a target called content_shell. -C tells Ninja which directory to work in. content_shell is a bare-bones browser used for testing: it has the rendering and networking engine but none of Chrome's normal user interface. It is much faster to build and easier to automate than full Chrome.

Running the proof of concept

A proof of concept (PoC) is a small, deliberately harmless demonstration that a bug is real. Here it is an HTML file that builds a WebNN graph designed to trigger the overflow. The report says the PoC HTML file is included in the original report, but it is not reproduced here.

Two practical points matter before running it:

  1. WebNN is behind a feature flag. A feature flag is an on/off switch inside the browser that controls whether an unfinished feature is available. The flag used here is WebMachineLearningNeuralNetwork. Without it, the web page cannot use WebNN at all.
  2. Chrome runs different parts of itself in separate processes. A process is an independent running program with its own memory. Chrome does this for safety: if one part crashes, the rest survives. The GPU process is a separate process and, in this case, runs the neural network. Because it is a separate process, its error messages do not appear in the terminal where you started the browser. The researcher therefore sets an environment variable, ASAN_OPTIONS, with a log_path, so that each process writes its ASAN output to its own file on disk.

The command is:

Bash
ASAN_OPTIONS="log_path=/tmp/asan_log:detect_leaks=0" ./out/asan_shell/content_shell --enable-features=WebMachineLearningNeuralNetwork file:///path/to/poc.html

Line by line:

  • ASAN_OPTIONS="..." sets configuration for AddressSanitizer for this command only. The value has two parts separated by a colon.
  • log_path=/tmp/asan_log tells ASAN to write its reports to files beginning with /tmp/asan_log instead of the terminal. Each process appends its own process number, so you get files such as /tmp/asan_log.<gpu_pid>.
  • detect_leaks=0 turns off leak detection. A memory leak is memory a program forgets to give back. Leak detection is unrelated to this bug and would only add noise, so it is disabled.
  • ./out/asan_shell/content_shell is the program to run: the test browser we just built.
  • --enable-features=WebMachineLearningNeuralNetwork switches the WebNN feature on for this run.
  • file:///path/to/poc.html tells the browser to open a local file instead of a website. file:// is the address scheme for files on your own disk.

The GPU process crashes during graph compilation. Compilation here means the step where the browser turns the web page's description of the network into a runnable plan. The ASAN output lands in /tmp/asan_log.<gpu_pid>, where <gpu_pid> is the process number of the GPU process.

The report adds two practical notes:

  • If the sandbox is unavailable, add --no-sandbox. A sandbox is a security cage around a process that limits what it can touch, so that a bug inside it cannot easily harm the rest of the system. On some Linux setups, a security module called AppArmor restricts a feature called unprivileged user namespaces, which the sandbox relies on. In that case the sandbox cannot start, and you must disable it to run the test.
  • On a headless machine, meaning a computer with no screen attached, prefix the command with xvfb-run -a. Xvfb is a virtual display: it pretends to be a screen so that programs expecting one can run.

Reading the ASAN report

The crash output is:

Text
==321087==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x775ffc4c6540 at pc 0x5a4f845042c6 bp 0x754f909f9710 sp 0x754f909f9708
WRITE of size 8 at 0x775ffc4c6540 thread T71 (ThreadPoolForeg)
    #0 reshape_fully_connected_operator     third_party/xnnpack/src/src/subgraph/fully-connected.c:796:32
    #1 xnn_reshape_runtime                  third_party/xnnpack/src/src/runtime.c:921:30
    #2 SubgraphPrepare                      third_party/tflite/src/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc:1258:16
    #3 PrepareOpsStartingAt                 third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1540:44
    #4 PrepareOpsAndTensors                 third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1588:7
    #5 AllocateTensors                      third_party/tflite/src/tensorflow/lite/core/subgraph.cc:1035:25
    #6 ComputeResources::Create             services/webnn/tflite/graph_impl_tflite.cc:221:34
    #7 CreateAndBuildOnBackgroundThread      services/webnn/tflite/graph_impl_tflite.cc:519:20

0x775ffc4c6540 is located 0 bytes after 4160-byte region [0x775ffc4c5500,0x775ffc4c6540)
allocated by thread T71 (ThreadPoolForeg) here:
    #0 malloc
    #1 xnn_allocate_zero_memory             third_party/xnnpack/src/src/xnnpack/allocator.h:37:7
    #2 create_runtime_impl                  third_party/xnnpack/src/src/runtime.c
    #3 SubgraphInit                         third_party/tflite/src/tensorflow/lite/delegates/xnnpack/xnnpack_delegate.cc:1214:14

SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/xnnpack/src/src/subgraph/fully-connected.c:796:32 in reshape_fully_connected_operator

Line by line, in plain words:

  • ==321087==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x775ffc4c6540 ... The process number is 321087. ASAN reports a heap buffer overflow at a specific memory address. The pc, bp and sp values are the program counter, base pointer and stack pointer: internal registers that record exactly where the processor was. They are useful to experts and can be ignored by beginners.
  • WRITE of size 8 at 0x775ffc4c6540 thread T71 (ThreadPoolForeg) The program tried to write 8 bytes (64 bits, the size of a pointer on a 64-bit machine) to that address. It happened on a background worker thread, a parallel line of execution inside the process. ThreadPoolForeg is a shortened thread name.
  • The numbered #0 to #7 lines are the stack trace: the chain of function calls that led to the crash, with the innermost call first. Reading from the bottom up tells the story. CreateAndBuildOnBackgroundThread and ComputeResources::Create are in WebNN's TFLite backend (graph_impl_tflite.cc). AllocateTensors, PrepareOpsAndTensors, PrepareOpsStartingAt and SubgraphPrepare are TFLite preparing the network for execution. xnn_reshape_runtime is XNNPACK working out the shapes of the data. reshape_fully_connected_operator is the fully connected operator doing that shape work, and that is where the bad write happens, at line 796 of fully-connected.c.
  • 0x775ffc4c6540 is located 0 bytes after 4160-byte region [0x775ffc4c5500,0x775ffc4c6540) The bad address is exactly at the end of a block of 4160 bytes. The square brackets show the block's start and end addresses. 0 bytes after means the write landed on the very first byte past the block: the classic off-by-one-style overflow.
  • allocated by thread T71 ... here: This second stack trace shows who created that block. It was malloc, called through xnn_allocate_zero_memory (which allocates memory and fills it with zeros), inside create_runtime_impl, during SubgraphInit. In other words, XNNPACK set up its internal data, and the overflow writes just past it.
  • SUMMARY: ... A one-line recap naming the bug type, the file, the line and the function.

Identifying the faulty code

The crash is in a function called resize_fully_connected_output_tensor in fully-connected.c:

C
output->shape.num_dims = input->shape.num_dims;
output->shape.dim[output->shape.num_dims - 1] =           // (A) OOB
    filter->shape.dim[filter_output_channel_index];

for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) {
    output->shape.dim[cur_dim] = input->shape.dim[cur_dim]; // (B) OOB
}

Before the line-by-line explanation, some C background. In C, -> means "the field of this structure". A structure (or struct) is a bundle of related values stored together, like a form with named fields. output and input are two such bundles, each describing a tensor: its shape and other properties. shape.num_dims is the number of dimensions, and shape.dim is an array holding the size of each dimension. size_t is an unsigned integer type used for sizes and counts: it cannot be negative, so subtracting below zero wraps around to a huge number instead of going negative. OOB is shorthand for out of bounds.

Line by line:

  • output->shape.num_dims = input->shape.num_dims; Copy the number of dimensions from the input tensor to the output tensor. If the input has zero dimensions, the output now claims zero dimensions too.
  • output->shape.dim[output->shape.num_dims - 1] = ... Set the last dimension of the output. The idea is that the last dimension of a fully connected layer's output is the number of output channels. But if num_dims is 0, then num_dims - 1 is computed in size_t arithmetic and wraps around to SIZE_MAX, the largest possible value. So this writes to dim[SIZE_MAX], which is far outside the array. The comment (A) OOB marks this.
  • filter->shape.dim[filter_output_channel_index] is the value being written: the number of output channels taken from the filter (the weights).
  • for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) { A loop that copies each input dimension into the output. The loop condition uses the same num_dims - 1. If num_dims is 0, the limit is again SIZE_MAX, so the loop runs essentially forever.
  • output->shape.dim[cur_dim] = input->shape.dim[cur_dim]; Each iteration copies one dimension. Because the loop runs far too long, it writes past the end of the output's array and keeps going. The comment (B) OOB marks this.

So the root mistake is simple to state: the code assumes the input always has at least one dimension, and never checks for zero. When zero arrives, the subtraction wraps around and the bounds checks that the programmer relied on silently disappear.

How num_dims becomes 0

Three separate mechanisms have to line up. Each one is harmless on its own.

1. ELU emulation. ELU is a mathematical function used in neural networks. It has a parameter called alpha. When elu.alpha != 1.0, the WebNN TFLite backend file graph_builder_tflite.cc, in a function called SerializeElu, does not have a single ready-made operation for it. Instead it breaks ELU into six simpler operations: max(0, x) + alpha * (exp(min(0, x)) - 1). The constants 0 and 1 in that formula are stored as tensors with no dimensions at all, so num_dims = 0. This is the source of the zero.

2. Conv2d-to-FC conversion. A convolution is a standard image-processing operation that slides a small filter over an image. A 1x1 convolution with unit stride and no padding is mathematically identical to a fully connected layer. XNNPACK knows this, and its xnn_define_convolution_2d function quietly rewrites such a convolution into xnn_define_fully_connected at the moment the graph is defined, before any optimisation runs. This is how the zero can end up feeding a fully connected layer.

3. min/max-to-clamp conversion corrupts input selection. During a step called xnn_subgraph_optimize, XNNPACK tries to simplify the graph. One simplification, optimize_common_subgraphs_min_max_to_clamp, turns a two-input max(scalar_0, x) or min(scalar_0, x) into a one-input clamp operation. A clamp keeps a value inside a range. To do this rewrite, the optimiser must decide which of the two inputs is the fixed scalar and which is the data passing through. The PoC's ELU input is a constant with shape [1,1,1,1]. All its dimensions multiply to 1, and it is stored statically, so XNNPACK treats it as a scalar constant. The optimiser then picks the wrong input: it uses the zero scalar (num_dims = 0) as the clamp's pass-through input instead of the 4D ELU input.

The researcher confirmed this with instrumentation, meaning extra debugging print statements added to the code. After the first optimisation pass (2 changes), the clamp nodes had in=[v15], where v15 is the zero scalar with num_dims = 0. On the second pass, shape propagation, the process of working out each tensor's shape from its inputs, copied num_dims = 0 through the whole chain: clamp output, exp, sub, mul, add. The fully connected node therefore received input_ndims = 0.

Bisection: finding when the bug appeared

Bisection is a debugging technique named after the mathematical method. You have a known-good version and a known-bad version. You test the version in the middle. If it is bad, the bug was introduced before that point; if good, after. Repeat, halving the range each time, and you quickly find the exact change that introduced the bug. It is like finding a broken light bulb in a long string by checking the middle bulb first.

The vulnerability needs both components: the ELU alpha decomposition in WebNN's TFLite backend, and XNNPACK's min/max-to-clamp optimisation. The bug became reachable when the second component was rolled into Chromium.

The introducing Chromium commit is:

Text
[redacted] ("Roll TFLite to Next Green Version", 2025-11-04)

A roll is the routine act of updating a bundled third-party library to a newer version. This commit updated the XNNPACK submodule from 9ff05d7fc634 to b69a4cf83011. A submodule is a separate code project stored inside another one at a fixed version.

The introducing XNNPACK commit is:

Text
[redacted] (2025-10-29): "Subgraph rewrites for Binary minimum, maximum, and Unary clamp nodes: Replace Binary minimum/maximum with a static scalar operand with a clamp node, Fuse clamp nodes up into clamping nodes, Remove no-op clamp nodes where possible."

The commit message describes exactly the optimisation that mis-selects the input: replacing binary min/max with a clamp, fusing clamps, and removing no-op clamps.

The researcher verified this by building and testing the adjacent commits, meaning the commit just before and the commit itself:

  • f31c6ffb1de2 (parent, XNNPACK 9ff05d7fc634): no crash.
  • 2f50380887f79 (XNNPACK b69a4cf83011): heap-buffer-overflow in resize_fully_connected_output_tensor.

parent means the commit immediately before the one in question. The result is clean: before the roll, no crash; after it, crash.

Establishing the controlled write primitive

The report stresses that this is not just an uncontrolled crash. A primitive in security means a basic capability an attacker has gained, which can then be combined with other tricks. Here the primitive is a controlled write: the attacker controls both what value is written and where in memory it lands. The researcher verified this against a0062e558d37e (2026-02-10) with ASAN content_shell.

Memory layout

XNNPACK stores all the values of a graph in one single contiguous array:

C
runtime->values = xnn_allocate_zero_memory(
    sizeof(struct xnn_runtime_value) * subgraph->num_values);

Line by line:

  • runtime->values = assign the result to the values field of the runtime structure.
  • xnn_allocate_zero_memory( call a helper that reserves memory and fills it with zeros.
  • sizeof(struct xnn_runtime_value) the size in bytes of one value structure.
  • * subgraph->num_values multiplied by the number of values in the graph.
  • ); close the call.

So the block is one array of num_values structures, each of the same size. Each xnn_runtime_value is 160 bytes, verified empirically with offsetof. offsetof is a C macro that reports the byte position of a field inside a structure. "Empirically" means measured by running code, not just read from a document.

The layout is:

Text
Offset  Field                   Size
------  -----                   ----
+0      void* data              8
+8      gemm_config             8
+16     fp32_data               8
+24     shape.num_dims          8       <-- statement (A) target
+32     shape.dim[0..5]         48      <-- statement (B) starts here
+80     size                    8
+88     quantization            48
+136    id                      4
+140    type                    4
+144    datatype                4
+148    allocation_type         4
+152    flags                   4
+156    first_consumer          4

Line by line:

  • Offset is the byte position from the start of the structure. Field is the name. Size is how many bytes it occupies.
  • +0 void* data 8 a pointer (an address) to the actual tensor data, 8 bytes on a 64-bit machine.
  • +8 gemm_config 8 and +16 fp32_data 8 two more pointers used by the maths routines.
  • +24 shape.num_dims 8 the number of dimensions. The report marks this as the target of statement (A).
  • +32 shape.dim[0..5] 48 six dimension slots of 8 bytes each, 48 bytes total. The report marks this as where statement (B) starts writing.
  • +80 size 8 the size of the data in bytes.
  • +88 quantization 48 information used when numbers are stored at reduced precision.
  • +136 id 4, +140 type 4, +144 datatype 4, +148 allocation_type 4, +152 flags 4, +156 first_consumer 4 small integer fields describing the value. The offsets add up to 160, the total size.

Statement (A): controlled intra-object write

C
output->shape.num_dims = input->shape.num_dims;         // = 0
output->shape.dim[output->shape.num_dims - 1] =         // dim[SIZE_MAX]
    filter->shape.dim[filter_output_channel_index];

Line by line:

  • output->shape.num_dims = input->shape.num_dims; copy the dimension count, which is 0.
  • output->shape.dim[output->shape.num_dims - 1] = index the dimension array with 0 - 1. In size_t arithmetic this is SIZE_MAX.
  • filter->shape.dim[filter_output_channel_index]; the value written is the number of output channels from the filter.

When num_dims == 0, the address dim[SIZE_MAX] is computed as &dim[0] + (2^64 - 1) * 8. On a 64-bit machine, arithmetic on addresses wraps around, so this equals &dim[0] - 8, which is exactly the address of num_dims (which sits 8 bytes before dim[0]). In other words, the out-of-bounds write lands back inside the same structure, on the num_dims field. This is why the report calls it an intra-object write: it stays within the same structure, but in the wrong field.

The value written is filter_output_channels, an attacker-controlled JavaScript parameter: the first dimension of the conv2d filter shape. So the attacker chooses the number.

The researcher verified this with three PoC variants and readback, meaning they printed the field after the write to see what it contained.

?channels=2:

Text
XNNDBG [A] about to write dim[SIZE_MAX]: value=0x2 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 2

?channels=65 (0x41):

Text
XNNDBG [A] about to write dim[SIZE_MAX]: value=0x41 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 65

?channels=1337 (0x539):

Text
XNNDBG [A] about to write dim[SIZE_MAX]: value=0x539 (filter_dim[0]) to output[25]
XNNDBG [A] before: output->shape.num_dims = 0
XNNDBG [A] after:  output->shape.num_dims = 1337

Line by line for each block:

  • ?channels=2 is a query string appended to the PoC's address. A query string is the part of a URL after a question mark, carrying parameters to the page. Here it tells the page to use 2 output channels.
  • XNNDBG [A] about to write ... a debug print from the researcher's instrumentation, announcing the write. 0x2 is hexadecimal for 2. output[25] means the output value is at index 25 in the values array.
  • before: output->shape.num_dims = 0 the field is 0 before the write.
  • after: output->shape.num_dims = 2 after the write, the field holds the attacker's number.

The same pattern repeats for 65 (hexadecimal 0x41) and 1337 (hexadecimal 0x539). The readback confirms that dim[SIZE_MAX] wraps around to &num_dims, and that the attacker fully controls the 8-byte value written. The wraparound arithmetic was also checked with a standalone C program computing &dim[0] + SIZE_MAX == &num_dims on the actual struct definition.

Statement (B): sequential cross-object heap corruption

C
for (size_t cur_dim = 0; cur_dim < input->shape.num_dims - 1; cur_dim++) {
    output->shape.dim[cur_dim] = input->shape.dim[cur_dim];
}

Line by line:

  • for (size_t cur_dim = 0; start a counter at 0.
  • cur_dim < input->shape.num_dims - 1; keep looping while the counter is less than num_dims - 1. With num_dims 0, this is SIZE_MAX, so the loop runs an enormous number of times.
  • cur_dim++) increment the counter by one each time.
  • output->shape.dim[cur_dim] = input->shape.dim[cur_dim]; copy one dimension per iteration.

The loop starts at dim[0] and writes sequentially past the dimension array, into the output value's remaining fields, then into the next xnn_runtime_value structures. ASAN catches the first write past the allocation boundary. Without ASAN, the loop would keep going until it hit a page of memory that is not mapped, meaning not assigned to the process, at which point the processor would fault and the process would die.

An annotated trace from ?channels=2 (26 values, FC output at index 25). Each dim[N] overwrites offset 32 + N*8 within the output struct, verified with offsetof:

Text
dim[N]      value               overwrites (output struct)          reads from (input struct)
------      -----               --------------------------          -------------------------
dim[0..5]   0x0                 shape.dim[0..5] (+32..+72)          input shape dims (all 0)
dim[6]      0x4                 size (+80)                          input->size (4 = sizeof(float32))
dim[7..12]  0x0                 quantization (+88..+128)            input quantization (zeroed)
dim[13]     0x10000000e         id(+136)+type(+140)                 input id=14, type=1 (dense_tensor)
dim[14]     0x200000001         datatype(+144)+alloc_type(+148)     input float32(1), workspace(2)
dim[15]     0x600005200         flags(+152)+first_consumer(+156)    input flags=0x5200, consumer=6
dim[16]     <heap pointer>      FIRST WRITE PAST ALLOCATION -> ASAN

Line by line:

  • dim[N] which iteration of the loop. value what is written. overwrites which field of the output structure is hit. reads from where the value came from in the input structure.
  • dim[0..5] 0x0 shape.dim[0..5] (+32..+72) input shape dims (all 0) the first six writes land in the output's own dimension array, copying zeros.
  • dim[6] 0x4 size (+80) input->size (4 = sizeof(float32)) the seventh write lands on the size field and writes 4, the size of a 32-bit floating point number.
  • dim[7..12] 0x0 quantization (+88..+128) input quantization (zeroed) the next six writes zero out the quantization area.
  • dim[13] 0x10000000e id(+136)+type(+140) input id=14, type=1 (dense_tensor) one 8-byte write covers two 4-byte fields at once: the id 14 and the type 1. A dense tensor is an ordinary tensor with no special structure.
  • dim[14] 0x200000001 datatype(+144)+alloc_type(+148) input float32(1), workspace(2) again two fields in one write: the data type is float32 and the allocation type is workspace.
  • dim[15] 0x600005200 flags(+152)+first_consumer(+156) input flags=0x5200, consumer=6 two more fields: flags and the first consumer.
  • dim[16] <heap pointer> FIRST WRITE PAST ALLOCATION -> ASAN the seventeenth write is the first one outside the output structure, and ASAN stops the program here.

Cross-object corruption

Adding a sigmoid after the conv2d (?mode=crossobj) places more values after the FC output in the array. A sigmoid is another common neural network function that squashes numbers into a range between 0 and 1. The loop then writes over those adjacent structures. Trace from ?mode=crossobj&channels=1337 (28 values, FC output at index 26, sigmoid value at 27):

Text
dim[N]      value               target: values[27] field at offset    source interpretation
------      -----               ------------------------------------  --------------------
dim[0..15]                      <FC output struct, same as above>
--- struct boundary: dim[16] = offset 160 = start of values[27] ---
dim[16]     0x6c9f55f8e010      values[27].data (+0)                  heap pointer
dim[17..18] 0x0                 values[27].gemm_config,fp32_data      NULL
dim[19..25] 0x0                 values[27].shape (num_dims + dims)    zero shape
dim[26]     0x4                 values[27].size (+80)                 4 bytes (float32)
dim[27..32] 0x0                 values[27].quantization (+88)         zeroed
dim[33]     0x100000010         values[27].id(+136)+type(+140)        id=16, type=1
dim[34]     0x100000001         values[27].datatype+alloc_type        float32(1), static(1)
dim[35]     0x3001              values[27].flags+first_consumer       EXTERNAL_INPUT|STATIC|IS_ZERO
dim[36]     0x0                 FIRST WRITE PAST ALLOCATION -> ASAN

Line by line:

  • dim[0..15] <FC output struct, same as above> the first sixteen writes behave exactly as in the previous trace, filling the FC output structure.
  • --- struct boundary: dim[16] = offset 160 = start of values[27] --- the output structure is 160 bytes, so the seventeenth write lands at the start of the next structure, values[27], the sigmoid.
  • dim[16] 0x6c9f55f8e010 values[27].data (+0) heap pointer the sigmoid's data pointer is overwritten with a heap address copied from the input.
  • dim[17..18] 0x0 values[27].gemm_config,fp32_data NULL two pointers are set to NULL, meaning zero, which points nowhere.
  • dim[19..25] 0x0 values[27].shape (num_dims + dims) zero shape the sigmoid's shape is zeroed out.
  • dim[26] 0x4 values[27].size (+80) 4 bytes (float32) its size is set to 4.
  • dim[27..32] 0x0 values[27].quantization (+88) zeroed its quantization area is zeroed.
  • dim[33] 0x100000010 values[27].id(+136)+type(+140) id=16, type=1 its id and type are overwritten.
  • dim[34] 0x100000001 values[27].datatype+alloc_type float32(1), static(1) its data type and allocation type are overwritten.
  • dim[35] 0x3001 values[27].flags+first_consumer EXTERNAL_INPUT|STATIC|IS_ZERO its flags are overwritten with a combination of named bits.
  • dim[36] 0x0 FIRST WRITE PAST ALLOCATION -> ASAN the next write is past the whole allocation, and ASAN stops the program.

The dim[33] value 0x100000010 reveals where the data came from. The loop reads from input->shape.dim[33], which at offset 32+33*8=296 from the input structure (value 15) crosses into values[16], the zero scalar constant from the ELU decomposition. This is confirmed by its IS_ZERO flag in 0x3001 = SHAPE_IS_STATIC|IS_ZERO|bit0. The id=16 matches values[16].

The loop completely overwrites all fields of the adjacent value structure, including its data pointer, size, type and flags. Without ASAN, the loop continues into subsequent structures and only stops when it hits an unmapped page.

Allocation size control

The attacker controls the total allocation size by varying the graph structure. More WebNN operations produce more XNNPACK values:

Text
PoC variant           num_values | Allocation | FC output index
---------------------|------------|------------|----------------
?channels=2           | 26         | 4160 bytes | 25
?channels=1337        | 26         | 4160 bytes | 25
?channels=2&padding=10| 66         | 10560 bytes| 65
?mode=crossobj        | 28         | 4480 bytes | 26

Line by line:

  • PoC variant which version of the test page was loaded, identified by its query string.
  • num_values how many value structures the graph has.
  • Allocation the total size of the single block, which is num_values times 160 bytes. For example, 26 times 160 is 4160, and 66 times 160 is 10560.
  • FC output index the position of the fully connected output in the array, which is where the overflow starts.

Summary of the primitive

The primitive provides three things:

  1. Controlled value write (statement A): the attacker sets the conv2d output_channels parameter from JavaScript. This 8-byte value is written to a predictable struct field (num_dims) through unsigned integer underflow wrap-around.
  2. Sequential heap spray (statement B): the loop overwrites all fields of the output struct and all subsequent xnn_runtime_value structs. The values written are deterministic, meaning predictable, and come from the input value's struct fields, which can be read from the annotated trace.
  3. Layout control: the attacker controls the allocation size and the FC output's position by varying the graph structure.

Root cause

The mistake is in resize_fully_connected_output_tensor in fully-connected.c. The code assumes the fully connected input always has at least one dimension. It computes input->shape.num_dims - 1 in size_t arithmetic without checking for zero. When num_dims is 0, the subtraction underflows to SIZE_MAX, producing an out-of-bounds index at (A) and an effectively unbounded loop at (B).

The zero dimension is not supposed to reach the fully connected operator. It does so because of a chain of transformations:

  1. WebNN's TFLite backend decomposes ELU with alpha != 1.0 into elementary ops, introducing scalar constants with num_dims = 0.
  2. XNNPACK converts a 1x1 convolution into a fully connected operator at define time.
  3. The min/max-to-clamp optimisation in xnn_subgraph_optimize misidentifies which input of the binary min/max is the scalar and which is the pass-through tensor. Because the ELU input is a constant of shape [1,1,1,1] with static allocation, XNNPACK treats it as a scalar constant and selects the zero scalar (num_dims = 0) as the clamp's pass-through input.
  4. Shape propagation then carries num_dims = 0 through the chain (clamp output, exp, sub, mul, add) into the fully connected node.

The report does not discuss any existing defence that might have caught this before the crash. ASAN catches the first write past the allocation boundary, but in a non-ASAN build the loop continues until it hits an unmapped page. The report does not discuss any other check that might have stopped the zero dimension from propagating.

Impact

The report describes the following impact.

  • Attack vector: any website, with no user interaction beyond navigation. In security, an attack vector is the route by which an attacker reaches the victim. Here it is simply visiting a page. WebNN is behind the WebMachineLearningNeuralNetwork feature flag, which is not yet enabled by default, but the researcher notes it is eligible for the VRP according to the program rules and has been in origin trial since Jan 31. An origin trial is a scheme that lets a limited set of real websites try an unfinished browser feature before it is switched on for everyone. The report links a Chromium review at https://chromium-review.googlesource.com/c/chromium/src/+/7518276.
  • Process: the GPU process. On Android, the report states this process is unsandboxed. Android is described as vulnerable because it also uses TFLite + XNNPACK. The report stresses that this affects not just highly privileged processes but also non-sandboxed processes. A privileged process is one with more access to the system than an ordinary program.
  • Primitive: the loop at (B) writes dim[0] through dim[SIZE_MAX-1], starting within the allocation and quickly overflowing past the 4160-byte xnn_value array into heap metadata and adjacent objects. Heap metadata is the bookkeeping data the memory allocator keeps next to each block, recording its size and status. Corrupting it can confuse the allocator itself. Without ASAN, the loop continues until it hits an unmapped page.
  • Consequence: GPU process crash, which is a denial of service (the browser stops working for the user), and controlled heap corruption as described above, leading to potential code execution within the GPU process sandbox. Code execution means the attacker's own instructions run on the machine.

Affected platforms: the researcher tested on Linux (x86_64) with the TFLite + XNNPACK backend. Because the bug is in platform-independent XNNPACK C code, the report states it should also affect Android (ARM64, x86/x64) and ChromeOS, which use the same TFLite + XNNPACK backend as their primary WebNN implementation. Platform-independent means the code does not depend on the particular processor or operating system.

The Chrome version reported is 147.0.7681.0 dev. The vulnerability type selected in the report is memory corruption in a non-sandboxed process, and the issue is related to a crash.

Fix

The original report does not describe a fix, a patch or a mitigation. It documents the vulnerable code, the introducing commits and the exploitation primitive. The report does not say what was changed after disclosure.

Variants to test

These are concrete directions suggested by the report's mechanisms, for testing similar targets. Each is a hypothesis to check, not a claim that the original report tested it. A hypothesis is an idea to be tested, not yet a proven fact.

  1. Other decompositions that introduce scalar constants. Look for WebNN operators that the TFLite backend lowers into elementary ops with scalar constants (the report names ELU with alpha != 1.0). A positive result is a graph where a scalar constant with num_dims = 0 reaches an operator that assumes at least one dimension.
  2. Other shape-changing optimisations. The report identifies optimize_common_subgraphs_min_max_to_clamp as the component that mis-selects the pass-through input. Test other subgraph rewrites that classify inputs as scalar versus tensor. A positive result is a rewrite that picks the wrong input and propagates a zero dimension downstream.
  3. Other operators with num_dims - 1 arithmetic. Search XNNPACK subgraph code for size_t subtractions on num_dims without a zero check. A positive result is an operator that can be reached with num_dims = 0 and writes out of bounds.
  4. Conv2d-to-FC conversion combined with constant inputs. The report notes that 1x1 convolutions are converted to fully connected at define time. Test graphs where the convolution input is a constant of shape [1,1,1,1] with static allocation. A positive result is the same misclassification of a scalar constant as the pass-through input.
  5. Graph structure to control allocation size and position. The report shows that adding operations changes num_values, the allocation size and the FC output index. Test whether a chosen graph layout places a target struct immediately after the FC output. A positive result is a trace where the loop overwrites a chosen adjacent struct's fields, including its data pointer.
  6. Platforms using the same backend. The report states Android and ChromeOS use the same TFLite + XNNPACK backend. Test the same PoC on those platforms, noting that on Android the GPU process is described as unsandboxed. A positive result is the same crash or corruption on those platforms.

Glossary

  • Address: the numbered location of a byte in computer memory.
  • AddressSanitizer (ASAN): a debugging tool that checks every memory access and reports out-of-bounds reads and writes immediately.
  • API (Application Programming Interface): a defined set of commands one piece of software offers to another.
  • Attack vector: the route an attacker uses to reach a victim.
  • Bisection: a debugging method that halves the range of candidate versions until the change that introduced a bug is found.
  • Buffer: a block of memory holding a sequence of items.
  • Buffer overflow: writing past the end of a buffer.
  • Clamp: an operation that keeps a value inside a fixed range.
  • Code execution: the ability for an attacker's own instructions to run on a machine.
  • Commit (revision): a saved state of a code project, identified by a unique hash.
  • Compilation: turning source code into a runnable program; also, in this report, turning a described network into a runnable plan.
  • Convolution: an operation that slides a small filter over data, common in image processing.
  • CVSS: a standard scoring system for the severity of a vulnerability. The report does not give a score.
  • Denial of service: making a service or program unavailable to its user, for example by crashing it.
  • Deterministic: predictable, producing the same result every time.
  • ELU: a mathematical function used in neural networks, with a parameter called alpha.
  • Feature flag: an on/off switch inside a program that controls whether an unfinished feature is available.
  • Fully connected layer: a neural network operation that multiplies input numbers by a table of weights.
  • GN: the build-file generator used by Chromium.
  • GPU process: the separate process in Chrome that talks to the graphics card and runs GPU work.
  • Graph: a network of connected operations and the data flowing between them.
  • Heap: the general-purpose pool of memory a program uses for data whose size is known only at run time.
  • Heap metadata: the allocator's bookkeeping data stored next to each memory block.
  • Headless machine: a computer with no screen attached.
  • Hypothesis: an idea to be tested, not yet proven.
  • Instrumentation: extra debugging code added to observe a program's behaviour.
  • Intra-object write: an out-of-bounds write that lands back inside the same structure, in a different field.
  • malloc: the C function that reserves a block of heap memory.
  • Memory leak: memory a program forgets to give back.
  • Neural network: a style of program that learns patterns from examples.
  • Ninja: the build tool that runs compilation, driven by files generated by GN.
  • num_dims: the number of dimensions of a tensor.
  • Offset: the byte position of a field from the start of a structure.
  • offsetof: a C macro that reports a field's byte offset inside a structure.
  • Operator: a single mathematical operation in a graph.
  • Origin trial: a scheme letting a limited set of real websites try an unfinished browser feature.
  • Out of bounds (OOB): outside the memory a program is allowed to use.
  • Parent commit: the commit immediately before a given commit.
  • Platform-independent: code that does not depend on a particular processor or operating system.
  • Pointer: a value that holds a memory address.
  • Primitive: a basic capability an attacker has gained, which can be combined with other tricks.
  • Privileged process: a process with more access to the system than an ordinary program.
  • Process: an independent running program with its own memory.
  • Proof of concept (PoC): a small demonstration that a bug is real.
  • Query string: the part of a URL after a question mark, carrying parameters to the page.
  • Roll: updating a bundled third-party library to a newer version.
  • Sandbox: a security cage around a process that limits what it can touch.
  • Shape propagation: working out each tensor's shape from its inputs.
  • Sigmoid: a neural network function that squashes numbers into a range between 0 and 1.
  • size_t: an unsigned integer type used for sizes and counts; subtracting below zero wraps around to a huge value.
  • Stack trace: the chain of function calls that led to a crash.
  • Struct (structure): a bundle of related values stored together under named fields.
  • Subgraph: the internal representation of a network graph.
  • Submodule: a separate code project stored inside another one at a fixed version.
  • Tensor: a block of numbers arranged in a grid, with a number of dimensions.
  • TFLite (TensorFlow Lite): a small engine for running neural networks on modest hardware.
  • Thread: a parallel line of execution inside a process.
  • Underflow: when an unsigned number is subtracted below zero and wraps around to a very large value.
  • WebML: the name the platform uses for the WebNN component.
  • WebNN (Web Neural Network): the browser API that lets a web page describe and run neural networks.
  • XNNPACK: a library of optimised low-level maths routines used by TFLite.
  • Xvfb: a virtual display that pretends to be a screen for programs that expect one.

More by Tobias Wienand

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.