# CVE-2026-90587: NULL pointer dereference in the Zephyr USB host stack when a device reports zero configurations

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.6
- **CVSS:** 4.6 (v3.1, CNA) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-11-09T22:03:59.315Z
- **Modified:** 2026-11-12T18:17:54.463Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.4.0, \< 4.5.0

## Description

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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-90587. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90587.md
Affected: zephyrproject zephyr >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-90587 being exploited?

There is no confirmed exploitation: CVE-2026-90587 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-90587?

Medium: CVSS 4.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-90587?

zephyrproject zephyr \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-90587?

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-90587?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9pxv-6992-2g24>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/04e4284b4c3d3cd41791d44d7c39361e268b4d02>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-90587>

HTML: <https://flawdb.com/CVE-2026-90587> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-90587>
