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

Prevent memory_reset_hww from masking flash write failures

Public commit record

What the developer wrote

Authored by cedwies

73/100 · Adequate
Prevent memory_reset_hww from masking flash write failures

memory_reset_hww combined the CHUNK_1 write result and the
shared BLE chunk write using |=, so a later successful
write could hide an earlier failure. Change both writes to
be checked individually and return false on the first
failure, making the function only report success when all
flash writes succeed.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in how the BitBox02 hardware wallet reports whether it successfully erased and rewrote sensitive memory during a factory reset-style operation. Previously, if the first flash write failed but a later write succeeded, the function could incorrectly report overall success, potentially leaving old wallet data partially intact without the user or device realizing it. The fix checks each write separately and stops reporting success if any write fails.

Recommended action

Treat this as a security-relevant bug fix. Verify whether memory_reset_hww() is reachable during device reset, factory reset, or firmware update flows. Review the full function to confirm the CHUNK_1 write result is also checked individually as described. Consider whether a CVE is warranted given the hardware-wallet context and potential for incomplete wipe.

Security signals we found

01

Failure-masking bug in security-critical reset function

02

Flash write success/failure not propagated correctly

03

Potential incomplete wipe of hardware wallet memory

04

Function returning success despite earlier write failure

Risk score

Why this scored 61/100

Our methodology →
Potential impact 18/30
Exploitability 10/25
Stealth signal 12/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/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.