Heap-based buffer overflow in USB Test from malicious USB drives
Key facts
- Attack vector
- Physical
- Privileges required
- High
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
USB Test, a Windows CLI utility for checking USB flash drives, is affected before version 1.1.5. getSectorSize() in USB Test/src/driveinfo.cpp uses DISK_GEOMETRY.BytesPerSector without checking whether the call succeeded or bounding the size. A malicious USB storage device connected to the host can report a value below eight bytes, causing repeated out-of-bounds writes to a heap buffer, or zero, causing a divide-by-zero denial of service when a user starts a drive test. The heap corruption can crash the elevated application and may permit arbitrary code execution (CWE-122, CVSS 4.0 7.0 HIGH).
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
USB Test is a lightweight Windows CLI utility for verifying sector integrity and detecting overreported capacity on USB flash drives. Prior to version 1.1.5, getSectorSize() in USB Test/src/driveinfo.cpp trusts DISK_GEOMETRY.BytesPerSector returned by IOCTL_DISK_GET_DRIVE_GEOMETRY without checking whether the call succeeded or enforcing size bounds. USB Test/src/drivetest.cpp uses the value for division and to size a heap buffer before memcpy(buffer.data(), §or, 8), so a physically connected malicious USB storage device can report a value below eight bytes and cause repeated out-of-bounds writes, or report zero and cause a divide-by-zero denial of service when a user starts a drive test. The heap corruption can crash the elevated application and may permit arbitrary code execution. This issue is fixed in version 1.1.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| n-romanovich | usb-test | before 1.1.5 | 1.1.5 | Patch available | CNA |
- usb-test Vendorn-romanovich Affected before 1.1.5 Fixed in 1.1.5 Patch available CNA
Remediation
Upgrade USB Test to version 1.1.5, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA usb-test (n-romanovich) Fixed in 1.1.5
Timeline
- 2026-10-28 Threatist record created from CVE-2026-116776
- 2026-10-29 CISA SSVC decision points changed
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences