CVE-2026-61497

TinyUSB < 0.21.0 Integer Underflow via HID Report Descriptor Parser

Published Nov 3, 2026 CVSS 4.0 · 5.2 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the TinyUSB library to version 0.21.0 or later, where the integer underflow checks have been applied.
  • Restrict USB device enumeration to known, trusted HID devices or block all untrusted USB connections to reduce exposure.
  • Enable system monitoring for anomalous memory read faults, kernel panics, or other indicators that could signal exploitation attempts.

Generated by OpenCVE AI on November 9, 2026 at 23:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description TinyUSB before 0.20.1 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. 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.
Title TinyUSB < 0.20.1 Integer Underflow via HID Report Descriptor Parser TinyUSB < 0.21.0 Integer Underflow via HID Report Descriptor Parser
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hathach
Hathach tinyusb
Vendors & Products Hathach
Hathach tinyusb
Type Values Removed Values Added
Description TinyUSB before 0.20.1 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.
Title TinyUSB < 0.20.1 Integer Underflow via HID Report Descriptor Parser
Weaknesses CWE-191
References
Metrics cvssV3_1

{'score': 5.2, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 5.2, 'vector': 'CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 9:59 PM
Reserved
Jul 10, 2026, 3:43 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 9:17 PM
Modified
Nov 12, 2026, 8:57 PM