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

fix(core): make sure to increment THP `seq_bit`

Public commit record

What the developer wrote

Authored by Roman Zeyde

72/100 · Adequate
fix(core): make sure to increment THP `seq_bit`

Make it compatible with Suite behaviour in case the last THP ACK is lost.
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in the Trezor hardware wallet's THP (Trezor Host Protocol) communication code. Previously, if the final acknowledgment (ACK) from the computer/app was lost, the device would not properly advance its internal sequence bit. This could cause the next message to use the wrong sequence number, potentially confusing the host software (Trezor Suite) and disrupting communication. The fix ensures the sequence bit is always advanced after a write attempt, even if the ACK is lost or the write is blocked.

Recommended action

Treat as a low-to-moderate reliability/protocol-integrity fix. Review whether the changed 'write blocked' behavior (now raising Timeout instead of breaking the loop) affects any error-handling assumptions in host software. No immediate exploit mitigation is evident, but firmware updates should include this fix to prevent THP state desync.

Security signals we found

01

Protocol state desynchronization between device and host after lost final ACK

02

Alternating-bit sequence number not advanced on error/timeout paths

03

Potential communication stall or confusion with Trezor Suite on reconnection

04

Fix explicitly references compatibility with Suite behavior for lost ACKs

Risk score

Why this scored 42/100

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