CVE-2026-17050
Last modified
CVE-2026-17050 is a medium-severity vulnerability rated 5.7/10 on the CVSS scale. The experimental USB host stack allocates a per-device configuration-descriptor buffer, udev->cfg_desc, from the dedicated usb_device_heap in usbh_device_set_configuration() (subsys/usb/host/usbh_device.c). On three failure paths — a failed full-length GET_DESCRIPTOR(CONFIGURATION) read, a mismatch between the short and full descriptor reads, and a rejected descriptor in parse_configuration_descriptor() — the buffer was released with k_heap_free() but the pointer was left dangling. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
Description
The experimental USB host stack allocates a per-device configuration-descriptor buffer, udev->cfg_desc, from the dedicated usb_device_heap in usbh_device_set_configuration() (subsys/usb/host/usbh_device.c). On three failure paths — a failed full-length GET_DESCRIPTOR(CONFIGURATION) read, a mismatch between the short and full descriptor reads, and a rejected descriptor in parse_configuration_descriptor() — the buffer was released with k_heap_free() but the pointer was left dangling. The cleanup in usbh_device_free() is guarded only by if (udev->cfg_desc != NULL), so it frees the same block a second time. The path is driven entirely by the attached peripheral: usbh_device_connect() calls usbh_device_init(), which ends in usbh_device_set_configuration(), and on failure usbh_device_connect() calls usbh_device_free(). On v4.4.x this happens during the same enumeration, with no unplug required; on v4.1.0–v4.3.x the second free instead arrives via dev_removed_handler()/dev_connected_handler() in subsys/usb/host/usbh_core.c, so it requires a removal or duplicate-connect event after the failed enumeration — a sequence the attached device fully controls. A malicious or malformed USB device only has to answer the first 9-byte configuration-descriptor request with a well-formed header and then fail any of the three checks, for example by returning a full descriptor whose interface count disagrees with bNumInterfaces, or by answering the second read with different bytes. The result is a double free on usb_device_heap. On builds where lib/heap hardening is active (the current default CONFIG_SYS_HEAP_HARDENING_BASIC), sys_heap_free() detects the already-free chunk and calls k_panic(), giving a deterministic, peripheral-triggered denial of service of the USB host. On builds without that detection — earlier releases, or CONFIG_SYS_HEAP_HARDENING_NONE — the second free manipulates a chunk already on the free list, corrupting the heap's free list so that later allocations can return overlapping or invalid blocks. Exploitation beyond denial of service is bounded by the fact that usb_device_heap is a small dedicated heap (CONFIG_USBH_USB_DEVICE_HEAP, default 1024 bytes) whose only client is this descriptor buffer, and by CONFIG_USB_HOST_STACK being marked experimental and disabled by default. The fix sets udev->cfg_desc = NULL after every k_heap_free(), making the cleanup guard sound.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 4.1.0, < 4.4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-17050?
How severe is CVE-2026-17050?
How do I fix CVE-2026-17050?
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-17043IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authentica…3.8
- CVE-2026-17044The Iptanus File Upload WordPress plugin before 5.1.8 does n…8.6
- CVE-2026-17045IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authentica…8.1
- CVE-2026-17047IBM Db2 Mirror for i 7.4, 7.5, and 7.6 could allow a remote …5.4
- CVE-2026-17048A flaw was found in the Keycloak Admin REST API, which is us…4.9
- CVE-2026-1705A vulnerability was detected in D-Link DSL-6641K N8.TR069.20…2.4
- CVE-2026-17051The Intel SEDI IPM (inter-processor mailbox) driver in drive…6
- CVE-2026-17052The Time-aware GPIO syscall verification handler z_vrfy_tgpi…7.8
- CVE-2026-17054The Espressif ESP-hosted Wi-Fi driver (drivers/wifi/esp_host…5.3
- CVE-2026-17057IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker t…9.1
- CVE-2026-17059A flaw was found in the role-users endpoint of the keycloak-…6.5
- CVE-2026-1706The All-in-One Video Gallery plugin for WordPress is vulnera…6.1
Are you affected by CVE-2026-17050?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
