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

Integer overflow in WebRTC (CVE-2026-87630)

An integer overflow in the AV1 RTP packetiser's fragmentation loop allows an extra iteration that creates a corrupt packet with an out-of-bounds read. An attacker can use the RTCRtpScriptTransform API to supply a large encoded frame and cause heap memory to be disclosed to a remote WebRTC peer.

ngrunbaum Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Security Bug

Important: Please do not change the component of this bug manually.

Please READ THIS FAQ before filing a bug: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/faq.md

Please see the following link for instructions on filing security bugs: https://www.chromium.org/Home/chromium-security/reporting-security-bugs

Reports may be eligible for reward payments under the Chrome VRP: https://g.co/chrome/vrp

NOTE: Security bugs are normally made public once a fix has been widely deployed.


VULNERABILITY DETAILS

NOTE At Mozilla we are tracking this at https://bugzilla.mozilla.org/show_bug.cgi?id=2029449 . I can CC someone to that bug if so desired.

RtpPacketizerAv1::PacketizeInternal contains a fragmentation loop whose condition obu_offset + limits.max_payload_len < obu.size is computed entirely in signed int. Both Obu::size and PayloadSizeLimits::max_payload_len are declared int, and obu.size is set to 1 + payload.size() with no upper bound check during ParseObus. When a single OBU's payload approaches INT_MAX bytes, the loop's obu_offset climbs until obu_offset + max_payload_len overflows to a negative value, which compares as less than obu.size, allowing the loop body to execute one extra iteration. This emplaces a Packet whose first_obu_offset points one byte before the end of the payload buffer but whose last_obu_size is the full ~1167-byte fragment size.

When RTPSenderVideo::SendVideo later calls NextPacket on this corrupt Packet, the memcpy at line 445 computes payload_offset = first_obu_offset - 1 (which is the last valid index) and copies last_obu_size bytes from there, reading 1166 bytes of adjacent heap memory past the EncodedImageBuffer. The DCHECK guards at lines 390-394 do not catch this because they only verify first_obu_offset < obu.size and last_obu_size <= obu.size, both of which hold individually.

This is reachable from unprivileged web content using only default-enabled features. The W3C RTCRtpScriptTransform API allows a worker to intercept encoded video frames and replace their data via the RTCEncodedVideoFrame.data setter, which accepts ArrayBuffers up to INT32_MAX bytes. The replaced data flows directly through RTPSenderVideoFrameTransformerDelegate::SendVideo into RtpPacketizer::Create (rtp_format.cc:60), which dispatches the AV1 codec to RtpPacketizerAv1 with no size validation. The OOB-read bytes are written into an RtpPacketToSend buffer that is queued for transmission to the remote WebRTC peer, turning this into a remote heap memory disclosure when the peer is attacker-controlled.

VERSION Chrome Version: https://issues.webrtc.org/issues/42221125 Operating System:

REPRODUCTION CASE See attached test.html

FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: [tab, browser, etc.] Crash State: [see link above: stack trace with symbols, registers, exception record] Client ID (if relevant): [see link above]

CREDIT INFORMATION Externally reported security bugs may appear in Chrome release notes. If this bug is included, how would you like to be credited? Reporter credit: [goes here]

The original report as published on the Chromium issue tracker, by ngrunbaum. 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 fragmentation loop condition uses signed int arithmetic without checking for overflow, and the OBU size is not bounded during parsing.

Impact

A remote attacker could disclose heap memory to a WebRTC peer they control.

What the attacker needed

Default-enabled WebRTC features; attacker-controlled remote peer

How it was found

  1. Use the RTCRtpScriptTransform API in a worker to intercept encoded video frames.
  2. Replace the frame data with an ArrayBuffer close to INT32_MAX bytes via the RTCEncodedVideoFrame.data setter.
  3. The data flows through RTPSenderVideoFrameTransformerDelegate::SendVideo into RtpPacketizer::Create, which dispatches to RtpPacketizerAv1.
  4. The fragmentation loop overflows and creates a corrupt Packet.
  5. NextPacket copies from the wrong offset, reading adjacent heap memory.
  6. The out-of-bounds bytes are queued for transmission to the remote peer.

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 video packetiser splits large frames into smaller pieces. A signed integer overflow makes it take one extra step and read past the end of a buffer. The leaked bytes are then sent to the other side of the call.

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 by ngrunbaum

View all

1 more disclosed report, best first.

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.