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

Out of bounds read in Blink (CVE-2026-5913)

A heap out-of-bounds read occurs in EditContext::DeleteCurrentSelection when stale selection offsets are used after updateText() shortens the text buffer. An attacker can cause a renderer crash (tab DoS) by creating an EditContext with a range selection, shortening the text, and waiting for the user to press a delete key.

Vitaly Simonovich Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 43 days

Report description

Heap OOB read in EditContext::DeleteCurrentSelection via stale range selection offsets


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://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/core/editing/ime/edit_context.cc


The problem

Please describe the technical details of the vulnerability

EditContext::DeleteCurrentSelection() (edit_context.cc) uses unbounded OrderedSelectionStart()/End() offsets to construct StringView objects. When updateText() shortens the text buffer while the feature flag EditContextHandleTextOrSelectionUpdateDuringComposition is disabled (status: "test", off by default in production Chrome), selection offsets are not adjusted. This leaves stale offsets pointing past the end of the buffer.

The fix for crbug.com/454639396 (UseBoundedSelectionOffsetsInEditContextDeleteOperations) added BoundedSelectionStart()/End() calls, but only in the collapsed-selection branch (start == end). When a range selection is present (start != end), DeleteBackward(), DeleteForward(), DeleteWordBackward(), and DeleteWordForward() all fall through to DeleteCurrentSelection() with unbounded offsets.

In release Chrome, StringView(text_, 0, sel_start) reads past the heap buffer, and StringView(text_, sel_end) computes length via unsigned subtraction (text_.length() - sel_end), which underflows to ~4 billion. StringBuilder then attempts a ~4GB allocation, crashing the renderer (OOM). The SECURITY_DCHECK in StringView::Set() that would catch this is compiled to ((void)0) in release builds.

The OOB read size is controllable. A larger gap between selectionStart and text_.length() causes a proportionally larger overread before the crash.

Reproduction (regular Chrome 133+):

  1. Create an EditContext with text and a range selection (start != end)
  2. Call updateText() to replace the text with something shorter
  3. Selection offsets stay stale, now exceeding the buffer length
  4. Press Backspace, Delete, Ctrl+Backspace, or Ctrl+Delete
  5. Renderer crashes

See attached poc.html for interactive reproduction and poc_automated.html for content_shell --run-web-tests reproduction. ASAN crash trace attached.

Impact analysis

Any website can trigger a renderer crash (tab DoS) by creating an EditContext with a range selection, shortening the text via updateText(), and waiting for the user to press Backspace or Delete. The user does need to press a key, so this is not zero-click, but the key press is a normal editing action.

The attacker gains a reliable renderer process crash affecting the tab. The OOB read touches adjacent heap data (controllable size, up to thousands of bytes), but the data does not reach JavaScript because the unsigned underflow in the second StringView always causes an OOM before the result is assigned back to text_. So the practical impact is renderer DoS, not information disclosure.

All four delete key variants (Backspace, Delete, Ctrl+Backspace, Ctrl+Delete) are affected. Chrome 133+ is vulnerable since EditContext is enabled by default from that version.


The cause

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

145.0.7632.117 stable

Is the security issue related to a crash?

Yes, it is related to a crash.

Choose the type of vulnerability

Memory Corruption (in a sandboxed process)

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

Vitaly Simonovich

The original report as published on the Chromium issue tracker, by Vitaly Simonovich. 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 code fails to clamp selection offsets to the current text length after updateText() shortens the buffer, and the existing fix only covers collapsed selections, not range selections.

Impact

Any website can trigger a renderer crash (tab DoS) by creating an EditContext with a range selection, shortening the text via updateText(), and waiting for the user to press Backspace or Delete; the OOB read does not reach JavaScript because an unsigned underflow causes an OOM before data is returned.

What the attacker needed

Victim uses Chrome 133+; victim presses a delete key

The fix

The code should clamp selection offsets to the current text length in all delete operations, not just the collapsed-selection branch.

How it was found

  1. Create an EditContext with text and a range selection (start != end)
  2. Call updateText() to replace the text with something shorter
  3. Selection offsets stay stale, now exceeding the buffer length
  4. Press Backspace, Delete, Ctrl+Backspace, or Ctrl+Delete
  5. Renderer crashes

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 web page can set up a text editing area (EditContext) with a selection, then replace the text with a shorter version. The selection positions are not updated, so they point past the end of the new text. When the user presses Backspace or Delete, the browser tries to read memory outside the text buffer, which crashes the tab.

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 by Vitaly Simonovich

View all

2 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

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