Use after free in Network (CVE-2026-11651)
A potential heap use-after-free exists in Chrome's Network Process when handling HTTP/2 streams. A malicious server could trigger synchronous session draining during a buffered read, destroying the SpdyHttpStream object while it is still executing on the stack, potentially leading to remote code execution.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 30 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential heap use-after-free vulnerability exists in Chrome's Network Process when handling HTTP/2 streams. A malicious server can trigger a synchronous session drain during a buffered read by overflowing the capped frame queue, leading to the destruction of the SpdyHttpStream object while it is still executing on the stack.
Affected files:
net/spdy/spdy_http_stream.ccnet/spdy/spdy_read_queue.ccnet/spdy/spdy_session.ccnet/spdy/spdy_buffer.ccbase/containers/circular_deque.hnet/http/http_cache_writers.ccnet/http/http_cache_transaction.cc
Estimated timestamp from git blame: 2025-07-01
Vulnerability Summary
A potential heap Use-After-Free (UAF) vulnerability exists in the Network Process due to complex synchronous re-entrancy during HTTP/2 buffer consumption. A malicious server can carefully orchestrate connection states to cause a SpdyHttpStream to be destroyed synchronously while its asynchronous read callback is executing, leaving a dangling this pointer on the stack.
Technical Details
The vulnerability is rooted in how SpdyHttpStream::DoBufferedReadCallback manages data delivery and how SpdySession handles flow control and queue limits:
SpdyHttpStream::DoBufferedReadCallbackis an asynchronous task that consumes buffered data by callingresponse_body_queue_.Dequeue().- When
Dequeuefinishes copying aSpdyBuffer, it pops it from the queue, destroying theSpdyBuffer. - The
~SpdyBufferdestructor invokes its registered consume callbacks. One of these isSpdySession::OnReadBufferConsumed. SpdySession::OnReadBufferConsumedcallsIncreaseRecvWindowSize. If more than 5 seconds have elapsed since the last window update, it synchronously constructs and sends aWINDOW_UPDATEframe viaEnqueueSessionWrite.WINDOW_UPDATEframes are "capped frames".EnqueueSessionWritechecks if the queue of capped frames exceedssession_max_queued_capped_frames_(default 10,000).- If an attacker has previously saturated this queue (e.g., by sending 10,001
PINGframes while the client TCP write window is blocked), the newWINDOW_UPDATEframe pushes the session over the limit. - Exceeding the limit triggers
DoDrainSession(ERR_CONNECTION_CLOSED)synchronously. DoDrainSessioncloses all active streams, invokingSpdyHttpStream::OnClose(ERR_CONNECTION_CLOSED).SpdyHttpStream::OnCloseimmediately executes any pendingresponse_callback_with the error. This error propagates up toHttpNetworkTransaction(orHttpCache::Writers), which handles the failure by tearing down the transaction and deleting theSpdyHttpStreamobject.- The stack then unwinds back to
SpdyHttpStream::DoBufferedReadCallback. Thethispointer is now dangling. - The code subsequently executes
user_buffer_ = nullptr(triggeringscoped_refptr::Release()) and invokesDoResponseCallback(...)from the freed memory.
Because the attacker can reclaim the freed SpdyHttpStream memory via heap spraying, the Release() call on a forged IOBuffer pointer or the execution of the forged response_callback_ base::OnceCallback provides strong primitives for Remote Code Execution (RCE) in the Network Process.
Potential Reproduction Steps
Note: These are suggested theoretical steps as our tooling agent does not currently have the capability to execute a live proof-of-concept.
- A malicious HTTP/2 server establishes a connection with Chrome.
- The server advertises a TCP receive window of 0 to block Chrome from flushing its write socket.
- The server sends exactly 10,000
PINGframes. Chrome queues 10,000PINGACK frames, filling theSpdySession's capped frame queue precisely to its limit. - The server pauses for 5 seconds to exceed the
time_to_buffer_small_window_updates_threshold. - The client initiates an HTTP request (
fetch()). The server responds with headers, then sends aDATAframe with the response body. - Chrome buffers the data and schedules
SpdyHttpStream::DoBufferedReadCallback. - During the callback's execution, the
DATAframe is consumed, which triggers aWINDOW_UPDATE. - The new
WINDOW_UPDATEpushes the queued capped frames to 10,001, triggering a synchronousDoDrainSession. - The
SpdyHttpStreamis synchronously destroyed, and the unwinding stack uses the freedthispointer, resulting in a UAF.
Suggested Fix
There are a few ways to remediate this issue:
- Use WeakPtr in the Callback: Bind a
base::WeakPtrto theSpdyHttpStreaminstance at the start ofDoBufferedReadCallback. Afterresponse_body_queue_.Dequeue()returns, check if theWeakPtrhas been invalidated before attempting to accessuser_buffer_,user_buffer_len_, orresponse_callback_. - Asynchronous Session Draining: Change the behavior inside
EnqueueSessionWriteso that exceeding thesession_max_queued_capped_frames_limit triggersDoDrainSessionAsyncinstead of the synchronousDoDrainSession, preventing deep re-entrant destruction paths.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
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, the code does not check whether the SpdyHttpStream object is still alive after a synchronous callback chain that can destroy it, leading to use of a dangling pointer.
Impact
A malicious server could potentially achieve remote code execution in the Network Process by exploiting the use-after-free, though this is theoretical and not yet demonstrated.
What the attacker needed
Malicious HTTP/2 server; victim connects to server
The fix
The issue should be fixed by using a WeakPtr to check if the SpdyHttpStream is still alive after the Dequeue call, or by making session draining asynchronous.
How it was found
- A malicious HTTP/2 server establishes a connection with Chrome.
- The server advertises a TCP receive window of 0 to block Chrome from flushing its write socket.
- The server sends exactly 10,000 PING frames, filling the capped frame queue to its limit.
- The server pauses for 5 seconds to exceed the time threshold.
- The client initiates an HTTP request; the server responds with headers and a DATA frame.
- Chrome buffers the data and schedules a callback; during the callback, a WINDOW_UPDATE is triggered, pushing the queue over the limit and causing synchronous session drain, destroying the SpdyHttpStream while still on the stack.
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.
This report describes a memory safety bug in Chrome's networking code. When Chrome talks to a website using HTTP/2, it can be tricked into freeing an object while still using it, which could let an attacker run malicious code on your computer. The bug is theoretical and was found by an automated tool, not yet proven in practice.
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.