{"id":"CVE-2026-116776","aliases":["CVE-2026-116776"],"related":[],"kind":"vulnerability","state":"published","title":"USB Test: Heap-based Buffer Overflow in getSectorSize via untrusted DISK_GEOMETRY.BytesPerSector leads to RCE/DoS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"USB Test es una utilidad ligera de línea de comandos (CLI) para Windows que verifica la integridad de los sectores y detecta la capacidad sobreinformada en unidades flash USB. Versiones anteriores a la versión 1.1.5, “getSectorSize()” en USB Test/src/driveinfo.cpp confía en “DISK_GEOMETRY.BytesPerSector” devuelto por “IOCTL_DISK_GET_DRIVE_GEOMETRY” sin verificar si la llamada tuvo éxito o sin aplicar límites de tamaño. USB Test/src/drivetest.cpp utiliza el valor para la división y para dimensionar un búfer en el heap antes de “memcpy(buffer.data(), &sector, 8)”, por lo que un dispositivo de almacenamiento USB malicioso conectado físicamente puede informar un valor inferior a ocho bytes y causar escrituras fuera de límites repetidas, o informar cero y causar una denegación de servicio por división por cero cuando un usuario inicia una prueba de unidad. La corrupción del heap puede bloquear la aplicación elevada y podría permitir la ejecución de código arbitrario. Este problema se corrige en la versión 1.1.5.","source":"nvd"}],"published":"2026-10-28T15:42:11.023Z","modified":"2026-11-04T23:10:00.223Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7,"rating":"HIGH"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"version":"< 1.1.5","status":"affected"}],"vendor":"n-romanovich","product":"usb-test","source":"cvelist"}],"references":[{"url":"https://github.com/n-romanovich/usb-test/security/advisories/GHSA-cfrv-c9q2-7cr3","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/n-romanovich/usb-test/commit/5b6caac844461024520b02337d3a541fbe128f89","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/n-romanovich/usb-test/releases/tag/release-v1.1.5","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-10-29T18:36:46.958Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116776","url":"https://www.cve.org/CVERecord?id=CVE-2026-116776","licence":"CVE Terms of Use","modified":"2026-10-29T18:37:18.070Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116776","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116776","licence":"Public domain","modified":"2026-11-04T23:10:00.223Z"}],"updatedAt":"2026-11-25T22:59:47.623Z","epss":{"score":0.00211,"percentile":0.12053,"date":"2026-12-01T12:00:22.000Z"}}