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

Insufficient validation of untrusted input in Chromecast (CVE-2026-11140)

A heap out-of-bounds read exists in the Chromecast mixer service because a debug-only check on the playback rate is removed in release builds, allowing a negative rate. A local attacker could send crafted IPC messages to read memory from the privileged cast_shell process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 53 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.

Overview: A potential heap out-of-bounds read exists in the Cast mixer service when handling a negative playback rate. The validation for the playback rate is compiled out in release builds, leading to a negative buffer offset calculation and subsequent out-of-bounds read from the heap.

Affected files:

  • chromecast/media/cma/backend/mixer/mixer_input_connection.cc
  • chromecast/media/audio/playback_rate_shifter.cc

Estimated timestamp from git blame: 2025-11-18

Summary

A potential heap out-of-bounds (OOB) read vulnerability exists in the Chromecast mixer service, which runs in the privileged cast_shell browser process. The vulnerability stems from insufficient validation of the playback_rate parameter in IPC messages. A DCHECK intended to prevent non-positive playback rates is compiled out in release builds. This allows a local attacker to supply a negative playback rate, which results in a negative buffer offset being used as an index for memory access, leading to an OOB read.

Vulnerability Details

The Cast mixer service accepts connections from local clients over a UNIX domain socket (e.g., \0/tmp/mixer-service). An unprivileged local process can connect to this socket, create an output stream, and send control messages.

When processing a SetPlaybackRate IPC message, the value is handled by MixerInputConnection::SetMediaPlaybackRate (chromecast/media/cma/backend/mixer/mixer_input_connection.cc:638):

C++
void MixerInputConnection::SetMediaPlaybackRate(double rate) {
  // ...
  DCHECK_GT(rate, 0); // Only validated via DCHECK
  // ...
  SetMediaPlaybackRateLocked(rate);
}

In release builds, the DCHECK_GT is compiled out, allowing a negative rate (e.g., -1.0) to be passed to SetMediaPlaybackRateLocked and stored in playback_rate_.

If the stream is configured to use timestamped audio (pts_is_timestamp_), playback synchronization is handled by MixerInputConnection::FillTimestampedAudio. When calculating how much audio to crop to catch up to real-time, the code calculates frames_to_crop:

C++
// chromecast/media/cma/backend/mixer/mixer_input_connection.cc:1229
const int frames_to_crop =
    (never_crop_ ? 0
                 : std::round(error * input_samples_per_second_ *
                              playback_rate_ / 1e6));

If the client supplies an audio buffer with an artificially old timestamp, the synchronization error will be a large positive value. Because playback_rate_ is negative, the resulting frames_to_crop becomes a large negative integer.

This negative value is then added to current_buffer_offset_:

C++
// chromecast/media/cma/backend/mixer/mixer_input_connection.cc:1245
current_buffer_offset_ += frames_to_crop;

Subsequently, MixerInputConnection::FillFromQueue uses current_buffer_offset_ to compute the source pointer for a memory copy operation:

C++
// chromecast/media/cma/backend/mixer/mixer_input_connection.cc:1289
const float* buffer_samples = GetAudioData(buffer);
for (int c = 0; c < num_channels_; ++c) {
  const float* buffer_channel =
      UNSAFE_TODO(buffer_samples + (buffer_frames * c));
  std::copy_n(UNSAFE_TODO(buffer_channel + current_buffer_offset_),
              frames_to_copy, UNSAFE_TODO(channels[c] + write_offset));
}

Because current_buffer_offset_ is a large negative number, buffer_channel + current_buffer_offset_ points backward into preceding heap memory, resulting in an out-of-bounds read.

Potential Exploitation

An attacker with local code execution (e.g., in a sandboxed renderer process) could potentially exploit this to leak memory from the privileged cast_shell process:

  1. The attacker connects to the mixer service UDS and configures a timestamped audio stream.
  2. The attacker sends a set_playback_rate IPC message with -1.0.
  3. The attacker sends an audio buffer with a timestamp far in the past to generate a large positive error.
  4. The mixer triggers the OOB read, pulling heap memory into the internal audio pipeline. The PlaybackRateShifter buffers this data in its AudioRendererAlgorithm.
  5. Before the AudioRendererAlgorithm drops or distorts the data due to the negative rate, the attacker sends a second IPC message setting the playback rate back to 1.0.
  6. The mixer resumes normal playback, draining the buffered OOB heap data and mixing it into the master audio output.
  7. The attacker connects to the mixer service via a second unauthenticated socket connection, requests a loopback stream, and captures the master audio output containing the leaked heap memory.

Note: These are suggested steps based on code analysis; we do not currently have a working proof of concept to demonstrate full exploitation.

Suggested Fix

Replace the DCHECK_GT(rate, 0); in MixerInputConnection::SetMediaPlaybackRate with a robust runtime check that enforces positive, bounded playback rates in all builds, or clamp the value to a safe range before applying it.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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 playback rate validation uses a DCHECK that is compiled out in release builds, so a negative rate is accepted and later used in an offset calculation without a runtime check.

Impact

A local attacker could potentially leak heap memory from the privileged cast_shell process, though no working proof of concept is provided.

What the attacker needed

Local code execution on the device; access to the mixer service socket

The fix

The DCHECK should be replaced with a runtime check that enforces positive, bounded playback rates in all builds, or the value should be clamped to a safe range.

How it was found

  1. Connect to the mixer service UNIX domain socket.
  2. Configure a timestamped audio stream.
  3. Send a set_playback_rate IPC message with a negative value.
  4. Send an audio buffer with a timestamp far in the past to create a large positive error.
  5. Trigger the out-of-bounds read and buffer the leaked data.
  6. Reset the playback rate to normal and capture the mixed audio output via a loopback stream.

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 Chromecast mixer service is a background program that mixes audio. It accepts commands from other programs on the same device. A safety check that should stop negative playback speeds is only active in test versions, so in real versions a bad speed can make the program read memory it should not, potentially leaking private 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.