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

Out of bounds write in Crashpad (CVE-2026-78952)

A Windows routine in Crashpad that reads another process's memory retried a partial read using the remaining bytes in the source page without limiting it to the caller's buffer size, so a short destination could be overflowed. A compromised renderer could manipulate a source page during a snapshot to trigger the oversized copy, overwriting a saved return address or a heap object and ultimately executing code in the unsandboxed Crashpad handler.

Brendan Dolan-Gavitt Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 13 days

VULNERABILITY DETAILS

On Windows, ProcessMemoryWin::ReadUpTo() handles ERROR_PARTIAL_COPY by retrying ReadProcessMemory() with the bytes remaining in the source page. It does not clamp that retry to the destination size:

C++
BOOL success = ReadProcessMemory(
    handle_, reinterpret_cast<void*>(address), buffer, size, &size_out);

if (GetLastError() == ERROR_PARTIAL_COPY) {
  size_t short_read =
      base::GetPageSize() - (address & (base::GetPageSize() - 1));
  success = ReadProcessMemory(handle_,
                              reinterpret_cast<void*>(address),
                              buffer,
                              short_read,
                              &size_out);
  if (success)
    return base::checked_cast<ssize_t>(size_out);
}

For example, a source at page offset 0x9d0 makes the retry size 0x630 even when the caller supplied a 16-byte destination.

One production callsite is ExceptionSnapshotWin::InitializeFromExceptionPointers(), which reads an EXCEPTION_POINTERS64 into a 16-byte stack object. The attached current-main reproducer uses a source at offset 0x900. The retry copies 0x700 bytes, overwrites the saved return address, and transfers control to the source's final qword, 0x0000000041414141.

The bug is also reachable at a heap destination. Our full-chain reproduction (reported separately) uses 48 renderer-controlled source pages to provide 48 retry opportunities in one request. A successful 0x168-byte retry into a 0xb8-byte allocation corrupts an adjacent SnapshotMinidumpMemoryWriter. That chain executes code in the unsandboxed Crashpad handler on signed Chrome Beta.

A compromised renderer can create the required transition. A thread created with NtCreateThreadEx(..., flags=0x42) remains runnable while Crashpad snapshots the renderer. The renderer controls the registered exception-data pointer and retains the event used to request a non-crash dump. Its live thread changes a source page between PAGE_NOACCESS and PAGE_READWRITE during the request, making the initial read fail and the oversized retry succeed.

Suggested fix:

C++
const size_t page_remainder =
    base::GetPageSize() - (address & (base::GetPageSize() - 1));
const size_t short_read = std::min(size, page_remainder);

ProcessMemory::Read() should also reject a ReadUpTo() result larger than the requested remaining size before advancing the destination pointer or subtracting the returned count.

It's not clear whether allowing renderer threads to remain alive during a crashpad snapshot is itself an invariant violation. If that is intended behavior then there are likely to be other crashpad sites that need to be audited for safety under concurrent modifications of renderer state. If that is not intended behavior then some way of reliably quiescing the renderer process or making a snapshot atomic is needed.

VERSION

Chrome Version:

  • 151.0.7922.72 Stable: natural Crashpad-handler /GS fast-fail
  • 152.0.7977.30 Beta: heap-callsite full-chain code execution
  • Chromium 153.0.7991.0 at revision 56e554842ef240aae8c44bd178f3ddce51bb7448: controlled saved-return overwrite

Source inspection confirmed the vulnerable implementation in Stable 151.0.7922.109, Beta 152.0.7977.30, and Chromium main revision dc5fc94bddd3b8a4c78b52a72be77f5bd6c3e727 on 2026-08-13.

Operating System: Windows 11 Enterprise Evaluation 10.0.26200 x64 and Windows Server 2022 build 20348 x64

REPRODUCTION CASE

From a clean Windows Chromium checkout:

BAT
git checkout 56e554842ef240aae8c44bd178f3ddce51bb7448
gclient sync --revision src@56e554842ef240aae8c44bd178f3ddce51bb7448 -D
git apply current-source-renderer-trigger.patch
mkdir out\crashpad_read_retry_poc

Create out\crashpad_read_retry_poc\args.gn:

GN
target_cpu = "x64"
is_debug = false
is_component_build = false
is_official_build = true
dcheck_always_on = false
symbol_level = 2
blink_symbol_level = 0
v8_symbol_level = 0
chrome_pgo_phase = 0
use_remoteexec = false
use_reclient = false
use_siso = false

Build and open the normal browser:

BAT
gn gen out\crashpad_read_retry_poc
autoninja -C out\crashpad_read_retry_poc chrome
out\crashpad_read_retry_poc\chrome.exe --user-data-dir=%TEMP%\crashpad-read-retry-poc --no-first-run --no-default-browser-check about:blank

Starting the renderer invokes the trigger. It uses a renderer-owned shadow loader page as an early snapshot cue, then keeps the controlled source page transitioning for the rest of the request. The primary Crashpad handler exits with an execute access violation at the controlled address:

Text
ExceptionCode: c0000005 (Access violation)
ExceptionAddress: 0000000041414141
Attempt to execute non-executable address 0000000041414141
rip=0000000041414141

current-main-controlled-return-crash.txt contains the postmortem debugger record. Report-0.utf8.txt is the natural failure record from signed Stable 151.0.7922.72; that build reports handler fast-fail 0xc0000409, subcode 2.

The full-chain reproduction uses the same ReadUpTo() defect at its heap callsite. Its preferred configuration completed 30 of 30 fresh-profile, ordinary-browser trials and launched cmd /k calc.exe as a child of the Crashpad handler.

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION

Type of crash: Crashpad handler process

Crash State:

  • Current Chromium: execute access violation at controlled RIP=0x41414141
  • Signed Stable: 0xc0000409, fast-fail subcode 0x2 (FAST_FAIL_STACK_COOKIE_CHECK_FAILURE)

Client ID (if relevant): N/A

CREDIT INFORMATION

Reporter credit: Brendan Dolan-Gavitt, XBOW

The original report as published on the Chromium issue tracker, by Brendan Dolan-Gavitt, XBOW. 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

The partial-read retry size is computed from the source page offset only and is never clamped to the caller's destination size, and the caller does not validate the returned count.

Impact

A compromised renderer could corrupt a stack or heap destination in the Crashpad handler and, in the full chain, execute code in the unsandboxed handler on signed Chrome Beta; on Stable the same defect produced only a handler fast-fail.

What the attacker needed

Compromised renderer; Windows target; renderer thread alive during snapshot; control of exception-data pointer

The fix

The retry size should be clamped to the smaller of the requested size and the page remainder, and the caller should reject any read result larger than the remaining requested size.

How it was found

  1. Build a Chromium checkout at the stated revision with the supplied patch and build arguments.
  2. Launch the built browser with a temporary profile on a blank page.
  3. Starting the renderer invokes the trigger, which keeps a controlled source page transitioning between inaccessible and writable during the snapshot request.
  4. The initial read fails and the oversized retry succeeds, overwriting the saved return address with a controlled value.
  5. The Crashpad handler crashes with an execute access violation at the controlled address.

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.

Crashpad is Chrome's crash-reporting helper, which runs outside the browser's security sandbox and reads memory from crashed or running processes. A function that copies data into a small buffer mistakenly copied a whole page's worth of leftover bytes, so data spilled past the end of the buffer. Because the helper has high privileges, an attacker who already controls a web page's process could use this spill to hijack the helper and run their own 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.

More by Brendan Dolan-Gavitt

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.