Skip to content
Memory corruption Advisory Advanced CVE-2026-11009

Use after free in USB (CVE-2026-11009)

The Windows WebUSB code frees Request objects straight after asking the kernel to cancel pending I/O, without waiting for cancellation to finish. The kernel can then write the cancellation status into the freed memory, which could let an attacker corrupt browser heap memory and potentially gain code execution in the browser process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A potential write-after-free vulnerability exists in the Windows WebUSB implementation. UsbDeviceHandleWin::Close() destroys Request objects immediately after calling CancelIo(), without waiting for the kernel to finish cancelling the IRPs. The Windows kernel can subsequently write the cancellation status into the freed memory, allowing an attacker to corrupt browser heap memory.

Affected files:

  • services/device/usb/usb_device_handle_win.cc

Estimated timestamp from git blame: 2025-11-10

Summary

There is a potential kernel-mode Write-After-Free (WAF) vulnerability in the Windows implementation of WebUSB (services/device/usb/usb_device_handle_win.cc). When a USB device handle is closed, the code attempts to cancel pending I/O by calling the Windows CancelIo() API, followed immediately by the synchronous destruction of the associated Request objects.

Because CancelIo() is an asynchronous operation that merely requests cancellation, the Windows kernel may still be processing the I/O Request Packet (IRP). When the kernel eventually completes the cancellation, it writes the completion status (STATUS_CANCELLED, 0xC0000120) to the user-space OVERLAPPED structure. Since the browser process has already freed the Request object containing this structure, the kernel writes into freed memory.

Because the write is performed directly by the Windows kernel using a raw virtual address, C++ mitigations like MiraclePtr (BackupRefPtr) are completely bypassed.

Root Cause Analysis

In services/device/usb/usb_device_handle_win.cc, the UsbDeviceHandleWin::Close() method executes the following logic:

  1. It iterates through interfaces and calls CancelIo(interface->function_handle.Get()).
  2. It immediately enters a while loop to abort all pending requests: while (!requests_.empty()) requests_.front()->Abort();.
  3. Request::Abort() calls watcher_.StopWatching(). While this blocks until the wait is unregistered from the thread pool, it does not wait for the underlying OS I/O to complete.
  4. Abort() then synchronously fires the completion callback, invoking UsbDeviceHandleWin::TransferComplete().
  5. TransferComplete() extracts the Request via UnlinkRequest() into a local std::unique_ptr<Request>. When the function returns, the Request object (and its embedded OVERLAPPED structure) is destroyed and freed to the PartitionAlloc heap.
  6. The Windows kernel, running asynchronously, finishes cancelling the IRP and writes 0xC0000120 to the OVERLAPPED.Internal field (offset 24 on x64) and 0 to OVERLAPPED.InternalHigh (offset 32).

Potential Exploitation Steps

Note: These are potential steps as our setup does not have the ability to run code to produce a fully working Proof-of-Concept.

  1. A malicious website requests and is granted access to a USB device via navigator.usb.requestDevice().
  2. The attacker opens the device and claims an interface.
  3. The attacker initiates a large asynchronous transfer (e.g., device.transferIn()), ensuring the I/O pends in the Windows kernel.
  4. The attacker immediately calls device.close().
  5. The browser calls CancelIo() and frees the Request object. The kernel begins cancelling the IRP.
  6. The attacker rapidly performs heap spraying (e.g., via other Web APIs or IPCs) to allocate victim objects of the exact same size as the freed Request object, reclaiming the freed memory slot.
  7. The kernel finishes cancellation and writes 0xC0000120 into the attacker's victim object.
  8. If the victim object is carefully chosen (e.g., placing a capacity or length field at offset 24), this WAF grants the attacker a massive Out-of-Bounds (OOB) read/write primitive.
  9. The attacker uses the OOB primitive to achieve Remote Code Execution (RCE) in the highly privileged Browser process, escaping the renderer sandbox.

Suggested Fix

The lifetime of the Request object (and crucially, the OVERLAPPED structure) must be extended until the Windows kernel signals that it is entirely finished with the memory.

When Close() or Abort() is called, the code should not immediately destroy the Request. Instead, it should mark the request as aborted, stop the ObjectWatcher, but keep the Request object alive in memory (e.g., moved to a separate "pending destruction" list). The Request should only be safely deleted after the kernel signals the event handle associated with the OVERLAPPED structure, confirming that the OS has completed its final writes.

Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651


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. Please feel free to reach out to me if you have concerns or feedback.

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 code treats the asynchronous CancelIo() call as if cancellation were complete and frees the Request and its OVERLAPPED structure before the kernel has finished writing to it.

Impact

If the freed slot is reclaimed with a suitable object, the kernel write could give an out-of-bounds read/write primitive and potentially code execution in the browser process, though the report notes no working proof-of-concept was produced.

What the attacker needed

Windows platform; victim visits a malicious site; USB device access granted; no working PoC demonstrated

The fix

The Request and its OVERLAPPED structure should be kept alive until the kernel signals that it has finished with the memory, rather than being destroyed straight after cancellation is requested.

How it was found

  1. A malicious site obtains access to a USB device through the WebUSB request API.
  2. The attacker opens the device and claims an interface.
  3. The attacker starts a large asynchronous transfer so the I/O stays pending in the kernel.
  4. The attacker immediately closes the device.
  5. The browser cancels the I/O and frees the Request object while the kernel is still cancelling.
  6. The attacker heap-sprays to reclaim the freed slot, and the kernel writes the cancellation status into the new object.

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.

When a program asks the operating system to stop an input/output operation, the stop does not happen instantly. Here the browser threw away the memory that the operating system still needed to write its 'cancelled' result into, so the system wrote into memory that had been reused for something else. If an attacker can control what lands there, they may be able to corrupt the browser's memory.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.