{"id":"CVE-2026-61495","summary":"TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()","details":"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.","modified":"2026-11-28T15:00:10.669553403Z","published":"2026-11-03T20:15:11.817Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61495.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-787"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61495.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61495"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/tinyusb-out-of-bounds-write-via-mtp-container-get-string"},{"type":"FIX","url":"https://github.com/hathach/tinyusb/commit/e85c2b8affa1efbf00d398d59e7a87d3e61cc4a9"},{"type":"PACKAGE","url":"https://github.com/hathach/tinyusb"},{"type":"EVIDENCE","url":"https://gist.github.com/Shukhrat-03/8fe6e5881614a7f86b5d2b87d44ea706"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hathach/tinyusb","events":[{"introduced":"0"},{"fixed":"e85c2b8affa1efbf00d398d59e7a87d3e61cc4a9"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"0.21.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"e85c2b8affa1efbf00d398d59e7a87d3e61cc4a9"}]}]}}],"versions":["0.21.0","0.19.0","0.20.0","0.18.0","0.17.0","0.16.0","0.15.0","0.14.0","0.13.0","0.12.0","0.11.0","0.10.1","0.10.0","0.9.0","0.8.0","0.7.0","0.6.0","0.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61495.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}