Skip to main content

Zephyr USB Host Stack EUVDEUVD-2026-133383

| CVE-2026-102953 MEDIUM
Use After Free (CWE-416)
2026-11-23 zephyr
6.0
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attach malicious USB device to host port
  2. Delivery
    Host auto-enumerates, issues GET_DESCRIPTOR
  3. Exploit
    NAK until 5s timeout, answer around cancellation
  4. Execution
    usbh_req_setup returns -ETIMEDOUT, caller frees net_buf
  5. Persist
    Controller writes device bytes into freed/reallocated buffer
  6. Impact
    Heap corruption, transfer-object leak, crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) a build with the experimental CONFIG_USB_HOST_STACK enabled - default/stable configurations without the USB host stack are not affected; (2) an affected version (>= 4.1.0, < 4.5.0), since before 4.1.0 only the USB host shell issued control requests and an attached device could not self-trigger enumeration; (3) physical attachment of a malicious USB device to a host port (AV:P); and (4) winning the timing race described - the device must NAK a GET_DESCRIPTOR until the 5-second control-transfer timeout, then respond around the cancellation window, or leave a stale ch9_req_sync semaphore signal that wakes the wrong waiter (AC:H). Limiting factors: no remote network reachability (physical only), the race-dependent trigger, and the experimental, non-default host stack. Confirmed-affected driver path example is the MAX3421E (max3421e_hrslt_success); DWC2 is noted as main-branch only.

Impact

This is a genuine, well-documented use-after-free (CWE-416) in Zephyr's USB host control-transfer path, but real-world risk is bounded and does not reach high-priority status. The CVSS 3.1 vector (AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H, base 6.0/Medium) is the dominant signal and is internally consistent: exploitation requires physical attachment of a malicious USB device to a host port (AV:P), and the trigger involves winning a timing race around request cancellation/timeout as the description explicitly states (NAKing until the 5-second timeout, then answering around the cancellation, or leaving a stale semaphore signal to wake the wrong waiter), which justifies AC:H. There is no EPSS score, no CISA KEV listing, and no public exploit or PoC reference in the supplied data - only the patch commit and the GHSA advisory - so exploitation status is 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_month,' and a vendor fix is available, which aligns with a serious-but-not-emergency posture: no act_now/emergency urgency signal is present. The single strongest mitigating factor beyond physical access is that only builds enabling the experimental CONFIG_USB_HOST_STACK are affected, and the advisory notes this host stack is EXPERIMENTAL and that only from v4.1.0 did an attached device auto-enumerate and thus reach the flaw on its own. Net: a real, verified memory-corruption bug worth patching on schedule, but the physical-access requirement, timing complexity, and experimental gating keep it well below the priority of a remotely reachable flaw.

Exploit ScenarioDerived

An attacker with brief physical access plugs a malicious or counterfeit USB device into a Zephyr host port running the experimental USB host stack. During enumeration the device NAKs a GET_DESCRIPTOR request until the 5-second control-transfer timeout fires, then supplies attacker-chosen bytes around the cancellation window (or leaves a stale semaphore signal that wakes the wrong waiter), causing the controller driver to write device-controlled data into a net_buf the caller has already freed and possibly reallocated. No public exploit or PoC code is identified in the available data; this scenario is derived from the advisory and commit diff, and requires physical attachment (AV:P) plus a race around the timeout (AC:H).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 23, 2026

Use-after-free write into the USB host buffer pool in Zephyr's control-transfer path (subsys/usb/host/usbh_ch9.c) occurs when a control request times out: usbh_req_setup() returns -ETIMEDOUT while the transfer is still in flight, and callers such as usbh_req_desc_dev() free the net_buf that the host controller driver continues to fill. A malicious USB device attached to a Zephyr host port can NAK a GET_DESCRIPTOR until the 5-second timeout and then answer around the cancellation, or leave a stale ch9_req_sync semaphore signal, causing device-controlled bytes to be written into freed memory that may already belong to another transfer. Only builds with the experimental CONFIG_USB_HOST_STACK are affected, and Zephyr versions >= 4.1.0, < 4.5.0 are in scope; exploitation requires physical attachment and winning a timing race, and no public exploit has been identified at time of analysis.

RemediationAI

Vendor-released patch: fixed in Zephyr 4.5.0 - upgrade to that release or later. The fix, merged on main as commit 6862873ee28efc6bbac5553de365cd0d92d1b55f (PR https://github.com/zephyrproject-rtos/zephyr/pull/119688), serializes usbh_req_setup() with a mutex, resets ch9_req_sync before each request, and waits for the driver to hand back a cancelled transfer before the caller frees its buffer; the backport to v4.4-branch was merged as PR https://github.com/zephyrproject-rtos/zephyr/pull/121142, while v4.3-branch is end of life and any line that has not taken the backport remains affected. Because updating is the complete fix, the alternative on builds where USB host functionality is not required is to leave the experimental CONFIG_USB_HOST_STACK disabled, which removes the usbh_ch9 control-request path entirely at the cost of the host stack feature; builds that must keep host support should apply the upstream commit rather than rely on partial mitigations. Advisory: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-6f9f-h56f-m65x.

Affected VersionsENISA

Zephyr 4.1.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The USB host chapter 9 layer issues control transfers through usbh_req_setup(), which allocates a transfer and a net_buf, queues the request, and blocks on the global binary semaphore ch9_req_sync. The flaw is a CWE-416 use-after-free rooted in a lifetime mismatch: usbh_xfer_dequeue() only marks cancellation (for example max3421e_dequeue() sets err=-ECONNRESET while the transfer stays active, and DWC2 on main defers the channel halt to the driver thread while DMA still targets xfer->buf), so the controller can write RCVFIFO data via net_buf_add(xfer->buf) after the caller has dropped its reference. Compounding it, ch9_req_cb gives the single global semaphore for any non-ECONNRESET completion, so a late or foreign completion leaves a stale signal that wakes the wrong waiter; uhc_xfer_buf_add stores the buffer pointer without taking a reference and uhc_xfer_free refuses a still-queued transfer (-EBUSY), so the premature-wake path additionally leaks the transfer object. The unsafe timeout path predates v3.3.0 code (7c1ef350271), but the automatic enumeration of any newly attached device introduced by c8f3a2eb2d5 in v4.1.0 is what lets an untrusted device self-trigger the sequence through usbh_device_init() issuing GET_DESCRIPTOR. Confirmed driver path example is the MAX3421E (max3421e_hrslt_success), which processes the HXFRDN data-receive event before cleanup_cancelled; DWC2 exposure is noted for main only.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 6.0 MEDIUM
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H
vuln.today AI 6.0 MEDIUM

Physical USB attachment (AV:P) and a timeout/cancellation race described in the advisory (AC:H); no authentication to plug in a device (PR:N); attacker-controlled write gives I:H and crashes A:H, limited info leak C:L.

3.1 AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H
4.0 AV:P/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Physical
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
High

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
experimental USB host stack, rarely enabled in production Zephyr builds
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy