Out of bounds read in DevTools (CVE-2026-11279)
A logic error in NetworkResourcesData::Clear desynchronises the tracked content size from the deque of request IDs, so that EnsureFreeSpace can pop from an empty deque and read uninitialised memory. This potentially gives an attacker an arbitrary wild decrement primitive in the Renderer process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 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 without the Chrome Security team.
Overview: A logic error in NetworkResourcesData::Clear desynchronizes the tracked content size from the deque of request IDs. In Release builds, this allows EnsureFreeSpace to pop from an empty deque, reading uninitialized memory. This potentially grants an attacker an arbitrary wild decrement primitive in the Renderer process.
Affected files:
third_party/blink/renderer/core/inspector/network_resources_data.cc
Estimated timestamp from git blame: 2022-09-19
Description
A logic error exists in NetworkResourcesData::Clear that causes a desynchronization between the tracked content_size_ and the items in request_ids_deque_. When a frame navigates and preserves certain resources, Clear empties the deque but adds the sizes of the preserved resources back into content_size_. Crucially, the IDs of these preserved resources are never re-inserted into the deque.
Later, when a new large resource is loaded, NetworkResourcesData::EnsureFreeSpace(uint64_t size) is called to evict older resources. Because content_size_ is artificially high, the eviction loop while (content_size_ + size > maximum_resources_content_size_) will exhaust all legitimate items in request_ids_deque_ and continue executing.
In Release builds, WTF::Deque::TakeFirst() lacks empty checks (relying only on DCHECK). Calling it on an empty deque reads from uninitialized memory in the underlying PartitionAlloc buffer. TakeFirst moves this garbage data into a WTF::String, treating the uninitialized memory as a StringImpl*.
When this forged WTF::String is destroyed at the end of the loop iteration, StringImpl::Release() is called. This function performs an atomic decrement on the attacker-controlled pointer's ref_count_. This yields a highly reliable, arbitrary wild decrement primitive in the Renderer process, which can be leveraged for memory corruption.
Potential Steps to Trigger
Note: These are suggested steps based on static analysis; our tooling agent does not run code to produce a working proof-of-concept.
- The victim opens the DevTools Network panel, or a DevTools client (like Puppeteer) attaches to the page, initializing the
InspectorNetworkAgentandNetworkResourcesData. - The attacker's page loads resources and triggers a root frame navigation that preserves specific resources.
- The attacker sprays the heap with forged pointers targeting specific memory addresses they wish to corrupt.
- The attacker loads several small subresources to force
request_ids_deque_to allocate a new backing buffer over the sprayed memory. BecauseWTF::Deque<String>does not zero-initialize itsPartitionAllocmemory, the buffer slots contain the sprayed pointers. - The attacker loads a large resource to trigger
EnsureFreeSpace(). - The loop exhausts valid IDs, reads the sprayed pointers as
WTF::Stringobjects, and decrements the target memory addresses upon destruction. - The attacker can gracefully exit the loop by ensuring one sprayed pointer matches a preserved resource ID, allowing
ResourceDataForRequestIdto succeed and correctly decrementcontent_size_.
Proposed Fix
There are two recommended fixes to ensure defense-in-depth:
-
In
NetworkResourcesData::Clear, push the keys of preserved resources back intorequest_ids_deque_:C++ if (!preserved_loader_id.IsNull() && resource_data->LoaderId() == preserved_loader_id) { preserved_map.Set(resource.key, resource.value); content_size_ += resource_data->ContentSize(); request_ids_deque_.push_back(resource.key); // Missing line } -
In
NetworkResourcesData::EnsureFreeSpace, explicitly check if the deque is empty to prevent infinite loops and out-of-bounds reads if sizes ever become desynchronized:C++ while (content_size_ + size > maximum_resources_content_size_) { if (request_ids_deque_.empty()) { break; // Prevent OOB read } String request_id = request_ids_deque_.TakeFirst(); // ... }
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.
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, Clear empties the deque but adds preserved resource sizes back into content_size_ without re-inserting their IDs, so EnsureFreeSpace later pops from an empty deque.
Impact
This potentially grants an attacker an arbitrary wild decrement primitive in the Renderer process, which could be leveraged for memory corruption; the text notes these are suggested steps from static analysis and no working proof-of-concept was run.
What the attacker needed
Victim opens DevTools or a client attaches; attacker can load a page in the browser; Release build of Chrome
The fix
The text proposes two fixes: push preserved resource keys back into the deque in Clear, and add an empty-deque check in EnsureFreeSpace; it does not say the issue was fixed.
How it was found
- The victim opens DevTools or a DevTools client attaches, initialising NetworkResourcesData.
- The attacker's page loads resources and triggers a root frame navigation that preserves specific resources.
- The attacker sprays the heap with forged pointers.
- The attacker loads small subresources to force the deque to allocate a new backing buffer over the sprayed memory.
- The attacker loads a large resource to trigger EnsureFreeSpace.
- The loop reads sprayed pointers as strings and decrements target memory addresses on destruction.
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.
When a web page loads resources, the browser's developer tools keep a list of them and a running total of their size. A bug makes the total too high while the list is empty, so when the browser tries to free space it reads leftover memory as if it were a real entry. That can let an attacker corrupt memory in the browser process that renders the page.
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.