What’s Vulnerable › Vulnerabilities

CVE-2025-68656: Espressif ESP-IDF USB Host HID (Human Interface Device) Driver Descriptor Use-After-Free Vulnerability

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

How to fix

Upgrade to a fixed version: espressif esp-usb 1.1.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-68656 or the next vulnerability affects your stack