Skip to content
Info disclosure Advisory Advanced CVE-2026-87456

Uninitialized resource in Media (CVE-2026-87456)

A compromised renderer can send a crafted audio buffer with a bitstream format and a huge frame count but tiny payload, bypassing size validation. This causes the GPU process to allocate uninitialized memory, which is then encoded and returned to the renderer, leaking sensitive GPU process data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A compromised renderer can bypass data size validation in media_type_converters.cc by sending a bitstream AudioBuffer with a massive frame count and tiny payload. This causes the GPU process to allocate a large, uninitialized AudioBus which is subsequently processed as PCM audio by Mac and Android platform encoders in release builds. The encoder compresses this uninitialized heap memory and returns it to the renderer, leaking sensitive GPU process data.

Affected files:

  • media/base/audio_bus.cc
  • media/mojo/services/mojo_audio_encoder_service.cc
  • media/base/audio_buffer.cc
  • media/mojo/common/media_type_converters.cc

Estimated timestamp from git blame: 2025-01-24

Description

There is a potential uninitialized heap memory disclosure vulnerability in the GPU process's audio encoding pipeline. A compromised renderer can craft a malicious mojom::AudioBuffer that bypasses size validation during Mojo type conversion. This results in the allocation of an AudioBus backed by largely uninitialized heap memory. Due to the reliance on DCHECK instead of CHECK for bitstream format validation in the audio FIFO path, platform encoders on Mac and Android process this uninitialized memory as PCM audio data, compress it, and send it back to the renderer.

Technical Details

  1. Validation Bypass: In media/mojo/common/media_type_converters.cc, the TypeConverter for mojom::AudioBufferPtr checks if (IsBitstream(input->sample_format)) on line 235 and returns early if true. Crucially, this early return completely bypasses the min_data_size calculation and validation (input->data.size() < min_data_size) that occurs later on line 251. This allows an attacker to specify a massive frame_count (e.g., 100,000) with a tiny data.size() (e.g., 1 byte).
  2. Uninitialized Allocation: When MojoAudioEncoderService::Encode receives this buffer, it calls AudioBuffer::WrapOrCopyToAudioBus. Since bitstream formats cannot be directly wrapped, it invokes AudioBus::Create(channels, frames), allocating memory for the massive frame_count. The AudioBus constructor uses base::AlignedUninit<float> to allocate this backing memory, leaving it completely uninitialized.
  3. Partial Initialization: The subsequent call to AudioBuffer::ReadFrames copies only the tiny provided payload (1 byte) into the AudioBus, leaving the remaining 99,999+ frames worth of float data uninitialized, containing residual GPU process heap data.
  4. DCHECK Bypass in Release Builds: The AudioBus is then passed to the platform encoder. On Mac (AudioToolboxAudioEncoder) and Android (NdkAudioEncoder), the encoder uses ConvertingAudioFifo to manage frame chunking. The FIFO pulls data by calling AudioBus::CopyPartialFramesTo. This method contains a DCHECK(!is_bitstream_format_) to prevent reading bitstream memory as PCM frames. However, because DCHECKs are removed in Release builds, the check is silently bypassed.
  5. Information Leak: CopyPartialFramesTo copies the uninitialized heap data into an output buffer, which is fed into the underlying AAC encoder. The encoder compresses this uninitialized memory and returns it to the renderer via client_->OnEncodedBufferReady, resulting in a substantial heap disclosure.

Note: Windows is not affected because MFAudioEncoder uses ToInterleaved(), which invokes channel() containing a mandatory CHECK(!is_bitstream_format_) that safely crashes the process.

Potential Attacker Steps

Note: These are suggested/potential steps as our setup does not currently have the ability to run code or verify a live Proof of Concept.

  1. Compromise a renderer process (e.g., via a v8 exploit).
  2. Connect to the media::mojom::InterfaceFactory and create an AudioEncoder bound to the GPU process.
  3. Initialize the encoder with an AAC codec.
  4. Optionally, perform heap grooming in the GPU process to position sensitive targets (like IPC handles or cryptographic tokens) into predictable allocations matching the AudioBus sizing.
  5. Craft a media::mojom::AudioBuffer with a bitstream sample_format (e.g., kSampleFormatAc3), a large frame_count, and a minimal 1-byte data payload.
  6. Send this buffer via the Encode Mojo method.
  7. Receive the encoded AAC buffers sent back from the GPU process.
  8. Decode the AAC audio and use signal analysis to recover the uninitialized GPU heap memory, aiding in a sandbox escape.

Suggested Fix

  1. Enforce strict validation: In media/mojo/common/media_type_converters.cc, move the min_data_size calculation and check so that it also applies to bitstream formats before CopyBitstreamFrom is called. Ensure the validation accurately reflects bitstream sizing requirements.
  2. Harden AudioBus accessors: Upgrade the DCHECK(!is_bitstream_format_) in AudioBus::CopyPartialFramesTo and related methods (like channel(), Scale(), SwapChannels()) to a mandatory CHECK(!is_bitstream_format_). This will ensure the process safely terminates in Release builds if anomalous bitstream processing occurs, mirroring the safety of the Windows ToInterleaved() path.

Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651


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. Please feel free to reach out to me if you have concerns or feedback.

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 type converter for audio buffers returns early for bitstream formats, skipping the data size validation, and later a debug-only check (DCHECK) that would catch the misuse is removed in release builds.

Impact

A compromised renderer could leak sensitive GPU process heap data, potentially aiding a sandbox escape; Windows is not affected because its encoder uses a mandatory check that crashes the process.

What the attacker needed

Compromised renderer process; ability to send Mojo messages to GPU process

The fix

The type converter should validate data size for bitstream formats before copying, and the debug-only checks in AudioBus accessors should be upgraded to mandatory checks that terminate the process in release builds.

How it was found

  1. Compromise a renderer process.
  2. Connect to the media interface factory and create an audio encoder bound to the GPU process.
  3. Initialize the encoder with an AAC codec.
  4. Craft an audio buffer with a bitstream sample format, a large frame count, and a minimal data payload.
  5. Send the buffer via the Encode method.
  6. Receive the encoded buffers and decode them to recover uninitialized GPU heap memory.

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 renderer is the part of a browser that runs web pages. If an attacker can take control of it, they can send special messages to the GPU process, which handles graphics and audio. Here, a missing size check lets the attacker make the GPU process read and send back leftover memory that was never cleared, which might contain secrets.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.