CVE-2026-102953
Awaiting Analysis Awaiting Analysis - Queue

USB Host Buffer Use-After-Free in Zephyr RTOS

Vulnerability report for CVE-2026-102953, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-23

Last updated on: 2026-11-23

Assigner: Zephyr Project

Description

usbh_req_setup() in subsys/usb/host/usbh_ch9.c returns -ETIMEDOUT as soon as a control request times out, even though the transfer is still in flight. usbh_xfer_dequeue() only requests cancellation, and the host controller driver keeps the transfer and its data buffer until it returns it through the completion callback. Callers such as usbh_req_desc_dev() and usbh_req_desc_cfg() free the buffer (net_buf_unref()) right after usbh_req_setup() returns. Separately, a single global semaphore (ch9_req_sync) with no mutual exclusion lets a late or foreign completion wake the wrong waiter. That waiter then returns early and its caller frees a buffer the controller is still filling. A malicious USB device attached to a Zephyr USB host port can trigger this during enumeration. It NAKs a GET_DESCRIPTOR request until the 5-second timeout expires, then answers with data around the cancellation, or delays its answer to the next request after leaving a stale semaphore signal. The controller driver (for example the MAX3421E max3421e_hrslt_success() path) then writes device-controlled bytes into the freed net_buf and updates its length. The result is a use-after-free write into the USB host buffer pool with attacker-chosen contents, which can corrupt buffers that have been reallocated to other transfers, plus a leak of transfer objects. Crashes or memory corruption follow. The fix serializes usbh_req_setup() with a mutex, resets the semaphore before each request, and waits for the driver to return a cancelled transfer before freeing it. Only builds with the experimental CONFIG_USB_HOST_STACK are affected.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-23
Last Modified
2026-11-23
Generated
2026-11-23
AI Q&A
2026-11-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
zephyrproject zephyr From 4.1.0 (inc) to 4.5.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-416 The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a use-after-free vulnerability in the Zephyr RTOS USB host stack. The issue occurs in the usbh_req_setup() function, which returns a timeout error while a USB control transfer is still in progress. The transfer buffer remains active in the host controller driver until completion, but callers free the buffer immediately after usbh_req_setup() returns. A malicious USB device can exploit this by delaying responses during enumeration, causing the host to free the buffer while the controller continues writing data into it. This results in memory corruption, crashes, or buffer pool corruption with attacker-controlled data.

Detection Guidance

This vulnerability is specific to Zephyr RTOS USB host stack implementations with CONFIG_USB_HOST_STACK enabled. Detection requires checking Zephyr RTOS version and USB host stack configuration. Inspect system logs for USB enumeration failures or crashes during device attachment. Monitor for memory corruption errors or buffer pool corruption messages in kernel logs.

Impact Analysis

The vulnerability allows a malicious USB device to corrupt memory, cause crashes, or corrupt data buffers in the USB host stack. This could lead to system instability, denial of service, or unauthorized data manipulation. The impact is limited to systems using Zephyr RTOS with the experimental USB host stack enabled.

Mitigation Strategies
  • Upgrade Zephyr RTOS to version 4.5.0 or later to apply the official fix.
  • Disable CONFIG_USB_HOST_STACK if USB host functionality is not required.
  • Restrict physical access to USB ports to prevent malicious device insertion.
  • Monitor USB device enumeration logs for suspicious timeouts or delayed responses.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-102953. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...