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

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.cc
  • net/spdy/spdy_read_queue.cc
  • net/spdy/spdy_session.cc
  • net/spdy/spdy_buffer.cc
  • base/containers/circular_deque.h
  • net/http/http_cache_writers.cc
  • net/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:

  1. SpdyHttpStream::DoBufferedReadCallback is an asynchronous task that consumes buffered data by calling response_body_queue_.Dequeue().
  2. When Dequeue finishes copying a SpdyBuffer, it pops it from the queue, destroying the SpdyBuffer.
  3. The ~SpdyBuffer destructor invokes its registered consume callbacks. One of these is SpdySession::OnReadBufferConsumed.
  4. SpdySession::OnReadBufferConsumed calls IncreaseRecvWindowSize. If more than 5 seconds have elapsed since the last window update, it synchronously constructs and sends a WINDOW_UPDATE frame via EnqueueSessionWrite.
  5. WINDOW_UPDATE frames are "capped frames". EnqueueSessionWrite checks if the queue of capped frames exceeds session_max_queued_capped_frames_ (default 10,000).
  6. If an attacker has previously saturated this queue (e.g., by sending 10,001 PING frames while the client TCP write window is blocked), the new WINDOW_UPDATE frame pushes the session over the limit.
  7. Exceeding the limit triggers DoDrainSession(ERR_CONNECTION_CLOSED) synchronously.
  8. DoDrainSession closes all active streams, invoking SpdyHttpStream::OnClose(ERR_CONNECTION_CLOSED).
  9. SpdyHttpStream::OnClose immediately executes any pending response_callback_ with the error. This error propagates up to HttpNetworkTransaction (or HttpCache::Writers), which handles the failure by tearing down the transaction and deleting the SpdyHttpStream object.
  10. The stack then unwinds back to SpdyHttpStream::DoBufferedReadCallback. The this pointer is now dangling.
  11. The code subsequently executes user_buffer_ = nullptr (triggering scoped_refptr::Release()) and invokes DoResponseCallback(...) 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.

  1. A malicious HTTP/2 server establishes a connection with Chrome.
  2. The server advertises a TCP receive window of 0 to block Chrome from flushing its write socket.
  3. The server sends exactly 10,000 PING frames. Chrome queues 10,000 PING ACK frames, filling the SpdySession's capped frame queue precisely to its limit.
  4. The server pauses for 5 seconds to exceed the time_to_buffer_small_window_updates_ threshold.
  5. The client initiates an HTTP request (fetch()). The server responds with headers, then sends a DATA frame with the response body.
  6. Chrome buffers the data and schedules SpdyHttpStream::DoBufferedReadCallback.
  7. During the callback's execution, the DATA frame is consumed, which triggers a WINDOW_UPDATE.
  8. The new WINDOW_UPDATE pushes the queued capped frames to 10,001, triggering a synchronous DoDrainSession.
  9. The SpdyHttpStream is synchronously destroyed, and the unwinding stack uses the freed this pointer, resulting in a UAF.

Suggested Fix

There are a few ways to remediate this issue:

  1. Use WeakPtr in the Callback: Bind a base::WeakPtr to the SpdyHttpStream instance at the start of DoBufferedReadCallback. After response_body_queue_.Dequeue() returns, check if the WeakPtr has been invalidated before attempting to access user_buffer_, user_buffer_len_, or response_callback_.
  2. Asynchronous Session Draining: Change the behavior inside EnqueueSessionWrite so that exceeding the session_max_queued_capped_frames_ limit triggers DoDrainSessionAsync instead of the synchronous DoDrainSession, 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.

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, 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

  1. A malicious HTTP/2 server establishes a connection with Chrome.
  2. The server advertises a TCP receive window of 0 to block Chrome from flushing its write socket.
  3. The server sends exactly 10,000 PING frames, filling the capped frame queue to its limit.
  4. The server pauses for 5 seconds to exceed the time threshold.
  5. The client initiates an HTTP request; the server responds with headers and a DATA frame.
  6. 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.

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.