CVE-2026-90587NULL pointer dereference in the Zephyr USB host stack when a device reports zero…
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | zephyr | Fix pending | UBUNTU-CVE-2026-90587 | |
| Ubuntu 26.04 | zephyr | Under investigation | UBUNTU-CVE-2026-90587 | |
| Ubuntu 24.04 | zephyr | Under investigation | UBUNTU-CVE-2026-90587 | |
| Ubuntu 22.04 | zephyr | Under investigation | UBUNTU-CVE-2026-90587 | |
| Ubuntu 20.04 | zephyr | Fix pending | UBUNTU-CVE-2026-90587 | |
| Ubuntu 18.04 | zephyr | Fix pending | UBUNTU-CVE-2026-90587 | |
| Ubuntu 16.04 | zephyr | Fix pending | UBUNTU-CVE-2026-90587 |
What the vendor says
As published in the CVE record by zephyr, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- zephyrproject zephyr: affected: 4.4.0 to before 4.5.0; fixed in
4.5.0
Vendor advisories:
References
- https://github.com/zephyrproject-rtos/zephyr/commit/04e4284b4c3d3cd41791d44d7c39361e268b4d02
- https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9pxv-6992-2g24
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.