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

- Severity: High 7.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-28T15:42:11.023Z
- Modified: 2026-11-04T23:10:00.223Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- n-romanovich usb-test: < 1.1.5

## References

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

## Sources

- CVE List: [CVE-2026-116776](https://www.cve.org/CVERecord?id=CVE-2026-116776), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-116776](https://nvd.nist.gov/vuln/detail/CVE-2026-116776), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-116776 · Whole record: https://cve.day/CVE-2026-116776.json · Rebuilt by cve.day 2026-11-25T22:59:47.623Z
