AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 20 Bitcoin

fix(core/bootloader): report the actual error from a failed wipe step

Public commit record

What the developer wrote

Authored by tychovrahe

85/100 · Strong
fix(core/bootloader): report the actual error from a failed wipe step

`send_error_conditionally` ignored its `msg` argument and always sent
"Could not read BLE status", so a host watching a WipeDevice was told the
wrong thing whenever anything but the BLE status read failed -- an
inability to issue a BLE command, to erase bonds, or to erase flash.

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This is a minor bug fix in the Trezor bootloader. When wiping the device, if a step failed, the bootloader always reported the same generic error message ('Could not read BLE status') even when the actual failure was something else, such as failing to erase stored data or issue a Bluetooth command. The fix makes the bootloader report the correct, specific error message. It does not change whether errors happen or how they are handled; it only corrects the message sent to the host computer.

Recommended action

No security action required; treat as normal bug fix. Reviewers may verify that callers of send_error_conditionally pass appropriate static string literals and that the const-correct signature does not introduce new warnings.

Security signals we found

01

Incorrect error reporting in bootloader wipe workflow

02

No change to failure conditions or access control

03

No memory safety, cryptographic, or privilege-escalation issue evident

Risk score

Why this scored 20/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 9/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.