BitBox02 USB HID request handling: firmware size checks belong on the trust boundary

BitBox02 firmware before 9.26.2 and bootloader before 1.2.0 contain an out-of-bounds write in the USB HID request handler. CVE-2026-140033 says hid_req() ignores the buffer size for HID SET_REPORT requests. A host that sends an oversized request can cause the device to write beyond the intended buffer. The CVE is rated 8.6 high.

Hardware wallets are designed around a constrained interface. The desktop application, USB transport and device firmware form a chain. A malicious or compromised host normally has limited authority over the wallet because the device asks for confirmation and keeps private keys inside its boundary. A memory-safety flaw in the HID parser can weaken that boundary. The public advisory does not show that private keys can be extracted or transactions signed without confirmation. It does establish that a host-controlled message can corrupt device memory, which is enough to justify priority patching.

The affected component is reachable before a wallet operation. A device attached to a compromised workstation may receive a malformed report while it is idle or paired with the desktop application. Physical access is not necessarily required if the host is malicious, and a supply-chain or remote endpoint compromise can turn a trusted workstation into the attacker. This is why device firmware must assume that the USB peer can send malformed data even if the official client would not.

Update and verify

Install BitBox02 firmware 9.26.2 or later. The bootloader has a separate fixed version, 1.2.0, so users and support teams should not assume that updating the application is equivalent to updating the device. Follow the vendor's signed update process and verify the firmware version in the official application. During the update, rely on the device display and the vendor's documented checks rather than a host message alone.

If a device cannot be updated, stop using it for high-value signing operations. Move funds with a known-good device and verify the recipient and fee on the hardware screen. Do not type a recovery phrase into a computer to work around a firmware failure. A vendor recovery procedure should be followed exactly, and backups should be stored offline.

For fleets or custodial operations, inventory both firmware and bootloader versions. Record serial numbers and update status in an asset system that is independent of the workstation. A desk-level update can be missed when devices are shared or stored as spares. Require a second person or an automated attestation step for treasury wallets.

Host-side controls

Update the desktop application because a fixed client may include additional compatibility or verification changes. Restrict USB device access on shared systems with endpoint policy. Malicious HID traffic can originate from a compromised user session, so the host should not be treated as fully trusted after a malware alert. Use a dedicated workstation for high-value signing and keep it off general-purpose browsing and email.

Review device logs and application prompts for unexpected disconnects, reboots or failed firmware messages after a suspicious host event. A crash can be a symptom, but an absence of visible failure does not prove that no memory corruption occurred. Preserve the device and workstation state if an operation involved an unusually large HID report or a custom client.

The memory-safety fix should validate the declared length before any copy and reject reports larger than the receive buffer. Tests should cover boundary sizes, short packets, fragmented reports and unexpected report IDs. The device should fail safely and remain recoverable without exposing secret material.

Hardware wallets reduce exposure because secrets remain on the device. They do not make the device immune to parser bugs. The correct response combines vendor patching, a verified bootloader version and host controls that treat USB input as untrusted.

References