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

Out of bounds read in WebRTC (CVE-2026-11667)

A compromised GPU process can send an unvalidated temporal index in video encoding metadata to the renderer, causing an out-of-bounds array access in WebRTC's bitrate adjuster. This could lead to memory corruption or type confusion in the sandboxed renderer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 21 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A compromised GPU process can trigger an out-of-bounds array access in the renderer process by providing an unvalidated temporal index in Mojo video encoding metadata. This unvalidated index is used by the WebRTC component to access a fixed-size array, leading to potential memory corruption or type confusion. The vulnerability is reachable when hardware-accelerated video encoding is active.

Affected files:

  • third_party/webrtc/video/encoder_bitrate_adjuster.cc
  • third_party/webrtc/video/encoder_bitrate_adjuster.h
  • media/mojo/mojom/video_encode_accelerator_mojom_traits.cc
  • third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc
  • third_party/webrtc/video/video_stream_encoder.cc

Estimated timestamp from git blame: 2019-02-07

Summary

A potential out-of-bounds (OOB) array access vulnerability exists in webrtc::EncoderBitrateAdjuster::OnEncodedFrame. The issue stems from a lack of validation for the temporal_idx field in Mojo messages sent from the GPU process to the renderer process. A compromised GPU process can exploit this to cause memory corruption in the sandboxed renderer process.

Root Cause Analysis

The temporal_idx originates in the GPU process and is passed to the renderer via the media.mojom.VideoEncodeAcceleratorClient.BitstreamBufferReady Mojo IPC. The BitstreamBufferMetadata structure contains codec-specific metadata (e.g., H264Metadata, Vp8Metadata, or Vp9Metadata) that includes a temporal_idx field.

In media/mojo/mojom/video_encode_accelerator_mojom_traits.cc, the Mojo StructTraits deserialize this value without range validation. Subsequently, in third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc, RTCVideoEncoder::Impl::BitstreamBufferReady extracts this index and stores it in a webrtc::EncodedImage without validation. While webrtc::EncodedImage has internal RTC_DCHECK protections, these are inactive in production release builds.

The unvalidated index eventually reaches webrtc::EncoderBitrateAdjuster::OnEncodedFrame in third_party/webrtc/video/encoder_bitrate_adjuster.cc:

C++
void EncoderBitrateAdjuster::OnEncodedFrame(DataSize size,
                                            int stream_index,
                                            int temporal_index) {
  // ...
  auto& detector = overshoot_detectors_[stream_index][temporal_index]; // OOB access if temporal_index >= 4
  if (detector) {
    detector->OnEncodedFrame(size.bytes(), clock_.TimeInMicroseconds() / 1000);
  }
  // ...
}

The overshoot_detectors_ array is a fixed-size 2D array defined in encoder_bitrate_adjuster.h as [kMaxSpatialLayers][kMaxTemporalStreams], where kMaxSpatialLayers is 5 and kMaxTemporalStreams is 4. An attacker providing a temporal_idx greater than 3 will cause an out-of-bounds access.

Potential Impact

An out-of-bounds temporal_index (e.g., 20) can cause the code to alias adjacent members in EncoderBitrateAdjuster. Specifically, it may alias the media_rate_trackers_ array, resulting in internal type confusion where a RateUtilizationTracker object is treated as an EncoderOvershootDetector. The subsequent call to OnEncodedFrame on this mismatched object can lead to heap corruption via corrupted std::deque operations.

Potential Steps to Reproduce

  1. From a compromised GPU process, respond to a renderer's Encode request with a BitstreamBufferReady message.
  2. In the BitstreamBufferMetadata, set a codec-specific temporal_idx (e.g., in H264Metadata) to a value outside the range [0, 3].
  3. Ensure the renderer is using hardware acceleration for the corresponding codec (e.g., via a WebRTC connection).
  4. When the renderer receives the metadata, it will eventually trigger the OOB access in EncoderBitrateAdjuster.

Suggested Fix

Apply range validation to the temporal_idx (and spatial_idx where applicable) within RTCVideoEncoder::Impl::BitstreamBufferReady before passing the metadata to WebRTC. Additionally, consider adding validation to the Mojo StructTraits in media/mojo/mojom/video_encode_accelerator_mojom_traits.cc to ensure received indices are within the limits defined by webrtc::kMaxSpatialLayers and webrtc::kMaxTemporalStreams.

Evaluated with Chrome root at commit: 29093e11cf509e3593f6229e4b1b075cca356049


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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

The temporal_idx field from the GPU process is deserialised and used without range validation before indexing a fixed-size array.

Impact

An out-of-bounds temporal_index could alias adjacent members, causing type confusion and heap corruption via corrupted std::deque operations.

What the attacker needed

Compromised GPU process; hardware-accelerated video encoding active

The fix

Range validation should be added to temporal_idx and spatial_idx in RTCVideoEncoder::Impl::BitstreamBufferReady and in the Mojo StructTraits.

How it was found

  1. From a compromised GPU process, respond to a renderer's Encode request with a BitstreamBufferReady message.
  2. Set a codec-specific temporal_idx to a value outside the range [0, 3].
  3. Ensure the renderer is using hardware acceleration for the corresponding codec.
  4. The renderer receives the metadata and triggers the OOB access in EncoderBitrateAdjuster.

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.

The GPU process is supposed to be less trusted than the renderer, but here it can send a number that the renderer uses to index into a fixed-size list without checking it. If the number is too large, the program reads or writes memory outside the list, which can crash or corrupt data.

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.