{"id":"CVE-2025-68657","published":"2026-01-12T17:26:51Z","modified":"2026-01-12T18:40:25Z","title":"espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path","vendor":"espressif","product":"esp-usb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00162,"percentile":0.05348,"provenance":"source"},"cwes":[{"id":"CWE-415","name":"Double Free"},{"id":"CWE-667","name":"Improper Locking"}],"references":[{"url":"https://github.com/espressif/esp-usb/security/advisories/GHSA-gp8r-qjfr-gqfv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/espressif/esp-usb/commit/cd28106e9f72ac2719682c06f94601f9f034390b","tags":["x_refsource_MISC"]},{"url":"https://components.espressif.com/components/espressif/usb_host_hid/versions/1.1.0/changelog","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":1.07},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"espressif","affectedVersions":[{"vendor":"espressif","product":"esp-usb","versions":["< 1.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-12T18:40:17.159910Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-206281","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-espressif-esp-usb-cve-2025-68656","parents":[{"from":"CVE-2025-68656","to":"CVE-2025-68657","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["host/class/hid/usb_host_hid/hid_host.c"],"commits":["https://github.com/espressif/esp-usb/commit/81b37c96593c0bec92ef14c6ee6bf8cab8d8f660","https://github.com/espressif/esp-usb/commit/cd28106e9f72ac2719682c06f94601f9f034390b"],"basis":"rarely changed file"}]}]}}