Skip to content
Access control Advisory Advanced CVE-2026-106262

Incomplete cleanup in GetUserMedia (CVE-2026-106262)

A state-machine flaw in MediaStreamManager means that if a renderer tears down a capture request while a browser-initiated source change is pending, the active device is not closed but the request and its UI proxy are deleted. A compromised renderer could therefore keep receiving tab-capture frames while all sharing indicators disappear.

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 state-machine logic flaw in MediaStreamManager allows a compromised renderer to bypass sharing indicators. When a renderer-initiated teardown occurs while a browser-initiated change-source request is pending, active device cleanup is skipped. This removes all user-facing sharing indicators while leaving the underlying capture session active and accessible.

Affected files:

  • content/browser/renderer_host/media/media_stream_manager.cc
  • chrome/browser/media/webrtc/display_media_access_handler.cc
  • content/browser/renderer_host/media/media_stream_ui_proxy.cc
  • chrome/browser/ui/views/tab_sharing/tab_sharing_ui_views.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Description

A potential state-machine logic flaw in MediaStreamManager allows a compromised renderer to bypass sharing indicators and continuously exfiltrate tab-capture pixels.

When a user initiates a tab-source change (e.g., clicking the "Share this tab instead" button on a browser infobar), MediaStreamManager::PostRequestToUI overwrites the active device's state to MEDIA_REQUEST_STATE_PENDING_APPROVAL on the active DeviceRequest (content/browser/renderer_host/media/media_stream_manager.cc):

C++
if (blink::IsVideoInputMediaType(video_type)) {
  request->SetState(video_type, MEDIA_REQUEST_STATE_PENDING_APPROVAL);
}

If the renderer triggers a teardown (via CloseDevice or StopStreamDevice Mojo IPCs) while this change-source request is pending, CancelRequest (media_stream_manager.cc:2538) or StopDevice (media_stream_manager.cc:2014) skips calling CloseDevice because the state is neither MEDIA_REQUEST_STATE_OPENING nor MEDIA_REQUEST_STATE_DONE:

C++
const MediaRequestState state = request->state(device.type);
if (state != MEDIA_REQUEST_STATE_OPENING &&
    state != MEDIA_REQUEST_STATE_DONE) {
  continue; // <-- CloseDevice is skipped
}
CloseDevice(device.type, device.session_id());

However, the teardown path still proceeds to execute DeleteRequest(request_it), which destroys the request and its associated MediaStreamUIProxy. This completely clears all user-facing sharing indicators (such as the infobars and the tab-strip capture glyph). Because CloseDevice was skipped, the underlying capture session in VideoCaptureManager remains active, and the compromised renderer continues to receive video frames silently.

Note: The PENDING_APPROVAL window on the UI thread can be held open for an arbitrary duration by queuing a second getDisplayMedia picker prompt, making the race window highly reliable to hit.

Potential Steps to Trigger / Exploit

Note: The following are suggested, potential steps. Our static analysis tooling is descriptive and does not currently have the capability to run code or execute a live proof of concept.

  1. A compromised renderer initiates tab capture via navigator.mediaDevices.getDisplayMedia({video: true, surfaceSwitching: 'include'}) and begins receiving video frames from VideoCaptureHost::Start(session_id).
  2. The renderer calls getDisplayMedia a second time to prompt another picker. This queues a PendingAccessRequest at the UI side in DisplayMediaAccessHandler::pending_requests_ (chrome/browser/media/webrtc/display_media_access_handler.cc:442).
  3. The user clicks the browser-provided "Share this tab instead" button on another tab's infobar. This invokes TabSharingUIViews::StartSharing (chrome/browser/ui/views/tab_sharing/tab_sharing_ui_views.cc:251) and posts a source-change request back to the IO thread.
  4. The IO thread receives the update request, changes the request type to MEDIA_DEVICE_UPDATE, and overwrites the active device state to MEDIA_REQUEST_STATE_PENDING_APPROVAL (media_stream_manager.cc:2633). This update is forwarded to the UI thread, where it is queued behind the still-open second media picker.
  5. While the second media picker remains open (blocking the queue and holding the state as PENDING_APPROVAL), the compromised renderer sends a Mojo IPC StopStreamDevice or CloseDevice message.
  6. On the IO thread, CancelRequest or StopDevice sees that the request state is PENDING_APPROVAL. It skips calling CloseDevice, meaning the video capture session remains active in VideoCaptureManager. However, it proceeds to call DeleteRequest, destroying the MediaStreamUIProxy and instantly wiping out all visible sharing indicators.
  7. The user eventually dismisses the second picker. The early-return check at HandleAccessRequestResponse (media_stream_manager.cc:3615) prevents the state-restoring fix from running because the request has already been deleted from requests_.
  8. The compromised renderer continues to receive capture frames invisibly.

Potential Impact

A compromised renderer can capture cross-origin tab pixels persistently and invisibly after the user believes sharing has completely stopped, bypassing standard security indicators and browser controls.

Suggested Fix

Ensure that if a DeviceRequest is canceled or stopped while in the MEDIA_REQUEST_STATE_PENDING_APPROVAL state (or any other intermediate state during a dynamic update), any already active/opened devices are still properly closed. Rather than relying solely on the request's pending UI state, MediaStreamManager should track active device sessions independently or check if a session is actively running before skipping CloseDevice in the teardown loop.

Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85


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.

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 teardown code skips closing an active capture device when the request state is PENDING_APPROVAL, yet still deletes the request and its UI proxy, so the capture session outlives the visible indicator.

Impact

A compromised renderer could capture cross-origin tab pixels persistently and invisibly after the user believes sharing has stopped, bypassing the usual sharing indicators.

What the attacker needed

Compromised renderer; user clicks 'Share this tab instead'; second getDisplayMedia picker open

The fix

The teardown logic should close any active device sessions even when the request is in PENDING_APPROVAL or another intermediate state, rather than relying only on the request's UI state.

How it was found

  1. A compromised renderer starts tab capture with getDisplayMedia and receives frames.
  2. The renderer calls getDisplayMedia again to open a second picker and queue a pending request.
  3. The user clicks the browser's 'Share this tab instead' button, which posts a source-change request.
  4. The source-change request sets the active device state to PENDING_APPROVAL and is queued behind the open picker.
  5. While the picker is open, the renderer sends a StopStreamDevice or CloseDevice IPC.
  6. The teardown skips CloseDevice but deletes the request and UI proxy, removing indicators while capture continues.

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 share a tab, the browser shows an indicator so you know it is being captured. This report describes a timing problem where a malicious page can make the browser remove that indicator while the screen capture keeps running in the background. The page would need to already be compromised, but the user would no longer see that sharing is still happening.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.