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

Out of bounds read in Chromecast (CVE-2026-13890)

A missing lower-bound check on the channel_selection protobuf parameter allows a negative index to be used when rendering audio, causing an out-of-bounds heap read. An attacker could exploit this via the mixer's IPC socket to leak sensitive process memory and bypass ASLR.

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: A missing lower-bound check on the channel_selection protobuf parameter allows a negative index to be used when rendering audio. This results in an out-of-bounds heap read, and the leaked memory is subsequently broadcast over the audio loopback channel. An attacker can exploit this via the mixer's IPC socket to leak sensitive process memory and bypass ASLR.

Affected files:

  • chromecast/media/cma/backend/mixer/mixer_input.cc
  • chromecast/media/cma/backend/mixer/mixer_input_connection.cc
  • chromecast/media/audio/mixer_service/mixer_service_transport.proto

Estimated timestamp from git blame: 2025-11-18

Description

A potential heap out-of-bounds (OOB) read vulnerability exists in the Chromecast audio mixer service due to a missing lower-bound check on the channel_selection parameter.

The OutputStreamParams.channel_selection field is defined as a sint32 in mixer_service_transport.proto and is received over the mixer service's Unix Domain Socket. In the MixerInputConnection constructor, this value is extracted and stored in playout_channel_ without verifying that the value is >= -1.

This negative value is passed to MixerInput, which uses it as an array index during audio rendering. In chromecast/media/cma/backend/mixer/mixer_input.cc, the RenderInterleaved function executes the following code:

C++
void MixerInput::RenderInterleaved(int num_output_frames) {
  float* data = prerender_pipeline_->GetOutputBuffer();

  if (playout_channel_ != kChannelAll && playout_channel_ < num_channels_) {
    // Keep only the samples from the selected channel.
    float* dest = interleaved_.data();
    for (int f = 0; f < num_output_frames; ++f) {
      UNSAFE_TODO(dest[f]) =
          UNSAFE_TODO(data[f * num_channels_ + playout_channel_]);
    }
    data = dest;
  }
  // ...
}

The constant kChannelAll is defined as -1. If an attacker provides a channel_selection value of -64, the condition playout_channel_ != kChannelAll && playout_channel_ < num_channels_ evaluates to true (e.g., -64 != -1 && -64 < 1).

The loop then reads from data[f * num_channels_ + playout_channel_]. On the first frame (f = 0), this evaluates to data[-64], resulting in a heap out-of-bounds read relative to the buffer returned by prerender_pipeline_->GetOutputBuffer(). Assuming no complex post-processors are active, this buffer points to MixerInput::interleaved_.data(), a base::AlignedAlloc heap allocation.

Impact and Exploitation

The out-of-bounds heap data is written into dest and subsequently mixed into the audio output. An attacker can exfiltrate this data by registering a second connection with a loopback_request, which instructs the mixer to stream a copy of the final audio output back to the attacker.

Before output, the mixer applies std::clamp(val, -1.0f, 1.0f). However, this does not sanitize the leaked memory: C++ std::clamp inherently preserves NaN payloads. Furthermore, when heap pointers (such as vtable pointers or allocator metadata) are interpreted as 32-bit IEEE 754 floats, their bit patterns frequently result in subnormal floats or small floats whose absolute magnitude is less than 1.0. These bits bypass the clamp entirely, providing the attacker with a perfectly preserved infoleak and ASLR bypass primitive against the privileged mixer process.

Potential Reproduction Steps

Note: These steps are theoretical as our tooling does not yet have the ability to run code or execute a proof-of-concept.

  1. Connect to the mixer service's abstract Unix Domain Socket (default path: /tmp/mixer-service) from a compromised renderer or local app.
  2. Send a Generic protobuf containing an OutputStreamParams message with num_channels: 1 and channel_selection: -64.
  3. Establish a second connection to the same socket and send a loopback_request message to register as a loopback listener.
  4. Send arbitrary audio data via the first connection to start the rendering loop.
  5. Read the float PCM samples received from the second (loopback) connection.
  6. Reinterpret the received floats as raw integers to recover the leaked heap bytes from the mixer process.

Suggested Fix

Add bounds checking when initializing the channel selection. In MixerInputConnection::MixerInputConnection or CmaBackendShim::ConvertChannelSelection, verify that the provided parameter is valid:

C++
playout_channel_ = std::max(params.channel_selection(), kChannelAll);

Alternatively, enforce unsigned comparisons or explicit bounds checking inside MixerInput::RenderInterleaved.

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


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

The channel_selection value is stored without verifying it is greater than or equal to -1, so a negative value other than -1 passes the check and is used as an array index.

Impact

An attacker could leak sensitive process memory and bypass ASLR; the clamp does not sanitise the leaked memory because it preserves NaN payloads and many pointer bit patterns appear as small floats.

What the attacker needed

Access to the mixer IPC socket; compromised renderer or local app

The fix

Add bounds checking when initialising the channel selection, for example by clamping the value to at least kChannelAll or enforcing explicit bounds checks in RenderInterleaved.

How it was found

  1. Connect to the mixer service's abstract Unix Domain Socket from a compromised renderer or local app.
  2. Send a Generic protobuf containing an OutputStreamParams message with num_channels: 1 and channel_selection: -64.
  3. Establish a second connection to the same socket and send a loopback_request message to register as a loopback listener.
  4. Send arbitrary audio data via the first connection to start the rendering loop.
  5. Read the float PCM samples received from the second (loopback) connection.
  6. Reinterpret the received floats as raw integers to recover the leaked heap bytes from the mixer process.

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 audio mixer takes a number that says which channel to play. It never checks that the number is not negative. A negative number makes the program read memory from before the start of a buffer, and that memory is then sent back as audio, letting an attacker see secret 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.