TZ
← All projectsTrezor

Trezor firmware

Firmware monorepo for Trezor One, Model T, and Safe devices.

BitcoinHardware walletsNormal
Repository coverage

3882 commits in the local evidence base

Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.

1389security candidates446second-pass queue3263AI analyses
174commits · 30 days
454commits · 60 days
1764commits · 180 days
2913commits · 365 days
Backfill bands
Aug 5 → Feb 61298 seen115 candidatesComplete
Feb 6 → Jun 6775 seen58 candidatesComplete
Jun 6 → Jul 6217 seen13 candidatesComplete
Jul 6 → Aug 5360 seen54 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

68/100 average clarity
890Strong · 80–100
1759Adequate · 60–79
1226Thin · 40–59
7Opaque · 0–39
1security candidate with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
tychovrahe402169360668
Jakub Janků1113373681
Roman Zeyde725232642372
obrusvit336138284364
cepetr310114232259
PrisionMike161108156271
Andrew Kozlik913986267
Petr Susil1159286
Martin Pastyřík311227176
M1nd3r301111253071
Lukas Bielesch12885102065
Ioan Bizău23076230059
Analysis record

Published AI watches

Last scanned 26 minutes ago

Informational 15 AI analysisMessage 80 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): remove Child from layout_delizia

This is a straightforward internal code cleanup in the bootloader user interface of Trezor firmware. It removes a wrapper type called Child that tracked whether child UI components needed repainting. The commit message explains that the bo…

506b71e5by Roman Zeyde+53−683 files
No security note in commit
Informational 12 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(sdk): drop the Bytes wrapper

This commit removes a small internal wrapper type called Bytes that was used to pass around byte buffers. The code now returns the underlying byte buffer directly instead of wrapping it first. There is no visible security fix or behavior c…

085575d4by Lukas Bielesch+3−153 files
No security note in commit
Informational 12 AI analysisMessage 67 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

docs(sdk): document security properties of get_address_mac

This commit only adds documentation comments to an existing function. It does not change any code behavior. The new comments explain that the function computes a security tag (MAC) linking a wallet path, address string, and coin type, and …

Documentation-only changeNo code logic modifiedNo validation added or removed
e4b974eaby matejcik+12−02 files
No security note in commit
Informational 15 AI analysisMessage 80 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): treat trezor-thp as our own crate

This is a supply-chain tooling configuration change. It tells the project's cargo vet auditing tool to treat the in-house 'trezor-thp' crate as first-party code rather than a crates.io package. There is no product behavior change, no vulne…

ec19e104by Jakub Janků+3−01 file
No security note in commit
Informational 15 AI analysisMessage 80 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): vet the vendored stabby crates

This commit is a bookkeeping change to Trezor's Rust supply-chain audit configuration. It tells the project's 'cargo vet' tool to treat three internally vendored 'stabby' crates as if they were published on crates.io, and adds temporary au…

Supply-chain audit configuration gap being closedVendored forked crates previously not vettedExemption covers unreviewed patches due to version-only matching
2a50599fby Jakub Janků+21−01 file
No security note in commit
Informational 15 AI analysisMessage 93 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): teach mass-rebuild-combined.py about flakes

This is a small developer-tooling fix. It changes an internal build helper script so that it uses a newer Nix command ('nix develop') when the project has a 'flake.lock' file, instead of the older 'nix-shell'. The change only affects how t…

524f9fa4by Martin Milata+3−11 file
No security note in commit
Low 32 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): add `requires_unlock` paths helper

This is a small internal cleanup in the Trezor firmware that replaces several direct checks for a special SLIP-25 Bitcoin path with a single helper function called requires_unlock(). It does not change the security rules themselves; it onl…

Refactoring only: no change in access-control policySLIP-25 path gating remains present and centralizedExternal-app crypto path restriction preserved
47ea7912by M1nd3r+17−155 files
No security note in commit
Informational 24 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(legacy): warn before updating bootloader

This commit adds a user confirmation step before the Trezor device updates its bootloader. Previously, the bootloader update began automatically after detecting an older or known bootloader. The change shows a warning screen telling the us…

User confirmation added before destructive bootloader updateWarning about power-loss bricking risk during bootloader eraseBootloader update is a high-privilege, device-modifying operation
451f3f68by Andrew Kozlik+27−02 files
No security note in commit
Informational 13 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(sdk,core): move the IPC structs to Core

This commit is a code cleanup: it moves some data structure definitions from the publicly shared SDK crate into the internal Core firmware crate. The structures describe how apps ask the device to show on-screen prompts and progress bars. …

