Skip to main content

Zephyr USB Host EUVDEUVD-2026-120488

| CVE-2026-90587 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-11-09 zephyr
4.6
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Physically attach malicious USB device
  2. Delivery
    Device reports bNumConfigurations = 0
  3. Exploit
    usbh_device_init returns success with cfg_desc NULL
  4. Execution
    Class probe walks descriptors from NULL pointer
  5. Impact
    NULL dereference crashes USB host thread (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Requires physically attaching a USB device (or a gadget emulating one) that advertises bNumConfigurations = 0 to a Zephyr host running the USB host stack (CONFIG_USB_HOST_STACK enabled) on an affected version (>= 4.4.0, < 4.5.0); the UHC_EVT_DEV_CONNECTED_FS/_HS controller event reaches the defect directly with no authentication and no user interaction beyond the physical attachment. Limiting factors that materially reduce real-world risk: (1) the attack vector is PHYSICAL (AV:P) - remote exploitation is not possible; (2) the vulnerable feature is vendor-marked EXPERIMENTAL and must be explicitly compiled in, so most Zephyr deployments are unaffected; (3) the defect only became reachable after the class-probe-on-successful-init consumer landed (commits fb3ae541/92c4d2744), so only builds including that code are affected; (4) deterministic fatal-crash DoS occurs where page zero is unmapped or CONFIG_NULL_POINTER_EXCEPTION_DETECTION is enabled, while on targets with readable address zero the outcome is instead a bounded out-of-bounds read.

Impact

This is a genuinely low-to-moderate priority issue despite the DoS impact. The CVSS 3.1 vector (AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 4.6) is the dominant real-world signal: exploitation requires PHYSICAL attachment of a malicious or malformed USB device, which caps severity regardless of how trivial the trigger is. There is no KEV listing, so this is not confirmed actively exploited (CISA KEV), and no public exploit or PoC reference is present in the input - no public exploit identified at time of analysis. No EPSS score was provided, so probabilistic exploitation likelihood cannot be quantified. The vuln.today Decision label is 'this_month' (not act_now or emergency), consistent with a locally-triggered availability bug in an experimental feature. The signals are mutually consistent rather than conflicting: a NULL-pointer dereference (CWE-476) reachable only via physical USB attachment, against a feature the vendor explicitly marks CONFIG_USB_HOST_STACK=[EXPERIMENTAL]. The primary impact is denial of service (fatal exception in the USB host thread where page zero is unmapped or CONFIG_NULL_POINTER_EXCEPTION_DETECTION is enabled); on targets where address zero is readable, there is a secondary bounded out-of-bounds read with no attacker-controlled write identified. Net: a real but low-urgency defect - patch on the normal maintenance cycle, prioritised for devices where untrusted USB peripherals can be physically attached.

Exploit ScenarioDerived

An attacker with brief physical access to a Zephyr-based host (USB host stack enabled, version 4.4.0-4.5.0) attaches a USB device - or a programmable gadget (e.g. a BadUSB-style board) emulating one - whose device descriptor reports bNumConfigurations = 0. Enumeration erroneously returns success with udev->cfg_desc still NULL, and the subsequent class-probe descriptor walk dereferences that NULL pointer, crashing the USB host thread and denying service. No authentication or user interaction beyond the physical attachment is required; no public exploit code is referenced.

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 09, 2026

Attaching a USB peripheral that advertises bNumConfigurations = 0 to a Zephyr target running the experimental USB host stack drives a NULL pointer dereference that faults the USB host thread on affected builds (>= 4.4.0, < 4.5.0). Because usbh_device_init() jumps to its cleanup path without setting the local error code, the function reports success and skips the only routine that allocates udev->cfg_desc, so the subsequent class-probe descriptor walk dereferences a NULL configuration pointer; where page zero is unmapped or CONFIG_NULL_POINTER_EXCEPTION_DETECTION is enabled this is a deterministic denial of service, and where address zero is readable it degrades into a bounded out-of-bounds read with possible dispatch of a class probe on attacker-influenced low-memory values. Severity is bounded by the physical attack vector (CVSS 4.6, AV:P/AC:L/PR:N/UI:N/A:H) and by the fact that the feature is vendor-marked experimental and must be explicitly compiled in; there is no confirmed active exploitation and no public exploit identified at time of analysis. The vendor has released a fix in Zephyr 4.5.0, with backports merged to the v4.4 and v4.3 branches.

RemediationAI

Vendor-released patch: Zephyr 4.5.0. Upgrade to 4.5.0, or apply the upstream fix commit 04e4284b4c3d3cd41791d44d7c39361e268b4d02 (which adds 'err = -EINVAL;' to the !bNumConfigurations branch of usbh_device_init()) via the merged backports on v4.4-branch (PR #119109) and v4.3-branch (PR #119108) if staying on those release lines; consult https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9pxv-6992-2g24 for the authoritative fix list. Where upgrading is not immediately possible, the most effective control is to not compile in the experimental CONFIG_USB_HOST_STACK feature on products that do not require USB host functionality, which removes the vulnerable code entirely at the cost of losing host-mode support. On builds that must retain host mode, enabling CONFIG_NULL_POINTER_EXCEPTION_DETECTION ensures page zero is never readable, so a malicious peripheral produces a deterministic exception instead of a low-memory descriptor walk and potential out-of-bounds reads - but this does not prevent the host-thread fault itself, so it converts an unpredictable read into a predictable denial of service rather than eliminating the DoS. Physical restriction of USB port access to trusted peripherals and personnel reduces, but does not remove, exposure given the AV:P attack vector.

Affected VersionsENISA

Zephyr 4.4.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 root cause is CWE-476 (NULL pointer dereference) arising from an error-path bookkeeping error rather than from a missing bounds check. In subsys/usb/host/usbh_device.c, the !bNumConfigurations branch of usbh_device_init() logs the error and does 'goto error' while the local 'err' still holds 0 from the preceding successful usbh_req_desc_dev(); the error label only unlocks the mutex and returns err, so the function returns success. Because usbh_device_alloc() memsets the whole struct usb_device, udev->cfg_desc is NULL, and the only allocation site for it, usbh_device_set_configuration(), is exactly the call the early exit skipped. usbh_device_connect() therefore treats the enumeration as successful and calls usbh_class_probe_device(), which seeds its descriptor walk from udev->cfg_desc and hands the NULL pointer to usbh_desc_get_next_function(); usbh_desc_is_valid() only validates the caller-supplied size before reading head->bLength, so the first dereference happens through NULL. usbh_desc_get_iface() provides a second unconditional dereference of udev->cfg_desc once a class is probed. The path is reached directly from the UHC_EVT_DEV_CONNECTED_FS/_HS handler in dev_connected_handler() in subsys/usb/host/usbh_core.c, i.e. purely from the connected peripheral's descriptors, and the defect only became reachable once the class-probe-on-successful-init consumer landed (commits fb3ae541cfb / 92c4d2744e6); the missing error assignment itself dates to c8f3a2eb2d5 but was inert until then. Concrete outcome depends on the memory map: fatal exception in the USB host thread where page zero is unmapped or CONFIG_NULL_POINTER_EXCEPTION_DETECTION is enabled, otherwise parsing of low memory as a descriptor chain with further out-of-bounds reads. No attacker-controlled write was identified, so impact is availability plus a bounded OOB read. CONFIG_USB_HOST_STACK is marked [EXPERIMENTAL] in subsys/usb/host/Kconfig, which materially limits deployment exposure.

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 4.6 MEDIUM
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.6 MEDIUM

Trigger requires physical USB attachment (AV:P) but is trivial and unauthenticated (AC:L/PR:N/UI:N); impact is a crash of the host USB thread (A:H) with no attacker-controlled write and no data disclosed to the attacker (C:N/I:N).

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

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

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

DescriptionCVE.org

usbh_device_init() in subsys/usb/host/usbh_device.c rejects a device whose device descriptor advertises bNumConfigurations == 0, but it only logs the error and jumps to the cleanup label without setting the return code. At that point the local err is still 0 from the preceding successful descriptor read, so the function returns success while having skipped usbh_device_set_configuration() - the only place udev->cfg_desc is allocated. The device structure is zero-initialised by usbh_device_alloc(), so udev->cfg_desc remains NULL.

usbh_device_connect() treats the zero return as a successful enumeration and calls usbh_class_probe_device(), which starts its descriptor walk from udev->cfg_desc. usbh_desc_get_next_function() passes that NULL pointer to usbh_desc_is_valid(), whose only guard compares the caller-supplied size, so head->bLength is read through a NULL pointer.

The condition is triggered entirely by the attached peripheral: attaching a USB device (or any USB gadget emulating one) that reports bNumConfigurations = 0 reaches the defect directly from the UHC_EVT_DEV_CONNECTED_FS/_HS event handler in subsys/usb/host/usbh_core.c, with no authentication and no user interaction beyond the physical attachment.

On targets where page zero is unmapped or CONFIG_NULL_POINTER_EXCEPTION_DETECTION is enabled this raises a fatal exception in the USB host thread, denying service to the host. Where address zero is readable, the descriptor walker instead parses low memory as a descriptor chain and can dispatch a class probe() with attacker-influenced values, causing further out-of-bounds reads through the still-NULL udev->cfg_desc in usbh_desc_get_iface(). No attacker-controlled write was identified, so the impact is availability plus a bounded out-of-bounds read. Note that CONFIG_USB_HOST_STACK is marked experimental.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
experimental USB host stack, narrow version range, physical access only
Data Quality
5 sources
Confidence: Medium

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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
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.

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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