Skip to content

zephyr

NULL pointer dereference in the Zephyr USB host stack when a device reports zero configurations

CVE-2026-90587Published 9 Nov 2026, 22:03 UTC

Real-world risk

0.3/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

4.6

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from zephyr)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
zephyrCommon>= 4.4.0, < 4.5.04.5.0

What to do

Update to a fixed version: 4.5.0.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionPhysicalMust touch the deviceFrom the CVSS vector0.10
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 13), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.100
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.4 × prerequisites 0.1 × threat 0.850.340
  4. Rounded to one decimal between 0.1 and 100.3

How the score works

Exploitation and evidence timeline

  1. 9 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.3 (cvss fallback)

Weakness

CWE-476

References

Get alerts for zephyr

Free email or text alerts when a vulnerability in zephyr reaches risk 8 or higher. Nothing else.