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

Insufficient validation of untrusted input in WebML (CVE-2026-5915)

A heap buffer overflow exists in TFLite's memory arena handling when WebNN processes a conv2d operation with very large padding values. An attacker could trigger an out-of-bounds write through a null or invalid pointer when the underlying memory allocation fails.

[email protected] Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 19 days

VULNERABILITY DETAILS A heap buffer overflow exists in TFLite's SimpleMemoryArena due to unhandled memory allocation failure. When WebNN processes a conv2d operation with large padding values, the resulting padded tensor dimensions cause XNNPACK to request a very large memory arena resize. The AlignedRealloc call fails and returns a null pointer, but ResizableAlignedBuffer::Resize does not check for this failure — it overwrites the buffer pointer with null, sets data_size_ to the requested (large) size, and reports success. Subsequently, SimpleMemoryArena::Commit marks the arena as committed despite having no backing memory, and XNNPACK proceeds to compute pad offsets and write fill data through the null/invalid pointer, causing an out-of-bounds write.

Triggering conv2d parameters:

  • Input shape: [5354, 5, 1, 33] (NHWC layout)
  • Filter shape: [1, 6, 1, 33] (OHWI layout)
  • Bias shape: [1]
  • Padding: [beginningHeight=0, endingHeight=32767, beginningWidth=32766, endingWidth=5]
  • Dilations: [4963, 1]
  • Strides: [5390, 21245]
  • Groups: 1
  • Data type: float32

The large padding values (32767, 32766) combined with the input dimensions produce a padded intermediate tensor with dimensions large enough that the total byte size exceeds addressable memory. When TFLite's arena attempts to allocate this, AlignedRealloc fails but the failure is silently ignored.

VERSION Chrome Version: asan build of content_shell at commit f8ac9f305a5e120b7c9e511a113e0c56a27290e1 Operating System: Windows, Linux, Mac where WebNN TFLite backend is used

REPRODUCTION CASE On Windows

set ASAN_OPTIONS=allocator_may_return_null=1
out\asan\content_shell.exe --no-sandbox --enable-features=WebMachineLearningNeuralNetwork --disable-features=WebNNOnnxRuntime,WebNNDirectML --enable-logging=stderr poc.html

CREDIT INFORMATION @[email protected] found this issue and created the reproducer and fix proposal.

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

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

How it worked

Root cause

Likely the resize routine does not check whether the reallocation returned null, so it stores the null pointer, records the large size and reports success, letting later writes go through an invalid pointer.

Impact

An out-of-bounds write could occur on Windows, Linux and Mac wherever the WebNN TFLite backend is used, though the report does not demonstrate code execution.

What the attacker needed

Browser with WebNN TFLite backend; victim loads a crafted page

The fix

The resize routine should check for a failed allocation and propagate the error instead of reporting success.

How it was found

  1. Enable the WebNN feature and disable the alternative backends when launching the browser.
  2. Load the proof-of-concept page that runs a conv2d operation with the oversized padding values.
  3. The padded tensor size exceeds addressable memory, the allocation fails, and the write proceeds through the invalid pointer.

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

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

A program asked the operating system for a very large block of memory, and the request failed. Instead of noticing the failure, the code carried on as if the memory existed and wrote data into a pointer that was empty, which corrupts memory. A web page using a machine-learning feature could trigger this.

What is Memory corruption?

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

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