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

Insufficient validation of untrusted input in Video Capture (CVE-2026-13942)

Virtual video capture devices could be registered with the same device ID as a physical camera, and the factory preferred the virtual entry, so a compromised privileged client could silently spoof camera frames. The stop path also ignored virtual devices, leaving the source stuck in a stopping state and blocking reuse of that device ID.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The Video Capture Service allows virtual devices to register using IDs that collision with physical cameras. This enables a compromised privileged client to silently spoof camera feeds and causes a permanent hang when applications attempt to release the device.

Affected files:

  • services/video_capture/virtual_device_enabled_device_factory.cc
  • services/video_capture/video_source_impl.cc

Estimated timestamp from git blame: 2017-11-21

Summary

A logic vulnerability in VirtualDeviceEnabledDeviceFactory allows virtual video capture devices to shadow physical cameras by registering with a colliding device_id. Because the factory prioritizes virtual devices during device creation and lacks collision checks during registration, a compromised process with access to the VideoSourceProvider interface can silently intercept and spoof camera feeds. Furthermore, a failure to properly handle stop requests for virtual devices in the factory leads to a persistent Denial of Service (DoS) for the affected device ID.

Root Cause Analysis

1. Device Creation Prioritization

In VirtualDeviceEnabledDeviceFactory::CreateDevice(), the factory performs a lookup in its internal virtual device map before falling back to the physical device factory. If an entry is found in the virtual map, it is returned immediately, effectively shadowing any physical hardware with the same ID.

C++
// services/video_capture/virtual_device_enabled_device_factory.cc
void VirtualDeviceEnabledDeviceFactory::CreateDevice(
    const std::string& device_id,
    CreateDeviceCallback callback) {
  auto virtual_device_iter = virtual_devices_by_id_.find(device_id);
  if (virtual_device_iter != virtual_devices_by_id_.end()) {
    VirtualDeviceEntry& device_entry = virtual_device_iter->second;
    DeviceInfo info{device_entry.GetDevice(), media::VideoCaptureError::kNone};
    std::move(callback).Run(std::move(info));
    return;
  }
  return device_factory_->CreateDevice(device_id, std::move(callback));
}

2. Lack of Collision Validation

Methods such as AddSharedMemoryVirtualDevice and AddTextureVirtualDevice accept a caller-supplied device_id (via VideoCaptureDeviceInfo) without validating it against the list of physical devices. This allow a client to choose a device_id that intentionally collisions with existing hardware.

3. Broken Stop Logic (Denial of Service)

The VirtualDeviceEnabledDeviceFactory::StopDevice() method only forwards stop requests to the inner physical factory. It fails to check if the ID corresponds to a virtual device:

C++
// services/video_capture/virtual_device_enabled_device_factory.cc
void VirtualDeviceEnabledDeviceFactory::StopDevice(
    const std::string device_id) {
  device_factory_->StopDevice(device_id);
}

When a virtual device is in use, VideoSourceImpl::StopDeviceAsynchronously() calls this factory method and transitions to the kStoppingAsynchronously state. Because the virtual device is never signaled to stop, it never sends the required OnStopped notification to the BroadcastingReceiver. This causes VideoSourceImpl to hang in the stopping state indefinitely, preventing the camera ID from being reopened.

Potential Attack Scenario

  1. An attacker compromises a process with access to the video_capture.mojom.VideoSourceProvider interface. On ChromeOS, this interface is brokered to the rtanalytics daemon via the MediaPerceptionControllerClient to support media perception features.
  2. The attacker calls GetSourceInfos() to identify the device_id (typically a HAL string or system path) of a physical camera.
  3. The attacker registers a virtual device using that same device_id via AddSharedMemoryVirtualDevice().
  4. When a victim application (e.g., Google Meet) subsequently requests the camera, the Video Capture Service returns the attacker's virtual device instead of the physical hardware.
  5. The attacker injects arbitrary video frames. Because the physical camera was never opened, its hardware activity LED remains off, enabling silent spoofing.
  6. When the victim application closes the camera, the service's internal state hangs, leading to a persistent DoS for that device ID until the service process is restarted.

Note: These are potential steps; our current analysis is based on a review of the source code logic.

Suggested Fix

  1. Collision Check: Implement validation in VirtualDeviceEnabledDeviceFactory::Add*VirtualDevice to ensure that a virtual device cannot be registered with an ID that matches an existing physical or virtual device.
  2. Update Stop Logic: Modify VirtualDeviceEnabledDeviceFactory::StopDevice to look up the ID in virtual_devices_by_id_. If a virtual device is found, call StopDevice() on the corresponding VirtualDeviceEntry to ensure the virtual adapter correctly shuts down and notifies its consumers.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 factory looked up virtual devices before physical ones and never checked for ID collisions on registration, and its stop method only forwarded to the physical factory.

Impact

A compromised privileged client could silently spoof camera feeds without the hardware LED showing activity, and could cause a persistent denial of service for that device ID until the service restarts; the text notes these are potential steps from source review, not a demonstrated exploit.

What the attacker needed

Compromised privileged client process; access to VideoSourceProvider interface; victim app requests the camera

The fix

The report suggests rejecting virtual device IDs that collide with existing physical or virtual devices, and making the stop method look up and stop virtual devices so consumers are notified.

How it was found

  1. Compromise a process that can reach the VideoSourceProvider interface.
  2. Call GetSourceInfos() to learn the device ID of a physical camera.
  3. Register a virtual device using that same device ID.
  4. Wait for a victim application to request the camera and receive the virtual device.
  5. Inject arbitrary frames while the real camera stays closed and its LED stays off.
  6. When the application closes the camera, the source hangs and the ID cannot be reopened.

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 camera service keeps a list of devices, each with an identifier. The code let a program add its own fake camera under the same identifier as a real one, and the service then handed the fake one to apps that asked for the real camera. A second mistake meant closing the fake camera never finished, so that identifier stayed blocked.

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.