6.4

CVE-2025-68657

espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
Espressif ≫ Usb Host Hid Driver Version < 1.1.0
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.14% 0.042
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
security-advisories@github.com 6.4 0.5 5.9
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-415 Double Free

The product calls free() twice on the same memory address.

CWE-667 Improper Locking

The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.

https://components.espressif.com/components/espressif/usb_host_hid/versions/1.1.0/changelog
Release Notes
https://github.com/espressif/esp-usb/security/advisories/GHSA-gp8r-qjfr-gqfv
Patch
Vendor Advisory
https://github.com/espressif/esp-usb/commit/cd28106e9f72ac2719682c06f94601f9f034390b
Patch