CVE-2025-68657 espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path
A double-free race condition in the ESP-IDF USB Host HID driver allows attackers to corrupt heap memory, potentially leading to code execution or denial of service.
- 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-68657?
CVE-2025-68657 is a medium-severity 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, calls to hid_host_device_close() can free the same usb_transfer_t twice. The USB event callback and user code share the hid_iface_t state without locking, so both can tear down a READY interface simultaneously, corrupting heap metadata inside the ESP USB host stack. This vulnerability is fixed in 1.1.0.
Which versions are affected by CVE-2025-68657?
It affects 1 product.
Products include Espressif Usb Host Hid Driver.
How do I fix CVE-2025-68657?
No fix has been published for CVE-2025-68657 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-68657 being exploited?
There is no known exploitation of CVE-2025-68657 in the wild and no public exploit code.
Other vulnerabilities in espressif esp-usb
Sources
Also known as GHSA-gp8r-qjfr-gqfv.