What’s Vulnerable › Vulnerabilities
CVE-2025-68656: Espressif ESP-IDF USB Host HID (Human Interface Device) Driver Descriptor Use-After-Free Vulnerability
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-01-12 · updated 2026-06-17
- Weakness: CWE-416
Description
Espressif ESP-IDF USB Host HID (Human Interface Device) Driver allows access to HID devices. Prior to 1.1.0, usb_class_request_get_descriptor() frees and reallocates hid_device->ctrl_xfer when an oversized descriptor is requested but continues to use the stale local pointer, leading to an immediate use-after-free when processing attacker-controlled Report Descriptor lengths. This vulnerability is fixed in 1.1.0.
Affected products
- espressif esp-usb: before 1.1.0 — fixed in 1.1.0
How to fix
Upgrade to a fixed version: espressif esp-usb 1.1.0. Check the vendor advisory for mitigations.
References
- https://components.espressif.com/components/espressif/usb_host_hid/versions/1.1.0/changelog
- https://github.com/espressif/esp-usb/commit/81b37c96593c0bec92ef14c6ee6bf8cab8d8f660
- https://github.com/espressif/esp-usb/security/advisories/GHSA-2pm2-62mr-c9x7
Get alerted when CVE-2025-68656 or the next vulnerability affects your stack