cb9680c9by Lukas Bielesch+86−12313 files
No security note in commit
Informational 11 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(rust): ignore curve25519-dalek advisory

This commit adds a configuration file telling Trezor's Rust security audit tool to ignore a known security advisory (RUSTSEC-2026-0620) for the curve25519-dalek cryptography library. The commit message states Trezor is not affected by this…

Suppression of a published Rust security advisory (RUSTSEC-2026-0620)Dependency chain involves curve25519-dalek / x25519-dalek used via trezor-noise-rust-cryptoNo code or cryptographic changes in the commit
3efbd915by M1nd3r+6−01 file
Vendor flagged security relevance
Moderate 62 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core, legacy): reject locked SLIP-25 paths

This update fixes a security gap in Trezor hardware wallets. Normally, when users disable strict safety checks, the device allows unusual key paths. However, it was still supposed to block SLIP-25 (CoinJoin) paths unless the user had expli…

Bypass of path validation when safety checks are disabledLocked SLIP-25/CoinJoin paths could be used without authorizationFix applies to both core and legacy firmware
331b3f80by M1nd3r+299−89 files
Vendor flagged security relevance
Low 35 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(sdk): pass uncompress_pubkey key by reference

This commit fixes a Rust programming mistake in how a public-key helper function passes data across the app-to-firmware boundary. The function now passes the 33-byte compressed public key by reference (pointer) instead of copying it by val…

ABI boundary hardening: extern "C" function signature changed from by-value array to by-reference arrayCompiler lint enabled: #![deny(improper_ctypes_definitions)]Cryptographic API affected: ecdsa_uncompress_pubkey handles public keys
6639995eby Lukas Bielesch+10−85 files
No security note in commit
Informational 15 AI analysisMessage 45 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

style(core): fix clippy errors in extapp UI code

This commit is a code-style cleanup that fixes warnings reported by the Rust linter (Clippy) in user-interface code for external apps. It replaces some verbose conversion calls with simpler equivalents and removes an unnecessary pair of pa…

4c17c2baby Lukas Bielesch+7−81 file
No security note in commit
Informational 15 AI analysisMessage 83 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore: bump versions

This commit only changes version numbers and translation metadata across Trezor firmware components. There are no code logic changes, bug fixes, or security-related modifications in the diff. It is a routine release bookkeeping step.

332283eaby Jakub Janků+16−1613 files
No security note in commit
Informational 13 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(sdk): gate the app API under app_runtime

This commit is a straightforward internal code reorganization. It moves several app-facing Rust modules (error handling, crypto, UI, logging, wire protocol, etc.) under a single `app_runtime` module and re-exports them at the crate root. T…

16ce7bbfby Lukas Bielesch+32−3611 files
No security note in commit
Informational 17 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(legacy): handle AppError failure type

This commit adds a missing human-readable error message for a new failure type called 'AppError' in the older Trezor (legacy) firmware. Without this change, if the device encountered an AppError it would fall through to a generic 'Firmware…

Missing enum case in failure-reporting pathPotential misclassification of runtime errors to usersNo memory safety, cryptographic, or authorization changes
b7aef814by Lukas Bielesch+3−01 file
No security note in commit
Moderate 59 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core): attribute user MLSPERR to unprivileged task

This commit fixes a bug in the Trezor firmware's task scheduler where a specific hardware memory fault (related to lazy floating-point register saving) was being blamed on the wrong task. Previously, the kernel/privileged code could be inc…

Incorrect fault attribution between privileged kernel and unprivileged taskPotential wrong task termination/killing due to misattributed memory faultLazy floating-point state preservation (FP lazy stacking) edge case
b3e499f5by cepetr+50−51 file
No security note in commit
Moderate 65 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core): validate unprivileged task psp

This commit adds a safety check inside the Trezor hardware wallet's core task scheduler. Before saving a task's state during a context switch, the operating system now verifies that the task's stack pointer points to a valid location withi…

Kernel writes to user-controlled pointer without bounds validation (pre-patch)Privilege escalation / memory corruption via forged PSP in unprivileged taskAddition of explicit PSP range validation before context save
8097a4a5by cepetr+42−21 file
No security note in commit
Informational 15 AI analysisMessage 88 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core/delizia): remove stale Pad::clear() call

This is a tiny build-fix patch, not a security change. A previous code cleanup removed a function called Pad::clear(), but a new screen in the passphrase input still tried to call it, causing the T3T1 hardware wallet firmware build to fail…

