---
id: "CVE-2026-116776"
kind: "vulnerability"
aliases: ["CVE-2026-116776"]
title: "USB Test: malicious USB drive can corrupt heap and run code"
severity: "high"
cvss: 7.0
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "usb-test", "windows"]
not_affected_if: ["no-untrusted-usb-drives", "version-1.1.5-or-later"]
published_at: "2026-10-28T16:17:06+00:00"
first_seen_at: "2026-10-28T16:33:49+00:00"
updated_at: "2026-10-28T16:35:54+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116776", "first_seen_at": "2026-10-28T16:33:49+00:00"}]
---

# USB Test: malicious USB drive can corrupt heap and run code

USB Test, a Windows command-line tool for checking USB flash drives, trusts the sector size a drive reports without validating it. A malicious USB storage device can report a tiny or zero sector size, causing heap out-of-bounds writes that crash the elevated app or may allow arbitrary code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run the USB Test binary and check its version against `1.1.5`
- Look for the USB Test install on Windows machines used to test USB drives, and note the version

## Fix

- Upgrade USB Test to `1.1.5` or later

## Timeline

- 2026-10-28T16:33:49+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116776

## From the sources

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(), &sector, 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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
