PT-2026-156876
CVE-2026-102953
·
Published
2026-11-23
·
Updated
2026-11-23
Description by
CVSS 3.1
6.0
MediumMetricsAV:P/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H
Name of the Vulnerable Software and Affected Versions
Zephyr (affected versions not specified)
Description
An issue exists in the USB host stack where the
usbh req setup() function in subsys/usb/host/usbh ch9.c returns a timeout error while a transfer is still active. This occurs because usbh xfer dequeue() only requests cancellation, but the host controller driver retains the transfer and its data buffer until a completion callback is triggered. Functions such as usbh req desc dev() and usbh req desc cfg() may free the buffer using net buf unref() immediately after the timeout return. Additionally, a global semaphore ch9 req sync lacks mutual exclusion, allowing an incorrect waiter to be woken by a late completion, leading to the premature freeing of a buffer that the controller is still filling.A malicious USB device can trigger this during enumeration by NAKing a GET DESCRIPTOR request until the timeout expires and then providing data. This results in a use-after-free write into the USB host buffer pool with attacker-controlled content, potentially corrupting reallocated buffers and causing memory corruption or system crashes. This issue specifically affects builds using the experimental
CONFIG USB HOST STACK.Recommendations
For builds using
CONFIG USB HOST STACK, serialize the usbh req setup() function with a mutex, reset the ch9 req sync semaphore before each request, and ensure the driver returns the cancelled transfer before the buffer is freed. Found an issue in the description? Have something to add? Feel free to write us 👾