57b35a8fby Jakub Janků+0−11 file
No security note in commit
Informational 12 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core/rust/crypto): add ECDSA public key uncompression

This commit adds a new internal helper function that converts compressed ECDSA public keys into their uncompressed form. It is a feature addition with no visible security bug: the code validates the key prefix, uses the correct buffer size…

be9504b9by Lukas Bielesch+57−02 files
No security note in commit
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

Security candidatefeat(core/bootloader): signal firmware corrupted in featuresby tychovrahe · e1d8700e · Sep 25, 2025 · 19 filesMessage 62 · AdequateInformational 19Details
Commit message · tychovrahe

feat(core/bootloader): signal firmware corrupted in features

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
update trustboot or update path
AI analysis · Informational 19/100

This commit adds a new flag called firmware_corrupted to the device's Features message, which is sent to the host computer when the Trezor is in bootloader mode. Previously, the existing firmware_present flag only told the host whether any firmware was loaded, but its comment said 'valid firmware loaded.' The change makes the bootloader explicitly report whether the loaded firmware is corrupted, and it updates the comment on firmware_present to clarify it just means firmware is loaded. This is an informational/UX improvement, not a fix for a vulnerability in the device itself.

Security candidaterefactor(core/bootloader): simplify function headers by using one struct with all needed FW infoby tychovrahe · ea5bd4b8 · Sep 25, 2025 · 11 filesMessage 62 · AdequateInformational 15Details
Commit message · tychovrahe

refactor(core/bootloader): simplify function headers by using one struct with all needed FW info

[no changelog]

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
update trustboot or update path
AI analysis · Informational 15/100

This commit is a straightforward code cleanup in the Trezor bootloader. It bundles three pieces of firmware information (vendor header, image header, and whether firmware is present) into a single struct and passes that struct around instead of three separate arguments. There is no change to security logic, no bug fix, and no new feature.

Security candidatefix(core/bootloader): timeout FW installation when the next message doesn't arrive in timeby tychovrahe · 3941195a · Sep 25, 2025 · 1 fileMessage 62 · AdequateLow 49Details
Commit message · tychovrahe

fix(core/bootloader): timeout FW installation when the next message doesn't arrive in time

[no changelog]

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
update trustboot or update path
AI analysis · Low 49/100

This commit adds a 10-second timeout to the Trezor bootloader's firmware update process. Previously, if the host computer stopped sending firmware pieces during an update, the bootloader could wait forever in a special update mode. The fix makes the device give up and show a failure screen if no next message arrives within 10 seconds. This is a hardening change: it reduces the window during which a device is stuck in a firmware-update state, which could matter if an attacker has physical or local access, but the commit itself does not describe a specific attack or vulnerability.

AI review queuedfeat(core/prodtest): Check device certificate chain before storing it.by Andrew Kozlik · b4766692 · Sep 25, 2025 · 2 filesMessage 62 · AdequateLow 42Details
Commit message · Andrew Kozlik

feat(core/prodtest): Check device certificate chain before storing it.

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
second-pass: broader security terminology
AI analysis · Low 42/100

This commit moves a certificate-chain validation check so it runs before a device certificate is permanently stored in secure hardware, rather than after. Previously, an invalid device certificate could be written to the chip before the code noticed and rejected it. The change is in factory production-test tools (prodtest), not normal user wallet firmware, so it mainly affects manufacturing/ provisioning rather than end-user devices in the field.

Lower-priorityfeat(core/prodtest): Add trusted anchors for device certificates.by Andrew Kozlik · 00742eb2 · Sep 25, 2025 · 4 filesMessage 62 · AdequateLow 35Details
Commit message · Andrew Kozlik

feat(core/prodtest): Add trusted anchors for device certificates.

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Low 35/100

This commit updates the Trezor production-test firmware to recognize and trust a new set of manufacturer root public keys when validating device certificates. It also refactors where those keys are stored so both certificate checking and the secure provisioning channel use the same key list. The change is a feature addition, not a fix for a known vulnerability, and it only affects the factory/prodtest firmware, not the end-user wallet firmware.

Lower-prioritychore(core): move `paired_cache` to `trezor.wire.thp`by Roman Zeyde · b9411a6b · Sep 25, 2025 · 6 filesMessage 77 · AdequateInformational 15Details
Commit message · Roman Zeyde

chore(core): move `paired_cache` to `trezor.wire.thp`

Also, log `ThpPairedCache`-related events.

