TinyUSB < 0.21.0 Integer Underflow via HID Report Descriptor Parser
- State
- Published
- Severity
- 5.2 Medium
- Published
- Nov 3, 2026
- Updated
- Nov 28, 2026
- Reserved
- Jul 10, 2026
Description
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.
| Product | Versions |
|---|---|
| TinyUSB hathach | before 0.21.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.2 Medium | VulnCheck | |
| 3.1 | 5.2 Medium | VulnCheck |
Weaknesses
- CWE-191 Integer Underflow (Wrap or Wraparound)
References
- TinyUSB 0.21.0 Release NotesPatchRelease Notes
- Patch CommitIssue TrackerPatch
- VulnCheck Advisory: TinyUSB < 0.20.1 Integer Underflow via HID Report Descriptor ParserThird-Party Advisory
- Researcher DisclosureTechnical DetailsExploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.