CVE-2026-90587
Last modified
CVE-2026-90587 is a medium-severity vulnerability rated 4.6/10 on the CVSS scale. 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-90587?
How severe is CVE-2026-90587?
How do I fix CVE-2026-90587?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-90581A vulnerability was determined in cym1102 nginxWebUI up to 4…6.3
- CVE-2026-90582A vulnerability was identified in evanchiu serverless-todo 1…5.3
- CVE-2026-90583A security flaw has been discovered in kagisearch smallweb u…4.3
- CVE-2026-90584A weakness has been identified in TooTallNate Java-WebSocket…5.3
- CVE-2026-90585The Renesas RA SCI UART driver's receive-error ISR, uart_ra_…4.6
- CVE-2026-90586The Xtensa MMU userspace port never initialized the per-thre…7.8
- CVE-2026-90588The HTTP client's debug helper print_header_field() in subsy…3.7
- CVE-2026-90589When CONFIG_THREAD_STACK_MEM_MAPPED is enabled, each thread …5.5
- CVE-2026-9059NextGEN Gallery version prior to 4.2.1 are vulnerable to aut…9.3
- CVE-2026-90590The NXP ENET QoS Ethernet driver in drivers/ethernet/eth_nxp…6.5
- CVE-2026-90591The NXP ENET-QOS Ethernet driver's receive work handler eth_…7.5
- CVE-2026-90593A vulnerability was determined in embedded-graphics up to 0.…7.3
Are you affected by CVE-2026-90587?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
