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

Integer overflow in Extensions API (CVE-2026-15108)

A 32-bit integer overflow in the FlatBuffers builder used for Declarative Net Request ruleset indexing can cause a pointer underflow during rule sorting, leading to an out-of-bounds heap read in the browser process. An attacker could potentially leak sensitive browser memory or crash the browser by installing a malicious extension with a very large ruleset.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 49 days

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A malicious extension can potentially trigger an out-of-bounds (OOB) heap read in the unsandboxed browser process during Declarative Net Request (DNR) ruleset indexing. This is caused by a 32-bit integer overflow in the FlatBuffers library when serializing large rulesets, which leads to pointer underflows during rule sorting. The issue is reachable because DNR ruleset parsing now occurs in-process following the migration to the Rust-backed JSON parser.

Affected files:

  • components/url_pattern_index/url_pattern_index.cc
  • third_party/flatbuffers/src/include/flatbuffers/vector_downward.h
  • third_party/flatbuffers/src/include/flatbuffers/flatbuffer_builder.h
  • extensions/browser/api/declarative_net_request/flat_ruleset_indexer.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential vulnerability in the Declarative Net Request (DNR) indexing logic allows a malicious extension to trigger an out-of-bounds (OOB) heap read in the browser process. The root cause is a 32-bit integer overflow in the flatbuffers::FlatBufferBuilder class (specifically within its backing store, vector_downward). When serialized data exceeds 4 GiB, internal size tracking wraps around, leading to pointer underflows and OOB memory access during the rule sorting phase of indexing.

Technical Details

FlatBufferBuilder 32-bit Overflow

The flatbuffers::vector_downward<uoffset_t> class (where uoffset_t is uint32_t) tracks the byte size of serialized data in a 32-bit field size_. While the write cursor cur_ is a 64-bit pointer, the size_ field is incremented using 32-bit arithmetic:

C++
// third_party/flatbuffers/src/include/flatbuffers/vector_downward.h:155
inline uint8_t* make_space(size_t len) {
  if (len) {
    ensure_space(len);
    cur_  -= len;                                 // 64-bit pointer decrement
    size_ += static_cast<SizeT>(len);             // 32-bit size increment (wraps at 4 GiB)
  }
  return cur_;
}

In release builds, the FLATBUFFERS_ASSERT checks are disabled. If an extension provides a ruleset that serializes to more than 4 GiB, size_ wraps around.

Browser Process Pointer Underflow

Following the transition to the Rust-backed base::JSONReader, JSON parsing of DNR rulesets during extension installation occurs in-process within the browser process (orchestrated by SandboxedUnpacker and InstallIndexHelper). This removes Mojo IPC message size limits that previously acted as a safeguard.

Once rules are indexed, UrlPatternIndexBuilder::Finish() attempts to sort the rules by priority. It resolves rule offsets to pointers using flatbuffers::GetTemporaryPointer:

C++
// third_party/flatbuffers/src/include/flatbuffers/flatbuffer_builder.h:1510
template <typename T>
const T* GetTemporaryPointer(const FlatBufferBuilder& fbb, Offset<T> offset) {
  return reinterpret_cast<const T*>(fbb.GetCurrentBufferPointer() + fbb.GetSize() - offset.o);
}

If fbb.GetSize() has wrapped (e.g., to 100 MB) but the offset.o for a rule was generated before the wrap (e.g., at 3.5 GB), the calculation fbb.GetSize() - offset.o results in a large negative value. When added to GetCurrentBufferPointer(), this causes a pointer underflow, resulting in an address billions of bytes before the valid heap buffer. Dereferencing this pointer during sorting leads to an OOB heap read.

Potential Attack Sequence (Theoretical)

  1. An attacker develops an extension with the declarativeNetRequest permission.
  2. The extension includes a static ruleset JSON file containing approximately 330,000 rules (the current maximum limit) with exceptionally large urlFilter and domain strings, designed to exceed 4 GiB when serialized.
  3. A user installs the extension on a 64-bit system with sufficient RAM (e.g., 32 GB).
  4. During installation, the browser process indexes the ruleset. The FlatBufferBuilder size overflows, and the subsequent sorting process triggers an OOB read, potentially leaking sensitive browser memory or causing a browser crash.

Suggested Fix

  1. Use flatbuffers::FlatBufferBuilder64 for DNR ruleset indexing to support offsets larger than 32 bits.
  2. Alternatively, implement explicit byte-size limits in FlatRulesetIndexer or RulesetSource to ensure the total serialized size cannot exceed a safe threshold (e.g., 2 GiB) before the overflow occurs.

Evaluated with Chrome root at commit: 29093e11cf509e3593f6229e4b1b075cca356049


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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 a 32-bit size field in FlatBuffers' vector_downward wraps when serialized data exceeds 4 GiB, and the wrapped size is later used to compute rule pointers, causing a pointer underflow.

Impact

The out-of-bounds read could potentially leak sensitive browser memory or cause a browser crash, though the report describes the attack sequence as theoretical.

What the attacker needed

Victim installs a malicious extension; extension has declarativeNetRequest permission; 64-bit system with sufficient RAM

The fix

The report suggests using FlatBufferBuilder64 for DNR ruleset indexing or enforcing an explicit byte-size limit before the overflow occurs; it does not state that a fix was applied.

How it was found

  1. Create an extension with the declarativeNetRequest permission.
  2. Include a static ruleset JSON file with about 330,000 rules and very large urlFilter and domain strings so serialization exceeds 4 GiB.
  3. Install the extension on a 64-bit system with enough RAM.
  4. During installation, the browser indexes the ruleset, the FlatBufferBuilder size overflows, and sorting triggers an out-of-bounds 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.

An extension can supply a huge list of filtering rules. When the browser tries to store this list, a counter that tracks its size overflows because it can only count up to about 4 gigabytes. Later, when the browser sorts the rules, it uses this broken size to calculate where each rule is in memory, which can point far outside the real data and read unrelated memory.

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.