Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-61495 EUVD-2026-116211GHSA-cx2w-pw8j-8rvm

TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()

Published Nov 3, 2026 · Updated Nov 9, 2026 · Assigned by VulnCheck

Description

TinyUSB through 0.21.0, fixed in commit e85c2b8, contains an out-of-bounds write vulnerability in the MTP device class helper mtp_container_get_string() in src/class/mtp/mtp.h that allows a malicious USB host to corrupt adjacent memory by supplying a crafted MTP string with an unbounded character count. Attackers can exploit the unchecked memcpy operation copying up to 510 bytes into a fixed-size destination buffer to achieve code execution or cause a denial of service on the TinyUSB MTP device.

Affected products

VendorProductAffectedFixed
hathach TinyUSB ≤ 0.21.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tinyusb No fix yet —
Debian 13 tinyusb No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 tinyusb No fix yet —
Ubuntu 26.04 LTS tinyusb No fix yet —

References