TinyUSB < 0.21.0 Integer Underflow via HID Report Descriptor Parser
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| hathachTinyUSB |
< 0.21.0→ 0.21.0 |
0.21.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-61497 tinyusb No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-61497 tinyusb No fixed version in this record
Original description The description as published by the source.
TinyUSB before 0.21.0 contains an integer underflow vulnerability in the HID host report descriptor parser tuh_hid_parse_report_descriptor() in src/class/hid/hid_host.c that allows a malicious USB device to trigger an out-of-bounds read by subtracting an item size from the remaining descriptor length without validating the item fits within the remaining buffer. Attackers can present a crafted USB device with a truncated report descriptor causing the uint16_t desc_len value to underflow, resulting in out-of-bounds memory reads and denial of service on the host system.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- report gist.github.com
- web github.com