[no changelog]

77/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit is a routine code cleanup: it moves a small helper module that stores Bluetooth pairing information from one folder to another and adds extra debug logging. There is no change to how the device protects secrets, pairs with phones, or handles untrusted input. It is not a security fix.

Security candidatechore(core): make `host_name` & `app_name` required also in `ThpCredentialMetadata`by Roman Zeyde · 5bab2029 · Sep 25, 2025 · 7 filesMessage 62 · AdequateLow 28Details
Commit message · Roman Zeyde

chore(core): make `host_name` & `app_name` required also in `ThpCredentialMetadata`

[no changelog]

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
credential or privilege state
AI analysis · Low 28/100

This commit tightens a data structure used during Trezor's new host pairing protocol (THP). It makes two text fields—host_name and app_name—mandatory instead of optional, and adds runtime checks that they are present before creating a pairing credential. On its own this is a defensive hardening change, not a fix for an active vulnerability. It reduces the chance that a paired host could be stored or shown to the user without an identifiable name, which could help prevent social-engineering or UI-confusion attacks.

Lower-prioritychore(core): libtropic - modify `tropic01` to adhere to `libtropic_port` API [no changelog]by M1nd3r · f54eb927 · Sep 25, 2025 · 1 fileMessage 77 · AdequateInformational 15Details
Commit message · M1nd3r

chore(core): libtropic - modify `tropic01` to adhere to `libtropic_port` API
[no changelog]

77/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 15/100

This is a routine code cleanup in Trezor firmware. It updates a hardware driver for the Tropic01 secure chip so its function signatures match a newer version of the underlying library API. The actual behavior of the code is unchanged; only the names of internal data structures were updated. There is no indication this fixes or introduces a security problem.

Lower-prioritychore(vendor): update libtropic to 1.0.0 [no changelog]by M1nd3r · 67bd342c · Sep 25, 2025 · 1 fileMessage 77 · AdequateInformational 2Details
Commit message · M1nd3r

chore(vendor): update libtropic to 1.0.0
[no changelog]

77/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 2/100

This commit updates a third-party vendor library called libtropic from one version to version 1.0.0. The actual code changes are not visible because only a Git submodule reference was updated. There is no information in the commit message or supplied materials indicating this is a security fix or that it addresses any vulnerability.

Lower-prioritychore(core): libtropic - rename timeout to timeout_ms [no changelog]by M1nd3r · 8b6e005a · Sep 25, 2025 · 1 fileMessage 77 · AdequateInformational 15Details
Commit message · M1nd3r

chore(core): libtropic - rename timeout to timeout_ms
[no changelog]

77/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 15/100

This is a simple variable rename from 'timeout' to 'timeout_ms' in a single function. It does not change any behavior, logic, or security properties of the code. There is no security issue here.

Lower-prioritychore(prodtest): libtropic - remove `max_len` from `lt_get_info_riscv_fw_ver()` and `lt_get_info_spect_fw_ver()` [no changelog]by M1nd3r · 58e63d89 · Sep 25, 2025 · 1 fileMessage 85 · StrongInformational 11Details
Commit message · M1nd3r

chore(prodtest): libtropic - remove `max_len` from `lt_get_info_riscv_fw_ver()` and `lt_get_info_spect_fw_ver()`
[no changelog]

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
AI analysis · Informational 11/100

This is a small code cleanup in Trezor's internal production-testing tool. It removes an unused `max_len` argument from two helper functions that read firmware version numbers from a Tropic chip during manufacturing tests. There is no indication this change fixes a security bug or introduces one; it simply follows an updated library API.

Security candidatechore(core): libtropic - remove obsolete bug workaround [no changelog]by M1nd3r · f52720ee · Sep 25, 2025 · 1 fileMessage 77 · AdequateInformational 12Details
Commit message · M1nd3r

chore(core): libtropic - remove obsolete bug workaround
[no changelog]

77/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
Why it was queued
seed or entropy path
AI analysis · Informational 12/100

This commit removes a small, unexplained workaround in the hardware wallet's random number generator code. The workaround previously added 4 extra bytes to a temporary buffer when generating randomness. The change makes the code cleaner and slightly more correct, but there is no indication it fixes an active security bug. It appears to be routine cleanup.

Lower-prioritystyle(prodtest): don't wrap linesby Ondřej Vejpustek · 49500136 · Sep 25, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Ondřej Vejpustek

style(prodtest): don't wrap lines

[no changelog]

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100

