# CVE-2026-116776: USB Test: Heap-based Buffer Overflow in getSectorSize via untrusted DISK\_GEOMETRY.BytesPerSector leads to RCE/DoS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v4.0, CNA) `CVSS:4.0/AV:P/AC:L/AT:N/PR:H/UI:P/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Attack requirements: None; Privileges required: High; User interaction: Passive; Confidentiality impact: None; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-28)
- **CWE:** CWE-122
- **Published:** 2026-10-28T15:42:11.023Z
- **Modified:** 2026-11-04T23:10:00.223Z

## Who should check

- Anyone running n-romanovich usb-test \< 1.1.5

## Description

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.

## Affected and fixed versions

- n-romanovich usb-test: \< 1.1.5 (cvelist)

## Mitigation

- Upgrade usb-test to 1.1.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-116776. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-116776.md
Affected: n-romanovich usb-test < 1.1.5
Fixed in: n-romanovich usb-test 1.1.5

Steps:
1. Search this machine and project for n-romanovich usb-test: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-116776 being exploited?

There is no confirmed exploitation: CVE-2026-116776 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-116776?

High: CVSS 7.0 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-116776?

n-romanovich usb-test \< 1.1.5.

### Is there a fix for CVE-2026-116776?

Yes. Fixed in n-romanovich usb-test 1.1.5. Upgrade usb-test to 1.1.5 or later.

### How do I check if I'm affected by CVE-2026-116776?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/n-romanovich/usb-test/security/advisories/GHSA-cfrv-c9q2-7cr3>
- patch: <https://github.com/n-romanovich/usb-test/commit/5b6caac844461024520b02337d3a541fbe128f89>
- other: <https://github.com/n-romanovich/usb-test/releases/tag/release-v1.1.5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-116776>

HTML: <https://flawdb.com/CVE-2026-116776> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-116776>
