Out of bounds read in Blink (CVE-2026-4462)
A heap-buffer-overflow read occurs in Blink text shaping when a non-zero subrange containing a trailing unpaired lead surrogate is processed, because the code passes a wrong bound to a UTF-16 forward macro. An attacker could trigger a renderer process crash by opening a crafted HTML file.
- Fix shipped in 10 days
VULNERABILITY DETAILS
A heap-buffer-overflow read occurs in Blink text shaping when CaseMappingHarfBuzzBufferFiller::FillSlowCase() advances UTF-16 with a wrong bound argument.
In third_party/blink/renderer/platform/fonts/shaping/case_mapping_harfbuzz_buffer_filler.cc:80, the code calls:
U16_FWD_1(buffer.data(), new_char_index, num_characters);
inside a loop whose index is absolute (char_index starts at start_index, not 0).
When shaping a non-zero subrange (start_index > 0) that includes a trailing unpaired lead surrogate, U16_FWD_1 can read one UTF-16 code unit past the end of the backing buffer.
This vulnerability leads to limited OOB read adjacent to UTF-16 buffer end under attacker-influenced text/range shaping state.
VERSION
- Chrome Version:
Chromium 147.0.7725.0(asan-debug, dev) - Operating System:
Ubuntu 24.04.3 LTS (Noble Numbat), Linux kernel6.14.0-37-generic(x86_64)
REPRODUCTION CASE
Attached minimal single-file PoC:
crash_20260309_050715_agent21_min.html
Opening it in Chrome would lead to the crash.
FOR CRASHES, ADDITIONAL INFORMATION
- Type of crash: Renderer process crash (tab crash)
- Crash state: ASAN heap-buffer-overflow (READ of size 2)
- Top frame:
blink::CaseMappingHarfBuzzBufferFiller::FillSlowCase(...)third_party/blink/renderer/platform/fonts/shaping/case_mapping_harfbuzz_buffer_filler.cc:80:17
- Call path includes:
CaseMappingHarfBuzzBufferFiller::CaseMappingHarfBuzzBufferFiller(...)HarfBuzzShaper::ShapeSegment(...)
- Full symbolized ASAN trace attached:
agent21_min_run6.stderr.log
- Top frame:
CREDIT INFORMATION
- Reporter credit:
heapracer
Detailed root cause
Vulnerable location
third_party/blink/renderer/platform/fonts/shaping/case_mapping_harfbuzz_buffer_filler.cc:66-101- Faulting statement at
:80
Fault pattern
The loop is driven in absolute text coordinates:
for (unsigned char_index = start_index;
char_index < start_index + num_characters;) {
unsigned new_char_index = char_index;
U16_FWD_1(buffer.data(), new_char_index, num_characters);
...
}
U16_FWD_1 expects a length bound in the same coordinate space as the index. Here, new_char_index is absolute but the supplied bound is only num_characters (subrange length), not start_index + num_characters (subrange end in absolute coordinates).
With start_index > 0, this mismatch allows out-of-range access during surrogate-pair probing at range boundaries.
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
The loop uses an absolute character index but passes only the subrange length as the bound to U16_FWD_1, so the macro can read past the end of the buffer when start_index is greater than zero.
Impact
The vulnerability leads to a limited out-of-bounds read adjacent to the UTF-16 buffer end, causing a renderer process crash; the report does not claim any further impact.
What the attacker needed
Victim opens a crafted HTML file; Chrome version 147.0.7725.0 (asan-debug)
How it was found
- Open the provided HTML file in Chrome.
- The renderer process crashes with an ASAN heap-buffer-overflow read.
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 web browser displays text, it sometimes needs to process only part of a string. A small mistake in that processing can make the browser read one character beyond the end of the text buffer. This can crash the tab, but the report does not show any way to steal data or run code.
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.