Incorrect authorization in USB (CVE-2026-79211)
A WebUSB permission check could be bypassed so that a web page with granted device access could send class control transfers to a protected interface class such as HID. The text claims the earlier fix only covered an invalid interface index, leaving a valid non-protected index on a composite device able to reach the protected interface.
- Fix shipped in 2 months
Steps to reproduce the problem
There are two repro paths. Path A (unit test) is deterministic and needs no hardware — it is the recommended proof. Path B is the real-world web attack on physical hardware.
Path A — Deterministic unit test (no hardware), RECOMMENDED
Add the test below to services/device/usb/mojo/device_impl_unittest.cc. It mirrors the harness
the fix itself uses (the fix only tested index = 0xFF).
Device shape: a composite device whose active configuration has
- interface 0 = class
0xFF(vendor-specific — NOT on the protected blocklist) - interface 1 = class
0x03(HID — protected/blocklisted)
Call:
// CLASS request, recipient = DEVICE, wIndex low byte = 0 (valid, non-protected interface 0)
bool allowed = device_impl_->HasControlTransferPermission(
UsbTransferDirection::INBOUND,
UsbControlTransferType::CLASS,
UsbControlTransferRecipient::DEVICE,
/*request=*/0x01, // e.g. HID GET_REPORT
/*value=*/0x0100,
/*index=*/0x0000); // resolves to interface 0 (not protected)
Expected (correct) result: false (blocked) — the device has a protected interface and the
request to recipient DEVICE cannot be safely routed by wIndex.
Actual result on 151.0.7896.0: true (allowed). FindInterface(config, 0) returns the
non-protected interface 0, FindBlockedClass returns nullopt, the explicit INTERFACE/ENDPOINT
branch is skipped, and !interface is false so the new HasProtectedInterface guard is skipped —
control falls through to return AllowAndLog(kAllowed).
Contrast: the same call with index = 0x00FF (invalid interface) correctly returns false —
that is the only case the 872fabf8 fix and its tests cover.
Path B — Live web reproduction (physical composite device)
Preconditions:
- A composite USB device whose active configuration exposes BOTH a non-protected interface (e.g. vendor/CDC, interface 0) AND a protected-class interface (e.g. HID, interface 1), and whose firmware services the class request on the control endpoint without strictly validating that wIndex names interface 1 (common — e.g. WinUSB forces wIndex to the interface number; many HID stacks act on SET_REPORT/GET_REPORT regardless of the wIndex interface field).
- The user grants the origin access to this device once (normal WebUSB grant).
Page script:
const dev = (await navigator.usb.getDevices())[0]
|| await navigator.usb.requestDevice({ filters: [] });
await dev.open();
await dev.selectConfiguration(1);
// NOTE: we do NOT claimInterface() the protected interface — a DEVICE-recipient
// control transfer requires no interface claim in Blink.
// CLASS request to recipient 'device', wIndex naming the NON-protected interface 0.
const res = await dev.controlTransferIn({
requestType: 'class',
recipient: 'device',
request: 0x01, // e.g. HID GET_REPORT
value: 0x0100,
index: 0x0000 // low byte = interface 0 (valid, non-protected)
}, 64);
console.log('reached device, status =', res.status);
Expected (correct): the transfer is blocked by the protected-class policy (it would reach a HID interface). Actual on 151.0.7896.0: the transfer is delivered to the device; firmware that ignores/misinterprets wIndex executes it on the protected HID interface.
A control-OUT variant (controlTransferOut, e.g. HID SET_REPORT, request 0x09) lets the page
write to the protected interface the same way.
Problem Description
WebUSB enforces a "protected interface class" blocklist so that a web origin which the
user has granted access to a USB device still cannot send control transfers that reach
sensitive interface classes (HID, mass-storage, smart-card, audio/video). The enforcement
point is DeviceImpl::HasControlTransferPermission in the device service.
Commit 872fabf8796f3 ("usb: Fix protected class bypass via crafted wIndex in CLASS
requests", Bug 520743499, landed 2026-06-15) fixed one bypass: a CLASS request to recipient
DEVICE/OTHER with an invalid wIndex (e.g. 0xFF) on a device that ignores wIndex. The fix
added if (!interface && HasProtectedInterface(config)) block;.
That guard is gated on !interface — it only fires when wIndex resolves to no interface. But
the fix's own threat model is a device that ignores wIndex, which ignores a valid wIndex just
the same. So a CLASS request to recipient DEVICE with wIndex naming a valid non-protected
interface (e.g. 0) on a composite device that also exposes a protected interface skips the
guard and is allowed, reaching the protected interface. The protections are enabled by default;
DEVICE/OTHER recipients require no interface claim. This is an incomplete fix with a distinct
trigger (valid wIndex vs the fixed 0xFF case) and no test coverage — a fresh, non-duplicate
bypass of the same security boundary.
Summary
Incomplete fix of crbug 520743499 (fix 872fabf8796f3, landed 2026-06-15).
Additional Data
Category: Security
Chrome Channel: Canary
Regression: N/A \
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
The protected-interface guard only runs when the request's interface index resolves to no interface, so a valid index pointing at a non-protected interface on a composite device skips the check even though the device may ignore the index and act on the protected interface.
Impact
A page with existing device access could send control transfers that reach a protected interface class, though the live attack depends on firmware that ignores or misinterprets the interface index.
What the attacker needed
User grants WebUSB access to the device; composite device with a protected interface; firmware ignores the interface index
The fix
The guard should block class requests to device or other recipients whenever the configuration contains any protected interface, regardless of whether the index resolves to a valid interface.
How it was found
- Build a composite device whose active configuration has a non-protected interface 0 and a protected HID interface 1.
- Add a unit test calling the permission check with a class request to recipient device and index 0.
- Observe the check returns allowed instead of blocked.
- Alternatively, on real hardware, open the granted device and select its configuration.
- Send a class control transfer to recipient device with the index naming the non-protected interface.
- Observe the transfer is delivered to the device and may act on the protected interface.
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 a website talk to a USB device after the user approves it, but some device types (keyboards, storage, smart cards) are meant to stay off-limits to web pages. The check that enforces this could be fooled by naming a harmless part of the device while the request actually lands on the sensitive part. That would let a page send commands to a protected interface it should never reach.
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.