Technical impact
The vulnerability is an integer underflow in the TinyUSB 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. The weakness is classified as CWE‑191 and likely requires a physically connected malicious USB device to supply the crafted descriptor.
Affected Systems
The affected library is TinyUSB by hathach; versions prior to 0.21.0 are vulnerable. Updating to 0.21.0 or later removes the issue. No other vendor products are listed as affected.
Risk and Exploitability
The CVSS score of 5.2 indicates moderate risk. The EPSS score is < 1%, and the vulnerability is not listed in CISA KEV, implying no current known exploitation. Because the exploit requires a physical USB device, the likelihood is limited to environments where untrusted USB devices can be connected. Unpatched systems could experience a denial of service if an attacker supplies a crafted HID descriptor.