{"id":"CVE-2025-68657","aliases":["EUVD-2025-206281","GHSA-gp8r-qjfr-gqfv"],"status":"published","title":"espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path","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.","severity":{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00162,"percentile":0.05398,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-415","CWE-667"],"published":"2026-01-12T17:26:51Z","modified":"2026-10-28T11:06:27Z","products":[{"vendor":"espressif","product":"esp-usb"},{"vendor":"espressif","product":"usb_host_hid_driver"}],"references":[{"url":"https://github.com/espressif/esp-usb/security/advisories/GHSA-gp8r-qjfr-gqfv","tags":["x_refsource_CONFIRM","Patch","Vendor Advisory","advisory"]},{"url":"https://github.com/espressif/esp-usb/commit/cd28106e9f72ac2719682c06f94601f9f034390b","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://components.espressif.com/components/espressif/usb_host_hid/versions/1.1.0/changelog","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68657.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68657","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2025-68657","title":"espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path","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.","status":"published","published":"2026-01-12T17:26:51.106Z","modified":"2026-01-12T18:40:25.838Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-415","CWE-667"],"updated_at":"2026-11-02T14:32:35.742256Z"}],"euvd":[{"id":"EUVD-2025-206281","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.","status":"published","published":"2026-01-12T17:26:51Z","modified":"2026-01-12T18:40:25Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T19:48:53.22038Z"}],"nvd":[{"id":"CVE-2025-68657","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.","status":"published","published":"2026-01-12T18:15:48.61Z","modified":"2026-06-17T09:59:23.267Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-415","CWE-667"],"updated_at":"2026-11-02T14:11:56.616231Z"}],"osv":[{"id":"CVE-2025-68657","title":"espressif/usb_host_hid Double-Free Race Condition in USB Host HID Device Close Path","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.","status":"published","published":"2026-01-12T17:26:51.106Z","modified":"2026-10-28T11:06:27.964919106Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-415","CWE-667"],"updated_at":"2026-11-02T15:44:52.53036Z"}]}}
