Uninitialized Use in Audio (CVE-2026-11141)
A compromised renderer could request a loopback audio stream with more channels than the source, causing the audio service to send uninitialized heap memory to the renderer. This could leak sensitive data such as pointers or tokens, aiding in bypassing ASLR and sandbox escape.
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 compromised renderer can potentially leak uninitialized heap memory from the Audio Service by requesting a loopback stream with a higher discrete channel count than the source stream. Due to a flaw in channel mixing strategy selection, the audio resampler fails to overwrite all channels in the uninitialized output buffer. This leaves uninitialized heap data in the remaining channels, which is subsequently transferred to the renderer via shared memory.
Affected files:
services/audio/snooper_node.ccmedia/base/multi_channel_resampler.ccservices/audio/loopback_stream.ccservices/audio/loopback_signal_provider.ccservices/audio/input_sync_writer.ccmedia/base/audio_bus.cc
Estimated timestamp from git blame: 2025-12-12
Summary
There is a potential information leak in the Chrome audio service's loopback mechanism. When a renderer requests a loopback stream using CHANNEL_LAYOUT_DISCRETE with a higher channel count than the source stream, SnooperNode incorrectly assumes that no channel mixing is required. Consequently, the audio resampler only populates a subset of the output buffer's channels. The remaining channels retain uninitialized heap memory, which is then copied into a shared memory region accessible by the renderer.
Vulnerability Details
- Flawed Strategy Selection: In
services/audio/snooper_node.cc, theSnooperNodeconstructor selects aChannelMixStrategyby comparing thechannel_layout()of the input and output parameters. If both areCHANNEL_LAYOUT_DISCRETE, they compare as equal even if their channel counts differ. As a result,ChannelMixStrategy::kNoneis incorrectly selected for mismatched channel counts. - Uninitialized Memory Allocation: In
services/audio/loopback_stream.cc, theLoopbackSignalForwarderconstructor allocates amix_bus_usingmedia::AudioBus::Create. Under the hood (media/base/audio_bus.cc), this usesbase::AlignedUninit<float>, meaning the allocated memory is not zeroed and contains whatever heap data previously occupied the space. - Bypassed Zeroing: During
SnooperNode::Render(), theoutput_bus(which is the uninitializedmix_bus_) is only explicitly zeroed if recording has not yet started (estimated_output_position == kNullPosition). If the source stream has already sent data (SnooperNode::OnDatahas been called), this zeroing is bypassed. - Partial Resampling: Because
ChannelMixStrategy::kNonewas selected,Render()passes the output bus directly toMultiChannelResampler::Resample. However, the resampler is initialized with the minimum of the input and output channel counts. If the input has 1 channel and the output has 32, the resampler only processes and overwrites the first channel. Channels 1 through 31 remain entirely untouched and uninitialized. - Data Transfer: Finally,
InputSyncWriter::WriteDataToCurrentSegmentusesmedia::AudioBus::CopyToto copy the entire 32-channel bus into anUnsafeSharedMemoryRegion. The uninitialized heap data is sent to the renderer process.
Impact
A compromised renderer with a valid media capture session (e.g., getDisplayMedia()) could read sensitive audio service heap data.
- On ChromeOS and Android, the audio service runs within the browser process.
- On Linux, it runs as an unsandboxed utility process.
The leak could be up to ~95MB per packet (32 channels * 768,000 frames). This uninitialized memory could contain pointers, tokens, or previously freed cross-origin audio data, providing a powerful primitive for bypassing ASLR and aiding in a sandbox escape.
Suggested Reproduction Steps
Note: Our tooling agent does not have the ability to run code, so these are potential steps to trigger the issue based on code analysis.
- From a compromised renderer with a
getDisplayMediasession, create an active audio output stream withformat=AUDIO_FAKE,channel_layout=CHANNEL_LAYOUT_DISCRETE, andchannels=1. - Request a loopback stream via
RendererAudioInputStreamFactory.CreateStreamusingchannel_layout=CHANNEL_LAYOUT_DISCRETEandchannels=32. - Call
AudioInputStream.Record()to start the loopback stream. - Because the source stream is already active,
SnooperNode::OnDatawill trigger beforeSnooperNode::Render, bypassing the zero-fill safety check. - Read the resulting audio data from the
UnsafeSharedMemoryRegion. Channel 0 will contain the resampled audio, while channels 1-31 will contain leaked heap memory from the audio service process.
Suggested Fix
In services/audio/snooper_node.cc, update the condition for selecting ChannelMixStrategy::kNone to explicitly require that both the channel layouts and the channel counts match:
channel_mix_strategy_(
(input_params_.channel_layout() == output_params_.channel_layout() &&
input_params_.channels() == output_params_.channels())
? ChannelMixStrategy::kNone
: ((output_params_.channels() < input_params_.channels())
? ChannelMixStrategy::kBefore
: ChannelMixStrategy::kAfter)),
Alternatively, ensure that mix_bus_ is explicitly zeroed (e.g., using mix_bus_->Zero()) upon creation in LoopbackSignalForwarder, or that SnooperNode::Render zeros any channels that the resampler will not overwrite.
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.
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 channel mixing strategy selection incorrectly treats discrete channel layouts with different channel counts as equal, so the resampler only fills part of the output buffer, leaving the rest uninitialized.
Impact
A compromised renderer could read sensitive audio service heap data, potentially containing pointers, tokens, or cross-origin audio data, which could aid in bypassing ASLR and sandbox escape; on ChromeOS and Android the audio service runs in the browser process, and on Linux as an unsandboxed utility process.
What the attacker needed
Compromised renderer; valid media capture session (e.g., getDisplayMedia)
The fix
The channel mixing strategy selection should require both channel layouts and channel counts to match, or the output buffer should be explicitly zeroed.
How it was found
- From a compromised renderer with a getDisplayMedia session, create an active audio output stream with format=AUDIO_FAKE, channel_layout=CHANNEL_LAYOUT_DISCRETE, and channels=1.
- Request a loopback stream via RendererAudioInputStreamFactory.CreateStream using channel_layout=CHANNEL_LAYOUT_DISCRETE and channels=32.
- Call AudioInputStream.Record() to start the loopback stream.
- Because the source stream is already active, SnooperNode::OnData will trigger before SnooperNode::Render, bypassing the zero-fill safety check.
- Read the resulting audio data from the UnsafeSharedMemoryRegion. Channel 0 will contain the resampled audio, while channels 1-31 will contain leaked heap memory from the audio service 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.
When a program allocates memory, it sometimes contains leftover data from previous use. If that data is sent to an attacker, it can reveal secrets. Here, a bug in audio channel mixing caused such leftover memory to be shared with a malicious web page.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.