Skip to content
Cache bugs Advisory Advanced CVE-2026-79070

Incorrect reference resolution in Cache (CVE-2026-79070)

A hash collision in the experimental SQL disk cache backend lets a doom operation for one key remove a different cached entry from the in-memory index without removing it from the database. An attacker could force cache misses across Network Isolation Key boundaries, potentially enabling cross-site tracking side channels.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: An issue in the experimental SQL disk cache backend can cause the in-memory index to permanently desynchronize from the SQLite database. This occurs when dooming an inactive cache entry that shares a 32-bit hash collision with another cached entry. The desynchronization leads to forced cache misses across Network Isolation Key (NIK) boundaries, potentially enabling cross-site tracking side channels.

Affected files:

  • net/disk_cache/sql/sql_persistent_store_backend_shard.cc
  • net/disk_cache/sql/sql_backend_impl.cc
  • net/disk_cache/sql/sql_persistent_store_backend.cc

Estimated timestamp from git blame: 2025-11-26

Description

A potential logic vulnerability exists in Chromium's experimental SQL disk cache backend (gated under net::features::kDiskCacheBackendExperiment) that can cause the in-memory index (index_) to permanently desynchronize from the underlying SQLite database.

This desynchronization occurs when a doom operation is initiated for an entry K1 that is not currently in the cache, but whose 32-bit PersistentHash collides with a currently cached entry K2 (such that K1.hash() == K2.hash()).

Step-by-Step Code Flow Analysis

  1. Fast-path Hash Lookup: When a doom operation for cache key K1 is initiated, SqlBackendImpl::HandleDoomEntryOperation searches the in-memory index for a matching resource ID using only the 32-bit hash key K1.hash():

    C++
    // net/disk_cache/sql/sql_backend_impl.cc
    if (auto res_id = store_->TryGetSingleResIdFromInMemoryIndex(key.hash())) {
      store_->DoomEntry(key, *res_id, /*accept_index_mismatch=*/false, std::move(store_callback));
      return;
    }
    

    Because K2 is the unique occupant of the hash bucket in the in-memory index, TryGetSingleResIdFromInMemoryIndex(K1.hash()) returns K2's res_id (e.g., R2). The fast-path logic assumes that this res_id corresponds to K1 and invokes store_->DoomEntry(K1, R2, ...). [net/disk_cache/sql/sql_backend_impl.cc, line 735]

  2. Synchronous Index Removal: In SqlPersistentStore::BackendShard::DoomEntry, the shard synchronously removes (K1.hash(), R2) from the index before writing to the database:

    C++
    // net/disk_cache/sql/sql_persistent_store_backend_shard.cc
    if (index_->Remove(key.hash(), res_id)) {
      need_recovery_on_failure = true;
    }
    

    Since K1.hash() == K2.hash(), index_->Remove successfully finds and deletes K2's entry from the index. [net/disk_cache/sql/sql_persistent_store_backend_shard.cc, line 106]

  3. Database Execution & Rollback Failure: The background database thread executes UPDATE resources SET doomed=1 WHERE res_id=? AND cache_key=? AND doomed=0 with res_id = R2 and cache_key = K1. [net/disk_cache/sql/sql_persistent_store_queries.h, line 125]

    Since the database row for R2 has cache_key = K2, the query matches 0 rows and returns Error::kNotFound. [net/disk_cache/sql/sql_persistent_store_backend.cc, line 797]

    Back on the main thread, the callback processes the result. However, the rollback logic explicitly excludes Error::kNotFound from index recovery:

    C++
    // net/disk_cache/sql/sql_persistent_store_backend_shard.cc
    if (need_recovery_on_failure && result.result != Error::kOk &&
        result.result != Error::kNotFound &&
        weak_ptr->index_.has_value()) {
      weak_ptr->index_->Insert(hash, res_id);
    }
    

    As a result, K2's res_id is permanently removed from the in-memory index while remaining live (doomed=0) in the database.

Potential Exploitation and Impact

These are potential/suggested steps derived from static analysis of the codebase, as our tooling agent does not have the ability to run code:

  1. Forced Cache Miss / Partitioning Bypass: An attacker on attacker.com brute-forces a cache key K1 that collides with a victim's cached resource K2 under a different Network Isolation Key (NIK) partition.
  2. The attacker triggers a cache doom (e.g., via a POST request to K1).
  3. This removes K2's key from the index. Subsequent fetch attempts for K2 check the index, return kHashNotFound, and result in a forced cache miss, bypassing NIK privacy boundaries to leak caching state or evict cross-site resources.
  4. Database Pollution: Subsequent creations of K2 set run_existance_check = false and insert duplicate rows into the database without checking, leaving old rows orphaned and leading to unbounded SQLite table growth.

Suggested Fix

To remediate this issue, apply one of the following approaches:

  1. Verify the cache_key matches the in-memory index entries (or avoid the fast-path when a hash collision is possible) before performing index_->Remove.
  2. Re-insert the entry into the index in the recovery path when Error::kNotFound is returned, provided recovery is active.

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


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

The fast-path doom lookup uses only the 32-bit hash to find a resource ID and then removes that ID from the index without verifying the full cache key matches, and the rollback path skips re-insertion when the database returns kNotFound.

Impact

An attacker could force cache misses across Network Isolation Key boundaries, potentially leaking caching state or evicting cross-site resources, and could cause duplicate database rows and unbounded SQLite table growth; the text notes these are potential steps from static analysis and the tooling could not run code.

What the attacker needed

Experimental SQL disk cache backend enabled; attacker can send requests to the cache; attacker can brute-force a 32-bit hash collision

The fix

The issue should be fixed by verifying the cache key matches the in-memory index entry (or avoiding the fast-path when a hash collision is possible) before removing it, and by re-inserting the entry in the recovery path when kNotFound is returned.

How it was found

  1. An attacker brute-forces a cache key that collides with a victim's cached resource under a different Network Isolation Key partition.
  2. The attacker triggers a cache doom for that key, for example via a POST request.
  3. The doom removes the victim's key from the in-memory index while the database row remains live.
  4. Subsequent fetches for the victim's resource check the index, return kHashNotFound, and result in a forced cache miss.

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 cache stores copies of web resources so they load faster. This cache uses a short numeric fingerprint (a hash) to find entries, and two different keys can share the same fingerprint. If an attacker crafts a key with the same fingerprint as a victim's cached resource, deleting the attacker's key can accidentally remove the victim's entry from the cache's lookup table while the database still thinks it exists, so later requests miss the cache.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.