# CVE-2026-17050: Double free of the USB host configuration descriptor when device enumeration fails

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

- **Severity:** MEDIUM 5.7
- **CVSS:** 5.7 (v3.1, CNA) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2026-09-21T16:41:23.472Z
- **Modified:** 2026-11-04T05:18:45.423Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.1.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2

## 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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.1.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2 (cvelist)

## Mitigation

- Upgrade zephyr to 4.4.2 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-17050. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-17050.md
Affected: zephyrproject zephyr >= 4.1.0, < 4.3.2; >= 4.4.0, < 4.4.2
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2

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-17050 being exploited?

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

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

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

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

zephyrproject zephyr \>= 4.1.0, \< 4.3.2; \>= 4.4.0, \< 4.4.2.

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

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.4.2. Upgrade zephyr to 4.4.2 or later.

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

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-r7xw-9jhg-88cm>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/d46a8c1f8fb65e1f80b44bd651a6dafea747602e>

## 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-17050>

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