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

Policy bypass in USB (CVE-2026-13951)

The SetInterfaceAlternateSetting Mojo method in the USB Device service did not check the protected interface class list, and on Linux-based platforms the backend did not verify that an interface was claimed before issuing a SET_INTERFACE ioctl. A compromised renderer could therefore bypass WebUSB protections and send SET_INTERFACE commands to blocked device interfaces such as HID, Smart Card or Audio.

Google Chrome

Originally disclosed on Chrome VRP

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

Overview: The SetInterfaceAlternateSetting Mojo method in the USB Device service lacks a policy check for protected interface classes. On Linux, Android, and ChromeOS, this allows a compromised renderer to bypass WebUSB protections and issue SET_INTERFACE commands to blocked devices.

Affected files:

  • services/device/usb/mojo/device_impl.cc
  • services/device/usb/usb_device_handle_usbfs.cc

Estimated timestamp from git blame: 2021-03-03

Description

A vulnerability in the WebUSB implementation potentially allows a compromised renderer to bypass protected interface class restrictions (e.g., HID, Smart Card, Audio) on Linux-based platforms, including ChromeOS and Android. The issue stems from a missing policy check in the Mojo handler combined with platform-specific behavior in the Linux kernel's usbfs driver.

The WebUSB security model relies on a blocked_interface_classes_ list to prevent access to sensitive device interfaces. While methods like ClaimInterface and ControlTransfer (via HasControlTransferPermission) correctly enforce this policy, the SetInterfaceAlternateSetting handler in services/device/usb/mojo/device_impl.cc fails to perform this check.

Furthermore, on Linux, Android, and ChromeOS, the backend implementation in services/device/usb/usb_device_handle_usbfs.cc does not verify if an interface has been claimed before attempting the operation. This is significant because the Linux kernel usbfs driver automatically claims an interface for the calling process if it is currently unclaimed when a USBDEVFS_SETINTERFACE ioctl is issued. This allows an attacker to bypass the userspace "claim" requirement, which is the primary gate where the protected class check is normally enforced.

Potential Attack Steps

  1. Renderer Compromise: An attacker first gains code execution within a Chromium renderer process.
  2. Mojo Interface Acquisition: The attacker obtains a device.mojom.UsbDevice Mojo remote for a device the user has previously granted access to (e.g., a composite device with both vendor and protected interfaces).
  3. Target Selection: The attacker identifies a protected-class interface (e.g., HID) on the device.
  4. Mojo Call Injection: The attacker directly invokes SetInterfaceAlternateSetting targeting the protected interface number, bypassing higher-level Blink checks.
  5. Policy Bypass: On Linux-based platforms, the browser process receives the call, fails to validate it against the protected class list, and issues the USBDEVFS_SETINTERFACE ioctl. The kernel then auto-claims the interface and sends the SET_INTERFACE control transfer to the physical hardware.

Impact

This could allow an attacker to bypass the kWebUsbProtectedClassControlTransferBlock policy. While the impact is limited to triggering SET_INTERFACE standard control transfers, this represents a direct violation of the WebUSB security model and allows manipulation of protected device states.

Suggested Fix

  1. In services/device/usb/mojo/device_impl.cc, update DeviceImpl::SetInterfaceAlternateSetting to validate the target interface against blocked_interface_classes_, consistent with the logic in ClaimInterface.
  2. In services/device/usb/usb_device_handle_usbfs.cc, update UsbDeviceHandleUsbfs::SetInterfaceAlternateSetting to verify that the interface is already claimed by the current handle (by checking the interfaces_ map) before proceeding with the ioctl.

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 a missing policy check in the Mojo handler combined with the Linux usbfs driver auto-claiming an unclaimed interface, so the protected-class gate enforced at claim time was never reached.

Impact

This could allow an attacker to bypass the protected class control transfer policy, though the impact is limited to triggering SET_INTERFACE standard control transfers and requires an already compromised renderer.

What the attacker needed

Compromised renderer process; user previously granted access to the device; device has a protected-class interface; Linux, Android or ChromeOS platform

The fix

The report suggests adding a blocked_interface_classes_ check in DeviceImpl::SetInterfaceAlternateSetting and verifying the interface is already claimed in UsbDeviceHandleUsbfs::SetInterfaceAlternateSetting; the text does not say it was fixed.

How it was found

  1. Gain code execution inside a Chromium renderer process.
  2. Obtain a Mojo remote for a USB device the user has already granted access to.
  3. Identify a protected-class interface on that device.
  4. Invoke SetInterfaceAlternateSetting directly against the protected interface number.
  5. The browser process fails to validate the call and issues the SET_INTERFACE ioctl, which the kernel auto-claims and forwards to the hardware.

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.

WebUSB lets websites talk to USB devices, but some device interfaces (like keyboards or smart card readers) are deliberately blocked so a malicious page cannot control them. This report found that one specific command path skipped the check that enforces that block, so a page that had already broken out of its sandbox could still send a command to a blocked interface. The fix is to add the missing check in two places.

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.