{"id":"CVE-2026-61495","state":"PUBLISHED","title":"TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()","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.","publishedAt":"2026-11-03T20:15:11.817Z","updatedAt":"2026-11-09T22:00:56.245Z","severity":{"score":7,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["hathach TinyUSB"],"affected":[{"vendor":"hathach","product":"TinyUSB","packageURL":"pkg:github/hathach/tinyusb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.21.0","versionType":"semver"}],"repo":"https://github.com/hathach/tinyusb"}],"references":["https://github.com/hathach/tinyusb/commit/e85c2b8affa1efbf00d398d59e7a87d3e61cc4a9","https://www.vulncheck.com/advisories/tinyusb-out-of-bounds-write-via-mtp-container-get-string","https://gist.github.com/Shukhrat-03/8fe6e5881614a7f86b5d2b87d44ea706"],"weaknesses":["CWE-787"],"ingestedAt":"2026-11-09T22:14:06.228Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/61xxx/CVE-2026-61495.json","commit":"c9a6fe5e0ec6065765766582c6238d8d696001a1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-61495","state":"PUBLISHED","datePublished":"2026-11-03T20:15:11.817Z","dateUpdated":"2026-11-09T22:00:56.245Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-07-10T15:43:36.625Z"},"containers":{"cna":{"title":"TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()","descriptions":[{"lang":"en","value":"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":[{"vendor":"hathach","product":"TinyUSB","packageURL":"pkg:github/hathach/tinyusb","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.21.0","versionType":"semver"}],"repo":"https://github.com/hathach/tinyusb"}],"references":[{"url":"https://github.com/hathach/tinyusb/commit/e85c2b8affa1efbf00d398d59e7a87d3e61cc4a9","name":"Patch Commit","tags":["issue-tracking","patch"]},{"url":"https://www.vulncheck.com/advisories/tinyusb-out-of-bounds-write-via-mtp-container-get-string","name":"VulnCheck Advisory: TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()","tags":["third-party-advisory"]},{"url":"https://gist.github.com/Shukhrat-03/8fe6e5881614a7f86b5d2b87d44ea706","name":"Researcher Disclosure","tags":["technical-description","exploit"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"PHYSICAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":7,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"PHYSICAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"MEDIUM","baseScore":6.8,"vectorString":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-09T22:00:56.245Z"},"tags":["x_open-source"],"datePublic":"2026-10-01T00:00:00.000Z","credits":[{"lang":"en","value":"Shukhratbek Uraiimov","type":"finder"}],"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-03T22:36:40.400955Z","id":"CVE-2026-61495","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-03T22:39:43.266Z"}}]}}}