Disclosures
STMicroelectronics · STM32Cube USB Host Library / PTP-MTP
USB Host PTP Property Enumeration Out-of-Bounds Write
SecMateSECMATE-2026-0031
VendorSTMicroelectronics
ProductSTM32Cube USB Host Library / PTP-MTP
Advisories
Timeline
Reported
Jan 2, 2026
Fixed
Jun 25, 2026
Published
Jul 2, 2026
Summary
STM32Cube USB Host Library 3.5.4 and earlier uses an unbounded NumberOfValues field from a PTP object-property descriptor to populate a fixed 100-entry SupportedValue array. A malicious PTP/MTP device can return an excessive count and trigger out-of-bounds writes, causing memory corruption or a host crash. ST fixed the issue in USB Host Library 3.5.5.