Severity by source
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Physical USB bus control required (AV:P); attacker needs no privileges on device (PR:N); impact is availability-only and limited to USB function (A:L, C:N, I:N).
Primary rating from Vendor (zephyr).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
The Nuvoton NuMaker HSUSBD USB device-controller driver (drivers/usb/udc/udc_numaker.c) armed the control Data IN stage unconditionally (base->CEPTXCNT = len in numaker_hsusbd_ep_trigger). Because the HSUSBD hardware cannot disarm a control Data IN already armed for a previous transfer, a USB host that cancels an in-flight control transfer (timeout) and then issues a new SETUP packet can drive the driver out of sync: stale data may be transmitted in the new transfer and the control endpoint can become permanently stuck NAK'ing every subsequent control transfer.
A malicious or buggy host (physical/adjacent attacker driving the bus) can repeatedly cancel-and-re-SETUP to wedge the device's USB control endpoint, denying service to the device's USB function (the device stops enumerating/responding on the control pipe) until a USB reset or re-plug. The flaw is an availability-only denial of service; the FIFO copy loops (bounded by net_buf length and the hardware BUFFULL flag) and the net_buf lifecycle are independent of the arming desync, so there is no out-of-bounds access, use-after-free, or information leak.
The fix monitors the IN-token and new-SETUP events (k_event) and only arms control Data IN when an IN token is present and no new SETUP has arrived, cancelling the current transfer on a new SETUP. Affects boards using the Nuvoton NuMaker HSUSBD controller (CONFIG_UDC_NUMAKER with DT_HAS_NUVOTON_NUMAKER_HSUSBD_ENABLED); shipped in v4.4.0.
AnalysisAI
Denial of service in Zephyr RTOS's Nuvoton NuMaker HSUSBD USB device-controller driver allows a physical or adjacent USB host to permanently wedge the device's USB control endpoint. The driver unconditionally arms the control Data IN stage without accounting for the hardware's inability to disarm an already-armed transfer, so a host that cancels an in-flight control transfer and then re-issues a SETUP packet drives the driver out of sync. Repeated cancel-and-re-SETUP cycles cause the control endpoint to NAK every subsequent transfer, rendering the USB function non-operational until a USB reset or re-plug. No public exploit identified at time of analysis.
Technical ContextAI
The vulnerability resides in the Zephyr RTOS USB Device Controller (UDC) subsystem, specifically in drivers/usb/udc/udc_numaker.c, which implements support for the Nuvoton NuMaker HSUSBD peripheral. The root cause, classified under CWE-400 (Uncontrolled Resource Consumption / improper state management), is that the function numaker_hsusbd_ep_trigger unconditionally writes the transfer length to the hardware register base->CEPTXCNT to arm the control Data IN stage. The Nuvoton HSUSBD hardware enforces a constraint that a control Data IN transfer, once armed, cannot be disarmed by software. When a USB host issues a SETUP packet mid-transfer (a valid behavior during host-side timeouts or cancellation), the driver's internal state and hardware state become permanently desynchronized. The affected CPE is cpe:2.3:a:zephyrproject:zephyr:*:*:*:*:*:*:*:*, and the flaw is gated behind the Kconfig option CONFIG_UDC_NUMAKER with the devicetree node DT_HAS_NUVOTON_NUMAKER_HSUSBD_ENABLED, meaning only boards physically equipped with this Nuvoton controller are affected.
RemediationAI
The upstream fix is available as commit 48e003326873e8bbc0ee4b67334e0dd8b5fb890f in the Zephyr project repository at https://github.com/zephyrproject-rtos/zephyr/commit/48e003326873e8bbc0ee4b67334e0dd8b5fb890f. The patch introduces k_event-based monitoring of IN-token and new-SETUP events, ensuring the driver only arms control Data IN when an IN token is present and no new SETUP has arrived, and cancels the current transfer upon receiving a new SETUP. Product teams shipping firmware based on Zephyr v4.4.0 with Nuvoton NuMaker HSUSBD should apply this commit or upgrade to a release that incorporates it; a specific patched release version was not independently confirmed from the available data (upstream fix is at the commit level only). As a compensating control where patching is not immediately feasible, restricting physical USB port access to trusted hosts reduces exposure, though this is only practical in controlled deployment environments such as industrial or medical devices. Disabling CONFIG_UDC_NUMAKER entirely would eliminate the vulnerability if the USB device function is not required for the product's operation.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
Buffer overflow in Zephyr RTOS dns_unpack_name() function causing OOB writes. PoC available.
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-43245