This is a purely cosmetic code-style change. It removes line breaks inside long C expressions so each expression fits on a single line. The actual values and logic are unchanged, so it has no security effect.

Lower-priorityfeat(prodtest): restrict access to 64 MAC-and-destroy slotsby Ondřej Vejpustek · dc186216 · Sep 25, 2025 · 2 filesMessage 62 · AdequateLow 42Details
Commit message · Ondřej Vejpustek

feat(prodtest): restrict access to 64 MAC-and-destroy slots

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Low 42/100

This commit tightens access permissions in the Trezor production-test firmware for a secure chip feature called 'MAC-and-destroy' slots. It removes Pairing Key 1's ability to use the first 64 of these one-time slots, leaving only Pairing Key 2 (and in some configurations Pairing Key 3) with access. MAC-and-destroy slots are designed to be permanently destroyed after use, so restricting who can reach them reduces the risk that a less-trusted key could waste or misuse them during manufacturing tests.

Security candidatefeat(core/eckhart): widen border shapeby obrusvit · 46cb5349 · Sep 25, 2025 · 18 filesMessage 100 · StrongInformational 15Details
Commit message · obrusvit

feat(core/eckhart): widen border shape

- instead of drawing the border 1px towards center, make the border 1px
wider and draw it at the exact edges
- this is to prevent underlying shapes from peeking at the sides
- effectively reverts
https://github.com/trezor/trezor-firmware/pull/5510

[no changelog]

100/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
Why it was queued
boot or update path
AI analysis · Informational 15/100

This commit is a visual design tweak for the Trezor hardware wallet's screen border. It changes how the decorative border is drawn so it sits exactly at the screen edges instead of being inset by one pixel. There is no security relevance: no cryptography, authentication, memory handling, or user-confirmation logic is changed.

Security candidatefix(core): invalidate THP credential authentication key on `Forget all`by Roman Zeyde · 7e094e35 · Sep 25, 2025 · 1 fileMessage 67 · AdequateModerate 58Details
Commit message · Roman Zeyde

fix(core): invalidate THP credential authentication key on `Forget all`

[no changelog]

67/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Names security-relevant behavior explicitly! No meaningful explanatory body
Why it was queued
access controldefensive validationcredential or privilege state
AI analysis · Moderate 58/100

This commit fixes a security bug in the Trezor hardware wallet's Bluetooth handling. When a user chose 'Forget all' Bluetooth pairings, the device was not clearing a special key used for a feature called THP (Trezor Host Protocol) credential authentication. As a result, after reconnecting, the device might trust the other side without asking the user to confirm again. The fix adds a call to invalidate that key whenever all Bluetooth pairings are erased.

Lower-priorityfix(core): don't raise `FirmwareError("button request ack pending")` on THP debug buildsby Roman Zeyde · d009962d · Sep 24, 2025 · 1 fileMessage 89 · StrongLow 35Details
Commit message · Roman Zeyde

fix(core): don't raise `FirmwareError("button request ack pending")` on THP debug builds

Otherwise, it may cause THP channel to desync due to double write.

[no changelog]

89/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Explains rationale or failure mode
AI analysis · Low 35/100

This commit changes how a Trezor hardware wallet handles an internal error condition during user interactions. In debug builds using the new THP (Trezor Host Protocol) communication channel, the device no longer crashes with a 'FirmwareError' when a button-acknowledgment state is still pending. Instead, it logs the issue and continues. The old behavior could cause the THP channel to become desynchronized because the error path might write to the channel twice. The fix prevents a possible communication desync but deliberately suppresses a previously fatal internal-consistency check.

Lower-priorityfix(core): make sure to signal `ButtonRequest` handler to exitby Roman Zeyde · 10d0dbb5 · Sep 24, 2025 · 1 fileMessage 89 · StrongLow 44Details
Commit message · Roman Zeyde

fix(core): make sure to signal `ButtonRequest` handler to exit

`button_request_box` value should be replaced to `None`,
otherwise `button_request_task` will not exit.

[no changelog]

89/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Explains rationale or failure mode
AI analysis · Low 44/100

This Trezor firmware fix ensures a background task that handles on-device button prompts is properly shut down when a screen layout finishes. Previously, the signal meant to stop that task might not be delivered, leaving the task running. The patch uses a 'replace' flag to guarantee the stop signal is placed in the queue. A stuck button-request task could cause the device and host software to get out of sync, potentially leading to confusing UI states or unexpected behavior during wallet operations.

