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.ccnet/disk_cache/sql/sql_backend_impl.ccnet/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
-
Fast-path Hash Lookup: When a doom operation for cache key
K1is initiated,SqlBackendImpl::HandleDoomEntryOperationsearches the in-memory index for a matching resource ID using only the 32-bit hash keyK1.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
K2is the unique occupant of the hash bucket in the in-memory index,TryGetSingleResIdFromInMemoryIndex(K1.hash())returnsK2'sres_id(e.g.,R2). The fast-path logic assumes that thisres_idcorresponds toK1and invokesstore_->DoomEntry(K1, R2, ...). [net/disk_cache/sql/sql_backend_impl.cc, line 735] -
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_->Removesuccessfully finds and deletesK2's entry from the index. [net/disk_cache/sql/sql_persistent_store_backend_shard.cc, line 106] -
Database Execution & Rollback Failure: The background database thread executes
UPDATE resources SET doomed=1 WHERE res_id=? AND cache_key=? AND doomed=0withres_id = R2andcache_key = K1. [net/disk_cache/sql/sql_persistent_store_queries.h, line 125]Since the database row for
R2hascache_key = K2, the query matches 0 rows and returnsError::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::kNotFoundfrom 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'sres_idis 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:
- Forced Cache Miss / Partitioning Bypass:
An attacker on
attacker.combrute-forces a cache keyK1that collides with a victim's cached resourceK2under a different Network Isolation Key (NIK) partition. - The attacker triggers a cache doom (e.g., via a POST request to
K1). - This removes
K2's key from the index. Subsequent fetch attempts forK2check the index, returnkHashNotFound, and result in a forced cache miss, bypassing NIK privacy boundaries to leak caching state or evict cross-site resources. - Database Pollution:
Subsequent creations of
K2setrun_existance_check = falseand 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:
- Verify the
cache_keymatches the in-memory index entries (or avoid the fast-path when a hash collision is possible) before performingindex_->Remove. - Re-insert the entry into the index in the recovery path when
Error::kNotFoundis 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.
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
- An attacker brute-forces a cache key that collides with a victim's cached resource under a different Network Isolation Key partition.
- The attacker triggers a cache doom for that key, for example via a POST request.
- The doom removes the victim's key from the in-memory index while the database row remains live.
- 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.