# CVE-2025-68657: espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-01-12T17:26:51.106Z
- Modified: 2026-06-17T09:59:23.267Z
- Weaknesses: CWE-415, CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- espressif esp-usb: < 1.1.0
- espressif usb_host_hid_driver: before 1.1.0

## References

- <https://github.com/espressif/esp-usb/security/advisories/GHSA-gp8r-qjfr-gqfv> (patch, vendor-advisory)
- <https://github.com/espressif/esp-usb/commit/cd28106e9f72ac2719682c06f94601f9f034390b> (patch)
- <https://components.espressif.com/components/espressif/usb_host_hid/versions/1.1.0/changelog> (release-notes)

## Sources

- CVE List: [CVE-2025-68657](https://www.cve.org/CVERecord?id=CVE-2025-68657), CVE Terms of Use, modified 2026-01-12
- NVD: [CVE-2025-68657](https://nvd.nist.gov/vuln/detail/CVE-2025-68657), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-68657 · Whole record: https://cve.day/CVE-2025-68657.json · Rebuilt by cve.day 2026-11-25T22:59:10.509Z
