Incorrect reference resolution in Speech (CVE-2026-79103)
A browser-process singleton caches a single Mojo remote for on-device speech recognition, and the delegate resolves the profile using a fallback that never returns an incognito profile. A compromised renderer in one profile could have its speech recognition pipes routed to another profile's utility process, bypassing cross-profile and incognito isolation.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential vulnerability exists where on-device Web Speech recognition can route Mojo pipes from one profile to the SODA utility process of a different profile. This is caused by the browser-process singleton caching a single per-profile remote and the delegate resolving the wrong profile using a fallback method. If successfully exploited, this could allow a compromised renderer to bypass incognito or cross-profile isolation.
Affected files:
content/browser/speech/speech_recognition_manager_impl.ccchrome/browser/speech/chrome_speech_recognition_manager_delegate.cccontent/browser/speech/speech_recognition_manager_impl.h
Estimated timestamp from git blame: 2024-08-01
Summary
A potential cross-profile and incognito isolation bypass exists in the on-device Web Speech recognition pathway. Two compounding defects can cause renderer-owned Mojo pipes from one profile's browser context to be misrouted to the kSpeechRecognition utility process of a different profile.
Root Causes
-
Process-wide singleton caches a per-profile Mojo Remote: The
SpeechRecognitionManagerImplclass is a browser-process singleton. It contains a membermojo::Remote<media::mojom::SpeechRecognitionContext> speech_recognition_context_(content/browser/speech/speech_recognition_manager_impl.h), which is bound once behind anis_bound()guard and never reset:C++ // content/browser/speech/speech_recognition_manager_impl.cc if (!speech_recognition_context_.is_bound()) { ... speech_recognition_mgr_delegate->BindSpeechRecognitionContext( std::move(speech_recognition_context_receiver), config.language); }Because it is bound only on the first request and subsequently reused, all future on-device Web Speech requests browser-wide from any profile will reuse this single cached Remote.
-
Delegate resolves the wrong profile context: Even on the initial bind, the delegate does not receive or use the originating frame's
BrowserContext. Instead, it resolves the profile using a fallback method:C++ // chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc auto* profile = ProfileManager::GetLastUsedProfileIfLoaded(); auto* factory = SpeechRecognitionServiceFactory::GetForProfile(profile); factory->BindSpeechRecognitionContext(std::move(receiver));ProfileManager::GetLastUsedProfileIfLoaded()returns the profile corresponding to the most recently activated on-disk window, which does not necessarily match the requesting frame's profile and will never return an Off-The-Record (Incognito) profile.
Potential Attack Steps
Note: These are potential steps as we have not executed functional proof-of-concept exploit code:
- SODA (Speech On-Device API) is installed on the user's system.
- A compromised renderer running in Profile B (e.g., an Incognito window or a secondary profile) invokes
media::mojom::SpeechRecognizer::Startwithon_device=trueover theSpeechRecognitionDispatcherHostinterface. - The browser process receives the request and, in
SpeechRecognitionManagerImpl::CreateSession, triggers the first-time bind ofspeech_recognition_context_if it is currently unbound. - The delegate resolves the profile using
ProfileManager::GetLastUsedProfileIfLoaded(), which returns Profile A (the last active regular profile). - The Mojo pipes (
session_receiver,client_remote,audio_forwarder) originating from Profile B are forwarded directly into Profile A's SODA utility process. - Any subsequent on-device Web Speech requests from any profile reuse the cached
speech_recognition_context_, permanently routing their sessions into Profile A's utility process.
Impact
A compromised renderer in one profile can bypass the cross-profile and incognito boundaries to interact with another profile's utility process. Standalone impact is limited, but if chained with a separate memory corruption primitive within the SODA utility process, it could elevate a single-profile compromise to a cross-profile or regular-profile compromise from an Incognito session.
Suggested Fix
- Pass the initiating frame's
BrowserContextor its identifier down through theSpeechRecognitionSessionConfigduring session creation. - Update
SpeechRecognitionManagerImplto maintain a map ofSpeechRecognitionContextremotes keyed byBrowserContext(or manage the remote lifecycle within the delegate). - Update the delegate's
BindSpeechRecognitionContextmethod signature to accept theBrowserContextand bind to the correct profile-keyed service instance rather than falling back toGetLastUsedProfileIfLoaded().
Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf
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 a process-wide singleton caches a per-profile Mojo remote and the delegate resolves the profile with a fallback that ignores the requesting frame's BrowserContext.
Impact
A compromised renderer in one profile could bypass cross-profile and incognito boundaries to interact with another profile's utility process; standalone impact is limited, but chaining with a memory corruption primitive in the SODA utility process could elevate a single-profile compromise to a cross-profile or regular-profile compromise from an incognito session.
What the attacker needed
SODA installed on the system; compromised renderer in a non-default profile; on-device speech recognition enabled
The fix
The fix should pass the initiating frame's BrowserContext through session creation, keep a map of remotes keyed by BrowserContext, and bind the delegate to the correct profile-keyed service instead of using GetLastUsedProfileIfLoaded.
How it was found
- SODA is installed on the user's system.
- A compromised renderer in Profile B invokes Start with on_device=true over the SpeechRecognitionDispatcherHost interface.
- The browser process receives the request and triggers the first-time bind of the cached remote if unbound.
- The delegate resolves the profile using GetLastUsedProfileIfLoaded, returning Profile A.
- The Mojo pipes from Profile B are forwarded into Profile A's SODA utility process.
- Subsequent requests from any profile reuse the cached remote and are routed into Profile A's utility 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 you use speech recognition in the browser, the page talks to a separate helper process that does the listening. This report found that the browser reuses one connection for all profiles and picks the wrong profile when setting it up, so a malicious page in one profile could end up talking to another profile's helper. That breaks the separation between normal and private browsing windows.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.