TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()
- State
- Published
- Severity
- 7.0 High
- Published
- Nov 3, 2026
- Updated
- Nov 28, 2026
- Reserved
- Jul 10, 2026
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.
| Product | Versions |
|---|---|
| TinyUSB hathach | 0.21.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.0 High | VulnCheck | |
| 3.1 | 6.8 Medium | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
References
- Patch CommitIssue TrackerPatch
- VulnCheck Advisory: TinyUSB 0.21.0 Out-of-Bounds Write via mtp_container_get_string()Third-Party Advisory
- Researcher DisclosureTechnical DetailsExploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.