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

Use after free in TextEncoding (CVE-2026-3921)

A WebIDL fast-path in Blink can hold a span over a TypedArray or ArrayBuffer backing store while later argument conversion runs attacker-controlled JavaScript. If that script detaches the buffer via transfer, native code keeps reading the now-invalid memory, causing a renderer crash.

Pranamya Keshkamat Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 22 days

Security Bug

Important: Please do not change the component of this bug manually.

Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md

Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs

Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp

NOTE: Security bugs are normally made public once a fix has been widely deployed.


VULNERABILITY DETAILS Blink's [PassAsSpan] WebIDL fast-path can capture an unowned base::span<const uint8_t> (pointer+length) over a TypedArray / ArrayBuffer backing store. Later argument conversions (e.g. dictionary member access) can execute attacker-controlled JavaScript (getters / proxies). Calling ArrayBuffer.prototype.transfer(0) in that re-entrancy window detaches the buffer and can invalidate / unmap the backing store while native code still consumes the previously captured span.

This is reachable from web content via TextDecoder.decode(input, options) when options.stream is a getter that calls ab.transfer(0).

VERSION Chrome Version: Chromium 146.0.7670.0 (ASan build) [dev] Operating System: Ubuntu 24.04.2 LTS Repro date: 2026-02-17 04:34:41 UTC

REPRODUCTION CASE Attached file: passasspan_textdecoder_uaf.html

Repro steps (headless, no GUI required):

  1. Save passasspan_textdecoder_uaf.html locally.

  2. Run an ASan Chromium/Chrome build (example path from this environment):

    Bash
    /home/ubuntu/chromium-asan/out/linux-release-1579808/chrome --headless=new --no-sandbox --remote-debugging-port=9222 about:blank
    
  3. In another shell, open the PoC in a new tab:

    Bash
    curl -X PUT "http://127.0.0.1:9222/json/new?file:///absolute/path/to/passasspan_textdecoder_uaf.html"
    
  4. Observe a renderer/tab crash and a SIGSEGV stack trace printed to stderr.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: renderer / tab crash (SIGSEGV) Crash State:

  • Signal: Received signal 11 SEGV_ACCERR ...

  • Symbolized top frames (from this environment):

    Text
    blink::TextCodecUtf8::Decode(...) at third_party/blink/renderer/platform/wtf/text/text_codec_utf8.cc:393
    blink::TextDecoder::Decode(...) at third_party/blink/renderer/modules/encoding/text_decoder.cc:120
    blink::TextDecoder::decode(...) at third_party/blink/renderer/modules/encoding/text_decoder.cc:93
    v8_text_decoder::DecodeOperationCallback(...) at gen/third_party/blink/renderer/bindings/modules/v8/v8_text_decoder.cc:219
    

Client ID (if relevant): N/A

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: Pranamya Keshkamat & Cantina.xyz

The original report as published on the Chromium issue tracker, by Pranamya Keshkamat & Cantina.xyz. 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 [PassAsSpan] fast-path captures a span over a buffer before all argument conversions finish, so re-entrant JavaScript can detach the buffer and leave the span dangling.

Impact

A web page could crash the renderer process; the report shows a crash rather than demonstrated code execution.

What the attacker needed

Victim opens a malicious web page; Chromium build with the affected code

How it was found

  1. Save the provided HTML proof-of-concept file locally.
  2. Start an ASan Chromium build in headless mode with remote debugging enabled.
  3. Open the proof-of-concept file in a new tab through the debugging endpoint.
  4. Observe the renderer crash and the SIGSEGV stack trace on stderr.

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.

When a browser passes data from a web page into its own code, it sometimes keeps a pointer to the page's memory instead of a safe copy. If the page can run its own code in the middle of that handover, it can free or move that memory, and the browser then reads memory that no longer belongs to it. Here that leads to a crash of the tab, which is a sign the memory safety is broken.

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.