Uninitialized Use in Media (CVE-2026-13970)
A logic error in the audio ring buffer's capacity increase routine causes the write pointer to skip newly allocated blocks when the buffer is full, so uninitialised heap memory is later handed to the renderer. A compromised renderer could read raw heap bytes from the Audio Service process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 46 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 logic error in media::AudioBlockFifo::IncreaseCapacity incorrectly updates internal pointers when resizing a full ring buffer. This leads to new buffer blocks being skipped during write operations, causing uninitialized heap memory to be leaked to the renderer process.
Affected files:
media/base/audio_block_fifo.ccmedia/audio/pulse/pulse_input.ccservices/audio/input_sync_writer.cc
Estimated timestamp from git blame: 2014-09-19
Background
media::AudioBlockFifo is a ring buffer used to manage AudioBus objects for audio capture and playback. It supports dynamic capacity expansion via the IncreaseCapacity() method. Pointers read_block_ and write_block_ track the next block to be consumed and written, respectively. When the FIFO is full, read_block_ == write_block_.
Root Cause Analysis
The vulnerability exists in media/base/audio_block_fifo.cc within the IncreaseCapacity() function:
void AudioBlockFifo::IncreaseCapacity(int blocks) {
// ... (New uninitialized blocks are appended to audio_blocks_)
const int original_size = audio_blocks_.size();
// ...
std::rotate(audio_blocks_.begin() + read_block_,
audio_blocks_.begin() + original_size, audio_blocks_.end());
// Update the write pointer if it is on top of the new inserted blocks.
if (write_block_ >= read_block_)
write_block_ += blocks;
// Update the read pointers correspondingly.
read_block_ += blocks;
// ...
}
When IncreaseCapacity() is called on a full FIFO, write_block_ == read_block_. The std::rotate call moves existing data blocks to the end of the vector and places the newly allocated, uninitialized blocks starting at the original read_block_ index.
However, because write_block_ >= read_block_ evaluates to true, write_block_ is incremented by blocks. This makes write_block_ point to the same index as the new read_block_ (the start of the old data), effectively skipping over the newly inserted uninitialized blocks. Subsequent Push() calls will overwrite the oldest existing data rather than filling the new blocks.
Since available_blocks_ is correctly incremented based on the amount of data pushed, the FIFO eventually allows Consume() to return the unwritten blocks. These blocks contain uninitialized heap residue because they were created using AudioBus::Create, which uses base::AlignedUninit<float> internally.
Potential Exploit Path
An attacker with control over a renderer process could potentially trigger this leak in the Audio Service (a utility process on Linux and macOS) as follows:
- Open an audio input capture stream (e.g., via WebAudio or MediaDevices) with a small buffer size.
- Induce scheduling jitter or pause the renderer's audio consumption to fill the Audio Service's FIFO.
- Send a large burst of audio data that forces the Audio Service to dynamically increase the FIFO capacity while it is full (reachable via
PulseAudioInputStream::ReadDataon Linux orAudioLowLatencyInputApple::Captureon macOS). - The miscalculated pointers cause uninitialized blocks to be passed to
InputSyncWriter::WriteDataToCurrentSegment. InputSyncWritercopies this uninitialized data into a shared memory region mapped by the renderer, allowing the attacker to read raw heap bytes from the Audio Service.
Impact
This is a potential high-severity information leak. A compromised renderer can recover sensitive heap data (including pointers or residue from other origins) from the Audio Service process. On Linux, this can facilitate ASLR bypass for further attacks against the sandboxed Audio Service.
Suggested Fix
The write pointer should only be incremented if it is strictly greater than the read pointer, or the pointer logic should be redesigned to explicitly account for the full-buffer state. A simple change to if (write_block_ > read_block_) in IncreaseCapacity() may resolve the immediate issue.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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.
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 write pointer is incremented whenever it is greater than or equal to the read pointer, so in the full-buffer case (where they are equal) it jumps past the newly inserted uninitialised blocks.
Impact
A compromised renderer could recover sensitive heap data from the Audio Service process, which on Linux may help bypass ASLR; the text notes the Audio Service is sandboxed.
What the attacker needed
Compromised renderer process; audio input capture permission; Linux or macOS target
The fix
The write pointer should only be advanced when it is strictly greater than the read pointer, or the pointer logic should be redesigned to handle the full-buffer case.
How it was found
- Open an audio input capture stream with a small buffer size.
- Pause or slow the renderer's audio consumption so the Audio Service FIFO fills up.
- Send a large burst of audio data to force a capacity increase while the FIFO is full.
- The mis-set pointers cause uninitialised blocks to be written into shared memory the renderer can read.
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 ring buffer is a fixed-size queue that wraps around; when it needs to grow, new empty slots are added. A mistake in the pointer arithmetic meant those new empty slots were skipped, and later the queue returned memory that had never been written to. That leftover memory can contain old data from the audio service, which the attacker's page could then read.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.