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.ccservices/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.
// 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:
// 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
- An attacker compromises a process with access to the
video_capture.mojom.VideoSourceProviderinterface. On ChromeOS, this interface is brokered to thertanalyticsdaemon via theMediaPerceptionControllerClientto support media perception features. - The attacker calls
GetSourceInfos()to identify thedevice_id(typically a HAL string or system path) of a physical camera. - The attacker registers a virtual device using that same
device_idviaAddSharedMemoryVirtualDevice(). - 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.
- The attacker injects arbitrary video frames. Because the physical camera was never opened, its hardware activity LED remains off, enabling silent spoofing.
- 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
- Collision Check: Implement validation in
VirtualDeviceEnabledDeviceFactory::Add*VirtualDeviceto ensure that a virtual device cannot be registered with an ID that matches an existing physical or virtual device. - Update Stop Logic: Modify
VirtualDeviceEnabledDeviceFactory::StopDeviceto look up the ID invirtual_devices_by_id_. If a virtual device is found, callStopDevice()on the correspondingVirtualDeviceEntryto 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.
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
- Compromise a process that can reach the VideoSourceProvider interface.
- Call GetSourceInfos() to learn the device ID of a physical camera.
- Register a virtual device using that same device ID.
- Wait for a victim application to request the camera and receive the virtual device.
- Inject arbitrary frames while the real camera stays closed and its LED stays off.
- 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.