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

Out of bounds read in CrashReporting (CVE-2026-85052)

An integer underflow in Crashpad's ScanStackForPointers allows a compromised sandboxed process to cause an out-of-bounds heap read in the privileged crashpad_handler. This can be used as a timing oracle to leak heap contents and bypass ASLR in the handler process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team.

Overview: An integer underflow vulnerability exists in Crashpad's ScanStackForPointers when calculating the offset between an attacker-supplied stack pointer and the resolved stack base address. By supplying a crafted ucontext_t and memory layout, a compromised sandboxed process can trick the privileged crashpad_handler into performing an out-of-bounds heap read. This can be leveraged as a timing oracle to leak heap contents and bypass ASLR in the handler process.

Affected files:

  • third_party/crashpad/crashpad/snapshot/sanitized/process_snapshot_sanitized.cc

Estimated timestamp from git blame: 2023-04-10

Root Cause

A potential integer underflow exists in third_party/crashpad/crashpad/snapshot/sanitized/process_snapshot_sanitized.cc within the ScanStackForPointers template function:

C++
template <typename Pointer>
bool ScanStackForPointers(void* data, size_t size) {
  size_t sp_offset;
  if (!AssignIfInRange(&sp_offset, stack_pointer_ - stack_->Address())) {
    return false;
  }
  const size_t aligned_sp_offset =
      (sp_offset + sizeof(Pointer) - 1) & ~(sizeof(Pointer) - 1);

  auto words = reinterpret_cast<Pointer*>(static_cast<char*>(data) +
                                          aligned_sp_offset);
  size_t word_count = (size - aligned_sp_offset) / sizeof(Pointer);
  for (size_t index = 0; index < word_count; ++index) {
    auto word = StripPACBits(words[index]);
    if (word >= low_ && word < high_) {
      return true;
    }
  }
  return false;
}

If a client provides a stack_pointer_ that is strictly less than stack_->Address(), the subtraction stack_pointer_ - stack_->Address() underflows. Since VMAddress is uint64_t and size_t is a 64-bit unsigned integer on 64-bit systems, the underflowed value remains perfectly within the range of size_t. Consequently, AssignIfInRange returns true, assigning a massive positive value (e.g., 0xFFFFFFFFFFFFE000) to sp_offset.

When aligned_sp_offset is added to data, standard 64-bit pointer arithmetic wraps around, causing the words pointer to point to memory before the heap-allocated data buffer. Simultaneously, size - aligned_sp_offset also underflows. Because of integer modular arithmetic, this calculates the exact number of words required to scan from the out-of-bounds pointer up to the end of the legitimate data buffer.

Potential Exploitation Steps

(Note: These are theoretical/suggested steps, as our AI tooling does not currently have the ability to run a live proof of concept.)

  1. Setup: An attacker gains arbitrary code execution in a sandboxed client process.
  2. Memory Grooming (Client): The attacker maps a valid stack region (e.g., at 0x40000000) and an unreadable guard page immediately below it (e.g., at 0x3FFFF000).
  3. Fake Module: The attacker creates a fake ELF module in their memory space by manipulating the dynamic linker's link_map. They use PT_LOAD segments to arbitrarily define the [low_, high_) bounds they wish to scan for in the handler's heap.
  4. Fake Context: The attacker constructs a fake ucontext_t struct, setting the stack pointer (rsp/sp) to 0x3FFFF000 (inside the guard page) and the instruction pointer to a value outside the fake module.
  5. Trigger: The attacker triggers a crash dump request via IPC to crashpad_handler, passing pointers to the fake ucontext_t and a SanitizationInformation struct pointing to their fake module.
  6. Handler Processing: crashpad_handler reads the attacker's context. When finding the stack mapping for 0x3FFFF000, ProcessReaderLinux detects the guard page and safely bumps stack_->Address() to the start of the valid mapping at 0x40000000.
  7. Underflow: In ScanStackForPointers, stack_pointer_ (0x3FFFF000) minus stack_->Address() (0x40000000) underflows to -0x1000 (represented as a huge unsigned integer).
  8. OOB Read: words points to data - 0x1000. The loop reads out-of-bounds heap memory before the allocated stack buffer.
  9. Timing Oracle: If a value in the OOB memory falls within the attacker's [low_, high_) range, the function returns true, leading to full, slow minidump generation (involving heavy I/O). If no match is found, sanitization fails and the handler exits almost instantly. The attacker observes this massive timing difference to perform a binary search and leak heap contents, bypassing ASLR for the privileged crashpad_handler process.

Suggested Fix

Add bounds checking before the pointer arithmetic in ScanStackForPointers:

C++
  if (stack_pointer_ < stack_->Address()) {
    return false;
  }
  size_t sp_offset;
  // ... existing AssignIfInRange check ...
  
  const size_t aligned_sp_offset =
      (sp_offset + sizeof(Pointer) - 1) & ~(sizeof(Pointer) - 1);
      
  if (aligned_sp_offset > size) {
    return false;
  }

This ensures that the stack pointer resides within the bounds of the resolved stack region, completely eliminating the underflow and subsequent OOB read.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. 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 an integer underflow when subtracting the stack base address from an attacker-controlled stack pointer, because the code does not check that the stack pointer is greater than or equal to the stack base before the subtraction.

Impact

A compromised sandboxed process could leak heap contents from the privileged crashpad_handler and bypass ASLR, though the report notes this is theoretical and no live proof of concept was run.

What the attacker needed

Attacker has code execution in a sandboxed process; ability to send crafted IPC to crashpad_handler

The fix

The code should be fixed by adding bounds checks to ensure the stack pointer is not below the stack base and that the aligned offset does not exceed the buffer size.

How it was found

  1. Attacker gains arbitrary code execution in a sandboxed client process.
  2. Attacker maps a valid stack region and an unreadable guard page immediately below it.
  3. Attacker creates a fake ELF module to define the memory range to scan.
  4. Attacker constructs a fake ucontext_t with the stack pointer inside the guard page.
  5. Attacker triggers a crash dump request to crashpad_handler with the fake context and module.
  6. crashpad_handler processes the request, causing an underflow and out-of-bounds read, which acts as a timing oracle.

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 sandboxed program (like a web browser tab) can send crash reports to a separate, more privileged helper program. This report shows that by sending a specially crafted crash report, the helper can be tricked into reading memory outside its intended buffer. The attacker can then measure how long the helper takes to respond to learn secret memory contents, which helps defeat a security feature called ASLR that randomises memory addresses.

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.