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

fix(core): fix `AVOID_RESTARTING_FOR` handling in THP

Public commit record

What the developer wrote

Authored by Roman Zeyde

97/100 · Strong
fix(core): fix `AVOID_RESTARTING_FOR` handling in THP

Similar to how it's done on v1 protocol handler.
Otherwise, recovery flow is interrupted by `GetFeatures` on TS7.

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

What changed, and why it matters

This commit fixes a bug in the Trezor hardware wallet's new THP (Trezor Host Protocol) message handling. Previously, the code ignored a special signal that tells the device not to restart the current flow when certain harmless messages (like GetFeatures) arrive. On the TS7 (Trezor Safe 7) device, this caused the recovery/setup flow to be unexpectedly interrupted. The fix makes THP behave the same as the older v1 protocol handler by correctly passing through that signal.

Recommended action

Treat as a reliability/UX bug fix rather than an active security vulnerability. No immediate incident response is indicated, but firmware builds including this fix should be validated to ensure recovery flows are no longer interrupted by GetFeatures on TS7. Review whether other THP state handlers similarly drop return values from lower-layer handlers.

Security signals we found

01

Workflow interruption / denial-of-service: recovery flow could be aborted by a benign GetFeatures message

02

Protocol state-handling inconsistency between v1 and THP

03

Return-value propagation fix for AVOID_RESTARTING_FOR sentinel logic

Risk score

Why this scored 30/100

Our methodology →
Potential impact 8/30
Exploitability 3/25
Stealth signal 4/15
Affected reach 5/15
Confidence 7/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.