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

refactor(core): show backup success after I/O-related errors

Public commit record

What the developer wrote

Authored by Roman Zeyde

93/100 · Strong
refactor(core): show backup success after I/O-related errors

In case the host is unavailable, #6651 will stop sending ButtonRequests.

This PR makes sure that `show_backup_success()` won't fail if there was
an error during the backup process - so the success screen will be
shown to the user.

Currently THP debug builds fail with an assertion if the FW tries to
write again before the previous write was ACKed, so this PR makes sure
that after an error no ButtonRequest will be sent after #6651 is merged.

Note: writing the secret to storage is not affected by this change
(since it doesn't access the active context / button request handler).

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

What changed, and why it matters

This change widens the code's error-swallowing behavior during wallet setup so that I/O problems (like a disconnected computer) don't crash the backup flow and still show a success screen. It is described as a robustness/refactor fix, not a security fix. There is no direct evidence it introduces a vulnerability, but it does mean certain failures during backup could be silently ignored and the user might see 'success' even though something went wrong.

Recommended action

Treat as a code-quality/robustness change rather than a security patch. Review whether silently swallowing errors around `store_mnemonic_secret` and `show_backup_success` could mask real backup or storage failures; consider ensuring the user is clearly informed if backup was not fully completed before showing a success screen. No immediate security response is indicated by the commit itself.

Security signals we found

01

Error suppression scope expanded to include storage writes and success UI

02

Success screen may be shown despite prior I/O or backup errors

03

Described as refactor/robustness, not a security vulnerability fix

04

No changelog entry provided

05

Depends on behavior of unmerged PR #6651

Risk score

Why this scored 21/100

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