Incomplete cleanup in GetUserMedia (CVE-2026-91730)
After a site's camera permission is revoked while another cross-site renderer keeps the same camera active, the revoked renderer's previously mapped writable shared-memory buffer is reused for the remaining site's frames. A compromised renderer can therefore read and modify another site's post-revocation camera pixels.
Originally disclosed on Chrome VRP
- Fix shipped in 40 days
Report description
[Compromised renderer][Linux] Camera permission revocation leaves stale cross-site frame-buffer access
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
The problem
Please describe the technical details of the vulnerability
Summary and prerequisites
Mallory controls site A and already has native code execution inside A's sandboxed renderer. A was legitimately allowed to use the camera, but the user then changes A's camera permission to Block while independently authorized cross-site renderer B keeps the same physical camera active. Chrome ends A's track and stops sending A frame callbacks, yet A's previously mapped writable camera backing is reused for later B-only frames. A can read those pixels and modify bytes that B consumes.
The tested topology was:
- Linux x86-64 and the ordinary unsafe-shared-memory camera path;
- two researcher-owned loopback sites,
127.0.0.1for A andlocalhostfor B; - A and B in distinct sandboxed renderer processes under
--site-per-process; - both sites initially granted camera permission for the same deterministic fake camera;
- native execution in A's renderer, represented by the exact Blink features
MojoJS,MojoJSTestand a transparentVideoCaptureHostinterceptor; and - only A's permission changed to Block while B remained authorized and kept capture active.
The MojoJS features make the operation of an already compromised renderer observable from a file PoC. They do not grant a browser-side camera capability that native code in A would otherwise lack: A's process already receives the shared-memory handle while authorized. The test did not patch Chrome, disable the renderer sandbox, compromise B, or contact a third-party target.
The expected security boundary is: after browser-owned permission state removes A from the camera session, future frames authorized only for B must not remain readable or writable through a capability Chrome previously gave A.
Root cause and source-to-sink lifecycle
The failure is a capability-lifetime mismatch between permission/session state and a writable shared-memory mapping:
MediaStreamManager::PermissionChangedCallback()incontent/browser/renderer_host/media/media_stream_manager.cccancels A's browser-owned request when its camera permission is no longer granted.VideoCaptureController::StopSession()andRemoveClient()incontent/browser/renderer_host/media/video_capture_controller.ccmark A closed, sendOnEnded(), return A's recorded consumer holds, and erase A's client. Later normal frame callbacks skip A. These operations update Chrome's logical state; they cannot unmap pages already mapped in a hostile renderer.VideoCaptureManager::GetOrCreateController()incontent/browser/renderer_host/media/video_capture_manager.ccreuses a controller by media type and physical device ID. Origin,RenderFrameHost, and permission principal are not isolation keys, so B keeps the same controller and pool alive after A leaves.VideoCaptureController::BufferContext::CloneBufferHandle()duplicates the sameUnsafeSharedMemoryRegionbacking for renderer clients on the tested Linux path. The resulting region is writable. Closing Chrome's duplicate handles does not revoke A's existing mapping.VideoCaptureBufferPoolImpl::ReserveForProducerInternal()inmedia/capture/video/video_capture_buffer_pool_impl.ccreuses a compatible backing after producer/consumer accounting says it is available. Chrome does not rotate or retire every backing generation exposed to A when the authorized principal set shrinks.- B's later frame is exposed through its ordinary
VideoFramepath. A's retained mapping contains the same complete pixel payload, and a store through A's mapping changes bytes returned by B's subsequentVideoFrame.copyTo().
The observed runtime sequence is:
A and B independently receive camera permission at distinct sites
-> Chrome places them in distinct sandboxed renderer processes
-> both clients share the same physical-device controller and pool
-> A maps a writable UnsafeSharedMemoryRegion received while authorized
-> Chrome changes only A's permission to denied
-> A's track ends and its frame-callback count stops
-> B remains authorized and holds a later I420 VideoFrame
-> A's retained mapping hashes to B's complete 115,200-byte payload
-> A writes 64 luma bytes and reads the marker back
-> B's second VideoFrame.copyTo() observes exactly those 64 changes
Verified versions and runtime evidence
The direct renderer proof reproduced in unmodified Chrome for Testing 152.0.7973.0 and 153.0.7982.0 on Linux x86-64, 10/10 fresh processes for each build. In the M153 runs, A matched the complete 115,200-byte I420 payload held by B, wrote a bounded 64-byte luma marker through A's retained mapping, read it back, and B's second VideoFrame.copyTo() observed exactly those 64 changes with no changes elsewhere. A and B had distinct renderer PIDs. Each recorded renderer reported NoNewPrivs=1 and Seccomp=2, and the renderer sandbox remained enabled.
Official Chrome for Testing Stable 151.0.7922.71 reproduced the confidentiality and integrity effects in separate 1/1 runs using controlled ptrace instrumentation. The Stable result establishes affected Stable-channel behavior, but the ptrace ancestor was measurement/instruction-delivery instrumentation and is not the report-facing attacker primitive. The direct M152/M153 MojoJS results are the primary renderer-native evidence.
The earliest inspected release source containing the required semantic chain is Chrome 150.0.7871.46. The earliest runtime-confirmed release in the preserved records is Chrome 151.0.7922.71, and the earliest direct-renderer run is Chrome 152.0.7973.0. The first affected version, complete affected range, introducing change, shipped fix, and first fixed release are not established. A public-main recheck dated 2026-08-07 found the authority-bearing path still present; that was source inspection rather than a runtime test and cannot exclude a restricted fix.
Controls and alternative explanations
- A's track ended and its frame-callback count stayed frozen while B advanced. This excludes continued normal frame delivery to A.
- The PoC requires exactly one retained A mapping whose SHA-256 equals B's complete held frame. This excludes attribution based only on allocation size or timing.
- A no-write repeat left B's held frame unchanged.
- Writing the same marker into unrelated A-owned WebAssembly memory left B unchanged.
- A read the marker back through its camera mapping, and B observed exactly 64 changed bytes in the target range with
outsideMarkerChanges=0. - An existing M152 control stopped the final live client and restarted B; writes through A's old mapping then had no effect on B's fresh frame in 10/10 runs. This supports backing replacement after complete teardown, but not after only A's authority is removed while B remains live.
Reproduction
The attached files are poc.html, video_capture_tap.mjs, server.py, and manual_poc_validation_153_7982_fresh_10_summary.json. camera_stable_and_source_evidence.md supplies the version and evidence boundary details.
Use a disposable profile and researcher-owned loopback sites. Place the attachment directory beside a Chrome for Testing extraction named chrome-linux64 and a Chromium checkout named chromium-src, then run from the attachment directory:
python3 server.py --mojo-gen-root ../chromium-src/out/release/gen
In a second terminal, still from the attachment directory:
../chrome-linux64/chrome \
--user-data-dir=./camera-revocation-profile \
--use-fake-device-for-media-stream \
--site-per-process \
--enable-blink-features=MojoJS,MojoJSTest \
'http://127.0.0.1:8000/poc.html?principal=A&version=153.0.7982.0'
Keep Chrome's renderer sandbox enabled. Open http://localhost:8000/poc.html?principal=B in a second tab, then:
- Click Start camera in A and B and grant camera permission to both loopback sites.
- Through Chrome's normal site controls for A, change Camera to Block. Keep B active. Confirm A reports
ended: truewhile B's frame counter continues. - In B, click Hold post-revocation B frame, then copy B's JSON descriptor into A's textarea.
- In A, click Read and write from revoked A.
- In B, click Verify exact B-frame change.
The expected final fields, based on the preserved 10-run M153 record, are:
disposition = CONFIRMED_POST_REVOCATION_CROSS_ORIGIN_READ_WRITE
success = true
changedCount = 64
outsideMarkerChanges = 0
The attached page flow was exercised 10/10 through audit-only automation in fresh Chrome 153.0.7982.0 processes; that automation changed permission through Chrome's protocol API. These report-facing steps instead use the ordinary site-control UI. I did not execute this manual UI sequence again while assembling the package. The PoC changes only a deterministic fake-camera frame held in a disposable local session. Close Chrome and remove camera-revocation-profile after testing.
Remediation
When the authorized renderer/principal set for a still-live camera controller shrinks, Chrome should stop using every backing generation ever exposed to the removed principal before producing another frame for the remaining clients. The producer and pool should allocate a fresh generation, and Chrome should deliver from it only after the old generation can no longer carry B-only payloads. Logical client IDs, returned consumer holds, closed handles, fences, and OnBufferDestroyed() cannot revoke an existing hostile mapping.
Generation rotation repairs post-revocation confidentiality. To provide integrity isolation while mutually distrustful renderers are concurrently authorized, Chrome should also keep producer-writable storage private and deliver read-only per-principal snapshots, copies, or an equivalent isolation mechanism. Read-only delivery alone does not repair confidentiality after A has retained a readable mapping.
Regression coverage should exercise the real permission-change entry point with two different sites sharing one camera. It should verify that A's track ends, B remains live, no old A mapping receives a B-only frame, and an old-mapping write cannot affect B. Explicit stop, renderer disconnect, capture error, and host destruction converge on RemoveClient() and should receive the same generation-retirement check. A last-client teardown/restart case should remain as a control.
Impact analysis
Who can exploit this and what they gain
The attacker is a site-A renderer that was legitimately granted access to one camera and has already suffered native code execution. Site A must overlap with independently authorized cross-site B on the same physical camera long enough for Chrome to expose a production camera-pool backing to A and B. The user must then revoke only A while B remains live. The proof does not supply or claim the initial renderer exploit.
Under those prerequisites, A retains access to pixel data that should belong only to B after A's permission is denied and A's track ends. This crosses two Chrome-enforced boundaries:
- Confidentiality: A reads B's future post-revocation camera payload. In the direct proof, A's retained mapping matched B's complete 115,200-byte I420 frame.
- Integrity: A changes bytes in the shared payload that B consumes. The direct proof changed exactly 64 luma bytes through A's retained mapping, and B's second
VideoFrame.copyTo()returned those 64 changes and no others.
The affected data is B's camera pixel payload on the tested Linux unsafe-shared-memory path. B may display, record, transmit, or process such pixels, but the PoC directly establishes only the frame read and bounded pixel modification; it does not claim that any particular downstream application action occurred.
Reliability and controls
The direct renderer path succeeded in 10/10 fresh Chrome 152.0.7973.0 processes and 10/10 fresh Chrome 153.0.7982.0 processes. Stable 151.0.7922.71 separately reproduced confidentiality 1/1 and integrity 1/1 with controlled ptrace instrumentation. These counts describe the controlled Linux fake-camera topology, not general production prevalence.
The M153 runs placed A and B in distinct renderer PIDs and recorded NoNewPrivs=1 and Seccomp=2 for both. A's track ended and its callback count stopped after revocation while B advanced, excluding ordinary late delivery. The PoC required a full-frame SHA-256 match before writing, excluding a size-only alias guess. A no-write repeat and an unrelated WebAssembly-memory write left B unchanged. The positive case changed exactly the selected 64 bytes with outsideMarkerChanges=0. After the last live client was stopped and B restarted in an existing M152 control, A's old mapping no longer affected B's new frame in 10/10 runs; this distinguishes the vulnerable principal-set shrink from complete teardown.
Constraints and explicit non-claims
Exploitation requires all of the following:
- native code execution in renderer A;
- prior legitimate camera authorization for A;
- independently authorized cross-site B in another renderer;
- use of the same physical camera with enough overlap to share one controller/pool; and
- revocation of A while B keeps capture active.
Only Linux's ordinary unsafe-shared-memory camera path was dynamically demonstrated. Other operating systems and capture backings were not tested. The controlled PoC used a deterministic fake camera, loopback origins, --site-per-process, and the MojoJS,MojoJSTest features to represent a compromised renderer. It did not patch the browser or disable its renderer sandbox.
This report does not claim:
- an ordinary-JavaScript camera permission bypass;
- the preceding renderer exploit;
- arbitrary process-memory read or write;
- camera frame-metadata corruption;
- browser-process or GPU-process compromise;
- native execution outside A;
- an OS renderer sandbox escape;
- a demonstrated effect on every capture backend or operating system;
- a measured deployment prevalence; or
- a known first affected version or fixed release.
The narrow demonstrated impact is therefore cross-site, post-revocation confidentiality and integrity loss for camera pixel payloads under the stated compromised-renderer prerequisites.
The cause
What version of Chrome have you found the security issue in?
Chrome for Testing 153.0.7982.0, Linux x86-64 (direct PoC 10/10); also direct on 152.0.7973.0 (10/10). Stable 151.0.7922.71 reproduced with supporting ptrace instrumentation (confidentiality 1/1, integrity 1/1).
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Permissions Bypass
How would you like to be publicly acknowledged for your report?
Keita Sode (SYZD Research)
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 capability-lifetime mismatch: when the authorised principal set shrinks, Chrome updates logical client state but never retires the writable shared-memory backing already mapped into the removed renderer, and the pool reuses it for remaining clients.
Impact
A renderer that already has native code execution could read another site's future camera frames after its own permission is revoked and could alter bytes that site consumes; only the Linux unsafe-shared-memory path was demonstrated.
What the attacker needed
Native code execution in renderer A; A previously granted camera access; cross-site B authorised on same camera; user revokes only A's permission
The fix
Chrome should retire every backing generation exposed to a removed principal before producing frames for remaining clients, and deliver read-only per-principal snapshots for integrity isolation.
How it was found
- Open the two loopback test pages and grant camera permission to both sites.
- Change site A's camera permission to Block through Chrome's site controls while keeping B capturing.
- In B, hold a post-revocation frame and copy its descriptor into A's page.
- In A, read and write through the retained camera mapping.
- In B, verify that exactly the written bytes changed in its held frame.
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 website uses your camera, Chrome hands it a shared block of memory holding the video frames. If you later block that site's camera access, Chrome stops sending it new frames, but the old memory block is not taken away and gets reused for another site's camera. A site that already runs malicious code in its own tab could then peek at, or tamper with, the other site's camera picture.
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.