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

fix(core): device should be lockable when SD protection is on

Public commit record

What the developer wrote

Authored by Roman Zeyde

85/100 · Strong
fix(core): device should be lockable when SD protection is on

Previously, the device wasn't lockable if the PIN wasn't set.

[no changelog]

(cherry picked from commit 2f762e4c6d745a24def57f871689d68cd58871af)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This update fixes a bug where a Trezor hardware wallet with SD-card protection enabled could not be locked if no PIN was set. The device should be lockable whenever SD protection is active, because the SD card itself acts as a security factor. The change makes the homescreen use a broader 'can lock' check instead of only checking whether a PIN is configured. A new automated test also verifies that pressing and holding the screen can lock the device in this configuration.

Recommended action

Treat as a low-to-moderate security fix. Users relying on SD protection without a PIN should install the updated firmware so the device can actually lock. Review whether any other UI flows still use config.has_pin() as a proxy for lockability and consolidate on can_lock_device().

Security signals we found

01

Access-control logic flaw: lock UI gated on PIN presence instead of actual lock capability

02

Fix aligns lockability predicate with existing can_lock_device() helper

03

SD-protect-without-PIN scenario now covered by automated tests

04

No changelog entry (commit message says [no changelog])

Risk score

Why this scored 43/100

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