{
  "id": "CVE-2026-116776",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-116776",
  "published_at": "2026-10-28T15:42:11.023Z",
  "title": "USB Test: Heap-based Buffer Overflow in getSectorSize via untrusted DISK_GEOMETRY.BytesPerSector leads to RCE/DoS",
  "vendor": "n-romanovich",
  "product": "usb-test",
  "cvss": {
    "score": 7,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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(), \u0026sector, 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.",
  "cwe": "CWE-122",
  "cvss_by_source": {
    "cna": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n-romanovich",
        "product": "usb-test",
        "ranges": [
          "\u003c 1.1.5"
        ],
        "fixed_in": [
          "1.1.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade usb-test to 1.1.5 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/n-romanovich/usb-test/security/advisories/GHSA-cfrv-c9q2-7cr3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/n-romanovich/usb-test/commit/5b6caac844461024520b02337d3a541fbe128f89"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/n-romanovich/usb-test/releases/tag/release-v1.1.5"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