Security candidaterefactor(core): remove useless change_code paramsby Ioan Bizău · 0b2124a1 · Sep 24, 2025 · 15 filesMessage 57 · ThinInformational 20Details
Commit message · Ioan Bizău

refactor(core): remove useless change_code params

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
cryptography-sensitive pathboot or update pathauthentication path
AI analysis · Informational 20/100

This commit is a code cleanup: it removes unused title, description, and information parameters from the PIN/wipe-code setup confirmation flow and lets each device layout pick the correct text strings internally based on whether the user is setting a PIN or a wipe code. There is no obvious security bug introduced; it is a refactoring change with a [no changelog] tag.

Lower-prioritychore(tests): update fixturesby Ioan Bizău · 6c389ac5 · Sep 24, 2025 · 3 filesMessage 57 · ThinInformational 15Details
Commit message · Ioan Bizău

chore(tests): update fixtures

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only updates automated test files. It renames a test helper class from InputFlowNewCodeCancel to InputFlowNewWipeCodeCancel and adds expected screen-image hashes for a wipe-code cancellation test across many languages and device models. No firmware source code is changed, so this cannot affect real device security.

Lower-priorityfeat(tests): wipe code setup cancelby Ioan Bizău · 40a1da77 · Sep 24, 2025 · 2 filesMessage 67 · AdequateInformational 15Details
Commit message · Ioan Bizău

feat(tests): wipe code setup cancel

[no changelog]

67/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds a new automated test that checks whether a user can cancel the setup of a wipe code on a Trezor device. It does not change any firmware code, user-facing behavior, or security logic. There is no security issue here.

Security candidatefix(core): temporary fix for RSOD triggered by rng_fill_buffer_strongby cepetr · 2563de4d · Sep 24, 2025 · 1 fileMessage 42 · ThinLow 44Details
Commit message · cepetr

fix(core): temporary fix for RSOD triggered by rng_fill_buffer_strong

[no changelog]

42/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body! Contains work-in-progress language
Why it was queued
entropy or randomnessseed or entropy path
AI analysis · Low 44/100

This commit is a temporary hotfix that disables the Tropic secure-element randomness source in non-production builds to stop a Red Screen of Death (RSOD) crash triggered by the function rng_fill_buffer_strong. The change wraps the Tropic random-buffer mixing step in a PRODUCTION preprocessor guard, so it only runs in production firmware. In non-production/debug builds, the function will fall back to whatever other entropy sources remain (likely the STM32 hardware RNG plus optional optiga mixing). The commit message explicitly calls this a temporary fix and says to delete it later, so it is a workaround rather than a root-cause fix. There is no direct evidence in the commit that this is exploitable, but any change to cryptographic randomness generation in a hardware wallet is a security-sensitive signal.

Lower-priorityfix(core): wait for `ButtonRequest` task to avoid THP desyncby Roman Zeyde · 9fca1667 · Sep 24, 2025 · 1 fileMessage 97 · StrongLow 42Details
Commit message · Roman Zeyde

fix(core): wait for `ButtonRequest` task to avoid THP desync

Make sure ButtonRequest is ACKed, before closing ButtonRequest handler task.
Otherwise, THP channel may be desynced (due to two consecutive writes).

[no changelog]

97/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Low 42/100

This commit fixes a timing bug in the Trezor hardware wallet's user-interface code. Previously, the device could close its 'button request' task before the host computer had acknowledged the request, which could cause the communication channel (THP) to become confused by two messages sent too close together. The fix makes the device wait for the acknowledgement before finishing. There is no evidence in the commit or supplied references that this was a security vulnerability exploitable by an attacker, and the vendor did not label it as such.

Lower-priorityci(core): reduce click test timeout to 40mby Roman Zeyde · 60c20c4d · Sep 24, 2025 · 1 fileMessage 67 · AdequateInformational 15Details
Commit message · Roman Zeyde

ci(core): reduce click test timeout to 40m

[no changelog]

67/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit only changes how long a specific automated test job is allowed to run in GitHub Actions, shortening the timeout from 90 minutes to 40 minutes. It does not modify any firmware code, cryptography, user interface, or device behavior. There is no security relevance.

Lower-prioritychore(core): remove unused THP `Channel` methodby Roman Zeyde · ac1aaba2 · Sep 24, 2025 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · Roman Zeyde

chore(core): remove unused THP `Channel` method

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This commit simply deletes an unused helper method named write_handshake_message that forwarded its work to another method. There is no functional change, no bug fix, and no security relevance visible in the code change.