TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()
cve-program · CVE-2026-61495
PublishedTinyUSB 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-61495 · CVE overview and exploitation status
cve-program · CVE-2026-61495
Related changes
Linked by CVE identifier- TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string() · Advisory content revised · 10 Nov 2026
- TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string() · Newly collected advisory · 3 Nov 2026