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

Use after free in WebRTC (CVE-2026-10943)

A heap-use-after-free occurs in WebRTC's RtpSenderBase during SDP rollback because a deferred task captures a raw pointer to an object that is freed before the task runs. An attacker could trigger this via a standard RTCPeerConnection JavaScript API from any webpage, potentially leading to type confusion or controlled read/write through heap grooming.

Rayyan Kadar Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 44 days

Steps to reproduce the problem

  1. Create two RTCPeerConnection objects (caller, callee)
  2. caller.addTransceiver("audio")
  3. offer = await caller.createOffer()
  4. await callee.setRemoteDescription(offer)
  5. await callee.setLocalDescription({type:"rollback", sdp:""})

Step 5 triggers heap-use-after-free at pc/rtp_sender.cc:864.

Tested on WebRTC HEAD commit 67615c4df4 (2026-04-19). 100% reproducible under ASAN with separate threads.

Standalone C++ repro and ASAN stack trace attached as files.

Problem Description

Heap-use-after-free in pc/rtp_sender.cc:864 during SDP rollback.

ROOT CAUSE: SdpOfferAnswerHandler::Rollback() uses ScopedOperationsBatcher to defer GetStopTransceiverProcedure() tasks. DetachTrackAndGetStopTask() returns a lambda capturing raw [this] (RtpSenderBase). During rollback, the transceiver is removed from the stable-states map, dropping the last ref to AudioRtpSender. When the ScopedOperationsBatcher destructor runs the batched lambda on the worker thread, this points to freed heap.

ASAN SUMMARY: READ of size 8, thread T2 (worker) #0 RtpSenderBase::DetachTrackAndGetStopTask()::$_0 rtp_sender.cc:864 freed by thread T3 (signaling) in: #0 AudioRtpSender::Release() #16 SdpOfferAnswerHandler::Rollback()

REGRESSION: 191a6abd692a (Feb 12 2026) "Batch worker thread tasks in [Get]StopTransceiverProcedure" - changed Rollback() from synchronous StopTransceiverProcedure() to deferred GetStopTransceiverProcedure() via ScopedOperationsBatcher. Internal bug: webrtc:42222804 Review: https://webrtc-review.googlesource.com/c/src/+/448460

WEB REACHABLE: Yes - standard RTCPeerConnection JS API, no flags, no user interaction, no extensions. Any webpage can trigger this.

IMPACT: Renderer process heap-UAF. Potential for exploitation via heap grooming to achieve type confusion or controlled read/write.

Additional Comments

Regression: 191a6abd692a (2026-02-12) "Batch worker thread tasks in [Get]StopTransceiverProcedure" - webrtc:42222804

Standalone multi-threaded C++ PoC attached (uaf_repro_standalone.cc). Crashes 100% on first iteration under ASAN. Build with: autoninja -C out/fuzzers test/fuzzers:uaf_repro_standalone Run with: ASAN_OPTIONS=detect_leaks=0 ./out/fuzzers/uaf_repro_standalone

Also found via custom fuzzer (pc_sdp_negotiation_fuzzer) with two independent 4-byte minimal crash inputs attached.

JS equivalent (for Chrome testing): const pc1 = new RTCPeerConnection(); const pc2 = new RTCPeerConnection(); pc1.addTransceiver("audio"); const o = await pc1.createOffer(); await pc2.setRemoteDescription(o); await pc2.setLocalDescription({type:"rollback",sdp:""});

Summary

Heap-UAF in RtpSenderBase::DetachTrackAndGetStopTask during SDP rollback

Custom Questions

Type of crash:

Tab

Crash state:

heap-use-after-free READ size 8 at pc/rtp_sender.cc:864 Thread T2 (worker): #0 RtpSenderBase::DetachTrackAndGetStopTask()::$_0 pc/rtp_sender.cc:864 #1 RtpTransceiver::GetStopSendingAndReceiving()::$_0 any_invocable.h:774 #2 ScopedOperationsBatcher::Run()::$_1 any_invocable.h:774 #3 Thread::Dispatch() any_invocable.h:774 #4 Thread::Run() thread.cc:884

Freed by thread T3 (signaling): #0 operator delete #1 AudioRtpSender::Release() ref_counted_object.h:42 #7 RtpTransceiver::~RtpTransceiver() vector.h:259 #16 SdpOfferAnswerHandler::Rollback() tree:1361

Allocated by thread T2 (worker): #1 AudioRtpSender::Create() make_ref_counted.h:90 #7 SdpOfferAnswerHandler::AssociateTransceiver() sdp_offer_answer.cc:4281

Full symbolized ASAN trace attached as stacktrace.txt

Reporter credit:

Rayyan Kadar

Additional Data

Category: Security
Chrome Channel: Dev
Regression: N/A \

The original report as published on the Chromium issue tracker, by Rayyan Kadar. 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 rollback logic defers a task that captures a raw pointer to an RtpSenderBase object, but the object is freed before the deferred task executes.

Impact

A renderer process heap-use-after-free could potentially be exploited via heap grooming to achieve type confusion or controlled read/write.

What the attacker needed

Victim visits a malicious webpage; browser supports WebRTC

How it was found

  1. Create two RTCPeerConnection objects (caller, callee)
  2. Add an audio transceiver to the caller
  3. Create an offer from the caller
  4. Set the offer as the remote description on the callee
  5. Set a rollback local description on the callee, triggering the use-after-free

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 use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed. Here, a delayed task in WebRTC holds a pointer to an object that gets deleted before the task runs, so the task reads freed memory. Because this can be triggered from a normal web page using WebRTC, it could let an attacker corrupt memory in the browser.

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.