Inappropriate implementation in USB (CVE-2026-9976)
A malicious website could send a raw SET_CONFIGURATION control transfer to a USB device, bypassing Chromium's tracking of the active configuration. This allowed the site to claim and communicate with protected interface classes such as HID or Mass Storage, potentially enabling keystroke injection.
Overview: A potential vulnerability in WebUSB allows a renderer to desynchronize the browser's model of a USB device's active configuration. By sending a raw SET_CONFIGURATION control transfer, an attacker can bypass security checks and gain access to protected interface classes like HID or Mass Storage on multi-configuration devices.
Affected files:
services/device/usb/mojo/device_impl.cc
services/device/usb/usb_device.cc
services/device/usb/usb_device_handle_usbfs.cc
services/device/usb/usb_device_handle_android.cc
Estimated timestamp from git blame: 2026-03-24
Summary
A state desynchronization vulnerability exists in the Chromium WebUSB implementation. A malicious website can send a raw SET_CONFIGURATION control transfer to a connected USB device, bypassing the browser's active configuration tracking. This leads to a bypass of the blocked_interface_classes_ check in DeviceImpl::ClaimInterface and subsequent control transfers, allowing a website to communicate with protected device classes such as HID or Mass Storage.
Vulnerability Details
The core of the issue lies in DeviceImpl::HasControlTransferPermission (services/device/usb/mojo/device_impl.cc). This function validates whether a control transfer requested by the renderer should be allowed.
Missing bRequest check:HasControlTransferPermission unconditionally permits all STANDARD type requests to the DEVICE recipient. Crucially, the function signature does not accept the request byte parameter, so it cannot distinguish between benign requests (like GET_DESCRIPTOR) and state-altering requests like SET_CONFIGURATION (bRequest = 0x09).
State Desynchronization: When a renderer calls device.controlTransferOut with request: 0x09 (SET_CONFIGURATION), the request is permitted and forwarded directly to the physical device. The device changes its configuration. However, because this request bypassed the official device.selectConfiguration() path (which uses DeviceImpl::SetConfiguration), Chromium's internal model of the active configuration (device_info_->active_configuration) is never updated. It remains stuck on the previous configuration.
Security Bypass: When the renderer subsequently calls device.claimInterface(n), DeviceImpl::ClaimInterface validates the requested interface against the stale active configuration. If interface n in the old configuration has a non-blocked class (e.g., Vendor Specific), but interface n in the new physical configuration has a protected class (e.g., HID), the browser incorrectly permits the claim. Subsequent class-specific control transfers are also validated against this stale model, allowing full communication with the protected interface.
Note: On Linux/Android, the kernel's usbfs also maintains a stale active configuration state because the raw USBDEVFS_SUBMITURB bypasses the kernel's tracking (which requires USBDEVFS_SETCONFIGURATION). This allows the USBDEVFS_CLAIMINTERFACE ioctl to succeed despite the mismatch.
Impact
An attacker can gain unauthorized access to protected USB interface classes (including Audio, HID, Mass Storage, Smart Card, and Video) on multi-configuration devices. For HID devices, this can allow for keyboard/mouse emulation and arbitrary keystroke injection into the host OS, completely subverting the primary security boundary of WebUSB. This requires the user to have granted the site access to the specific USB device.
Prerequisites
The victim must have a USB device connected that has at least two configurations.
The device must expose an interface (e.g., interface 0) with a non-blocked class (e.g., 0xFF Vendor Specific) in one configuration, and a protected class (e.g., 0x03 HID) at the same interface index in another configuration.
The user must grant the malicious website access to the device via the WebUSB permission prompt.
Potential Steps to Reproduce
(Note: These are suggested steps based on code analysis; a full PoC has not been executed in this environment).
Connect a multi-configuration USB device matching the prerequisites (Config 1: Interface 0 is Vendor Specific; Config 2: Interface 0 is HID).
On a malicious website, request WebUSB access and open the device (it starts in Config 1).
Send a raw SET_CONFIGURATION transfer to switch to Config 2:
JavaScript
Update the signature of DeviceImpl::HasControlTransferPermission to include the uint8_t request parameter.
In HasControlTransferPermission, explicitly block raw control transfers where request is SET_CONFIGURATION (0x09) or SET_INTERFACE (0x0B).
Renderers must be forced to use the dedicated Mojo methods (SetConfiguration, SetInterfaceAlternateSetting) for these operations, ensuring that the internal configuration and interface tracking state is properly updated.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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.
Generating the AI write-up for this report.
This usually takes about 50 seconds. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
How it worked
Root cause
Likely the permission check for control transfers did not inspect the request code, so state-changing requests like SET_CONFIGURATION were allowed and the browser's internal model of the active configuration became stale.
Impact
An attacker could gain unauthorised access to protected USB interface classes, and for HID devices this could allow keyboard or mouse emulation and arbitrary keystroke injection into the host OS, though the user must first grant the site access to the device.
What the attacker needed
USB device with at least two configurations; Interface 0 is non-blocked in one config, protected in…; User grants WebUSB permission to the site
The fix
The permission check should be updated to receive the request code and explicitly block raw SET_CONFIGURATION and SET_INTERFACE transfers, forcing renderers to use the dedicated methods that keep the browser's state in sync.
How it was found
Connect a multi-configuration USB device where interface 0 is Vendor Specific in one configuration and HID in another.
On a malicious website, request WebUSB access and open the device.
Send a raw SET_CONFIGURATION control transfer to switch to the second configuration.
Claim interface 0, which the browser validates against the stale first configuration and allows.
Send class-specific control transfers to interface 0 to inject malicious payloads such as HID reports.
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.
Generating the AI write-up for this report.
This usually takes about 50 seconds. You can read the original meanwhile; this page updates itself.
Writing the technical write-up
Writing the version for beginners
Checking every passage against the original
WebUSB lets websites talk to USB devices after you give permission. The browser keeps track of which device mode is active to block dangerous interfaces like keyboards. The bug let a site secretly switch the device to a different mode without the browser noticing, so it could then use a protected interface.
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.
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.