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

fix(core): clear THP channel after `DEVICE_LOCKED` error

Public commit record

What the developer wrote

Authored by Roman Zeyde

93/100 · Strong
fix(core): clear THP channel after `DEVICE_LOCKED` error

It should fix the issue described here:
https://github.com/trezor/trezor-firmware/issues/5885#issuecomment-3345712654
(causing alternating `ThpTransportBusy` and `ThpDeviceLocked` errors)

Currently the device allocates THP buffers to the first channel
receiving a message after an event loop restart.

This is a simple workaround for the above issue, since `ThpDeviceLocked`
happens only during THP handshake, and if it happens, the host will
create and use a new channel.

[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 is a small bug fix in the Trezor hardware wallet firmware. It clears a temporary communication channel when the device reports it is locked during a specific handshake process. Without the fix, the device could get stuck alternating between two error states, potentially disrupting normal USB communication and requiring a reconnect or restart. There is no direct evidence this can be used to steal funds, but any disruption to a security device's communication channel is treated cautiously.

Recommended action

Treat as a reliability/availability fix with possible security-adjacent denial-of-service implications. Users should update firmware when a release containing this commit is available. Developers should follow the linked issue and consider a root-cause fix for THP buffer allocation after event loop restart.

Security signals we found

01

Resource not released after error path (THP channel/buffer remains allocated)

02

Error-state alternation (`ThpTransportBusy` / `ThpDeviceLocked`) indicates state-machine inconsistency

03

Communication protocol handshake failure path patched

04

No changelog entry provided by vendor

05

Fix is described as a workaround, not a root-cause fix

Risk score

Why this scored 37/100

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