Technical impact
USB Test, a lightweight Windows CLI utility, contains a heap-based buffer overflow in the getSectorSize function because it uses the BytesPerSector value from DISK_GEOMETRY without verifying that the IOCTL call succeeded or enforcing bounds. An attacker who supplies a malicious USB storage device that reports a sector size below eight bytes can cause out‑of‑bounds writes, and a size of zero triggers a divide‑by‑zero condition that results in a denial of service. The malformed heap corruption can crash the elevated USB Test process and, if attacker control over the overwritten area is achieved, may allow arbitrary code execution.
Affected Systems
The vulnerability affects the usb‑test utility provided by the n‑romanovich vendor. All installations of usb‑test prior to version 1.1.5 are vulnerable. The specific product is the USB Test command‑line tool that runs on Windows and must be executed with elevated permissions for write operations.
Risk and Exploitability
The CVSS score of 7 indicates a high severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting a lower observed exploitation probability so far. However, the attack requires a physically connected malicious USB device and execution of the usb‑test utility by a privileged user, which is a realistic local scenario for systems where the tool is used for drive verification. A successful exploitation can result in program crashes (DoS) and potentially allow the execution of arbitrary code with the privileges of the user running usb‑test.