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

Use after free in QUIC (CVE-2026-13799)

A use-after-free flaw in QUIC packet acknowledgement processing occurs when a packet contains a DATAGRAM frame, which disables pointer refreshing. An attacker could potentially trigger a re-entrant send that relocates a deque, leading to a dangling pointer and an arbitrary delete primitive, possibly enabling remote code execution in the Network Service.

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 without the security team.

Overview: When processing a QUIC packet containing a DATAGRAM frame, QuicUnackedPacketMap::NotifyFramesAcked disables safe frame copying and reference refreshing. If a co-bundled frame (like MAX_STREAMS) triggers a synchronous packet send, the underlying deque can relocate, leaving a dangling pointer. An attacker can leverage this to achieve an unmitigated arbitrary delete primitive and potential RCE in the Network Service.

Affected files:

  • net/third_party/quiche/src/quiche/quic/core/quic_unacked_packet_map.cc
  • net/third_party/quiche/src/quiche/quic/core/quic_sent_packet_manager.cc
  • net/third_party/quiche/src/quiche/quic/core/quic_transmission_info.h
  • net/third_party/quiche/src/quiche/quic/core/quic_session.cc

Estimated timestamp from git blame: 2025-08-28

Background

When a sent QUIC packet is acknowledged, QuicUnackedPacketMap::NotifyFramesAcked is invoked to process its frames. It receives a reference QuicTransmissionInfo*& info pointing to the packet's metadata within a QuicheCircularDeque.

Because frame processing can trigger re-entrant packet sends (which push new elements to the deque and might trigger a reallocation of the deque's backing array), the function typically copies the frames and uses an absl::Cleanup block to refresh the info pointer after the loop.

Vulnerability Details

There is a logic flaw in NotifyFramesAcked that explicitly disables these defensive mechanisms if the packet contains a DATAGRAM_FRAME:

C++
const bool use_copied_frames = !HasDatagramFrame(info->retransmittable_frames);
if (use_copied_frames) {
  // ... copies frames ...
}
absl::Cleanup cleanup = [&]() {
  if (use_copied_frames) { // <-- info is NOT refreshed if DATAGRAM is present
    info = GetMutableTransmissionInfo(packet_number);
  }
};

This creates a severe Use-After-Free (UAF) condition. If an attacker can force a re-entrant packet send while processing a packet containing both a DATAGRAM_FRAME and another frame (such as MAX_STREAMS_FRAME), the QuicheCircularDeque may relocate. The info pointer will become a dangling pointer to the freed backing array.

When NotifyFramesAcked returns, the caller (QuicSentPacketManager::MarkPacketHandled) continues to use this dangling info pointer, eventually calling unacked_packets_.RemoveRetransmittability(info). This method invokes DeleteFrames(&info->retransmittable_frames) on the freed memory.

Potential Exploitation Steps

Note: These are potential steps an attacker might use, as we do not yet have a working executable PoC.

  1. Establish Connection: The attacker hosts a malicious server and the victim connects via WebTransport (enabling DATAGRAM_FRAMEs).
  2. Groom Deque: The attacker shapes the traffic such that the victim's unacked_packets_ deque is exactly at its current memory capacity.
  3. Queue Frames: The attacker exhausts the client's MAX_STREAMS limit to force the client to queue a MAX_STREAMS_FRAME.
  4. Generate Target Packet: The client sends a packet containing both a DATAGRAM_FRAME and the pending MAX_STREAMS_FRAME.
  5. Trigger UAF: The attacker sends an ACK_FRAME for the target packet, bundled with enough stream data/frames to completely fill the client's packet creator buffer.
  6. Re-entrant Send: During ACK processing, NotifyFramesAcked disables info refreshing due to the DATAGRAM frame. Acknowledging the MAX_STREAMS_FRAME triggers MaybeSendMaxStreamsFrame. Because the packet creator is full (groomed in step 5), AddFrame() triggers a synchronous FlushCurrentPacket().
  7. Relocation: FlushCurrentPacket() serializes the pending frames and calls AddSentPacket(). This pushes a new element to unacked_packets_, exceeding capacity and relocating the deque's backing array. The info pointer is now dangling.
  8. Heap Grooming: Using concurrent threads or interleaved operations, the attacker reallocates the freed deque backing array with a forged absl::InlinedVector holding a fake QuicFrame.
  9. Arbitrary Delete Primitive: Because QuicFrame uses an unprotected C-style union for its out-of-line pointers (e.g., QuicAckFrame* ack_frame;), the attacker configures their fake frame as an ACK_FRAME and sets the pointer to an arbitrary heap address. MiraclePtr (BRP) does not protect raw union pointers.
  10. RCE: RemoveRetransmittability calls DeleteFrames, executing delete on the attacker's arbitrary pointer. The attacker uses this primitive to free a TLS context or other sensitive object, achieving a controllable Use-After-Free and ultimate RCE in the Network Service.

Suggested Fix

Do not rely on a persistent pointer/reference to an element inside QuicheCircularDeque across calls that can potentially mutate the deque.

Instead of taking QuicTransmissionInfo*& info, the methods should take the packet_number and dynamically resolve the element index (packet_number - least_unacked_) whenever the QuicTransmissionInfo needs to be accessed after potentially mutating callbacks. Furthermore, the absl::Cleanup logic in NotifyFramesAcked and MaybeAggregateAckedStreamFrame should unconditionally refresh the pointer, or the code should just avoid storing references to deque elements across session_notifier_->OnFrameAcked calls altogether.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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 disables safe frame copying and pointer refreshing when a DATAGRAM frame is present, leaving a dangling pointer if a re-entrant send relocates the underlying deque.

Impact

An attacker could potentially achieve an unmitigated arbitrary delete primitive and remote code execution in the Network Service, though no working exploit is demonstrated.

What the attacker needed

Victim connects to malicious server; WebTransport with DATAGRAM frames enabled; attacker controls server and traffic

The fix

The code should avoid storing references to deque elements across calls that can mutate the deque, and should unconditionally refresh the pointer or resolve the element by packet number.

How it was found

  1. The attacker hosts a malicious server and the victim connects via WebTransport, enabling DATAGRAM frames.
  2. The attacker shapes traffic so the victim's unacked packets deque is exactly at its current memory capacity.
  3. The attacker exhausts the client's MAX_STREAMS limit to force the client to queue a MAX_STREAMS frame.
  4. The client sends a packet containing both a DATAGRAM frame and the pending MAX_STREAMS frame.
  5. The attacker sends an ACK for the target packet, bundled with enough stream data to completely fill the client's packet creator buffer.
  6. During ACK processing, acknowledging the MAX_STREAMS frame triggers a synchronous packet flush, which pushes a new element to the deque, relocating its backing array and leaving the info pointer dangling.

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 computer program frees memory but keeps using a pointer to it, that's a use-after-free bug. Here, a networking component mishandles a special type of data packet, so an attacker might trick it into using freed memory, which could let them run their own code on the victim's machine.

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.