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

Medium 6.8 Published Updated

A use-after-free in the ESP-IDF USB Host HID driver allows attackers to cause crashes or execute code via malicious descriptors.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-68656?

CVE-2025-68656 is a medium-severity use after free vulnerability in espressif esp-usb, published on 12 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-416

Which versions are affected by CVE-2025-68656?

It affects 1 product.

Products include Espressif Usb Host Hid Driver.

How do I fix CVE-2025-68656?

No fix has been published for CVE-2025-68656 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-68656 being exploited?

There is no known exploitation of CVE-2025-68656 in the wild and no public exploit code.

Sources

Also known as GHSA-2pm2-62mr-c9x7.

Is CVE-2025-68656 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free