TZ
← All projectsTrezor

Trezor firmware

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

BitcoinHardware walletsNormal
Repository coverage

2667 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.

921security candidates311second-pass queue2660AI analyses
322commits · 30 days
549commits · 60 days
1358commits · 180 days
2638commits · 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.

66/100 average clarity
478Strong · 80–100
1321Adequate · 60–79
863Thin · 40–59
5Opaque · 0–39
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
tychovrahe292104292461
Roman Zeyde577181575272
PrisionMike945994273
Andrew Kozlik712470265
obrusvit21376213164
Jakub Janků22919182
Martin Pastyřík23823173
cepetr19682196059
Ioan Bizău23076230059
M1nd3r20772207071
Lukas Bielesch846784067
Martin Milata17446174063
Analysis record

Published AI watches

Last scanned 5 minutes ago

Low 27 AI analysisMessage 93 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): digest EIP-1559/EIP-7702 magic without RLP encoding

This commit is a small internal cleanup in Trezor's Ethereum signing code. It changes how two special 'magic' bytes (the transaction type markers for newer Ethereum transaction formats) are fed into the cryptographic hash. Previously the c…

Refactor of cryptographic hashing path for Ethereum transaction signingRemoval of implicit assumption that RLP encodes small integers as single bytesChange affects EIP-1559 and EIP-7702 transaction type markers
2362bc6fby Roman Zeyde+6−32 files
No security note in commit
Informational 15 AI analysisMessage 98 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

test(core): test RLP self-encoding bytestrings

This commit only adds a new unit test to the Trezor firmware codebase. It verifies that very short Ethereum RLP-encoded byte strings and small positive integers encode to themselves, which is a known property of the RLP specification. No p…

41538733by Roman Zeyde+16−01 file
No security note in commit
Informational 18 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): remove sha1 from regular FW

This commit removes the SHA-1 hashing function from the regular Trezor firmware. SHA-1 is an old, weak hash algorithm that is no longer considered secure for sensitive uses. The change deletes the code that exposes SHA-1 to apps running on…

Removal of a deprecated cryptographic primitive (SHA-1) from the firmware API surfaceReduction of attack surface and prevention of future misuse of a collision-vulnerable hashNo direct vulnerability patch or memory-safety bug is present in the diff
16d15774by M1nd3r+0−2006 files
No security note in commit
Low 27 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(crypto): pass static public key to `noise_xxpsk3_*_init()`

This commit changes how a cryptographic library sets up secure connections. Previously, the code automatically calculated the public key from the private key. Now, the caller must provide the public key directly. This is a code-quality ref…

Cryptographic key handling changed: public key is now supplied rather than derivedPotential reduction of key-mismatch risk if caller provides correct public keyNew null-pointer check added for static_public_key
1b3128a4by Ondřej Vejpustek+20−92 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(crypto): change order of parameters

This commit simply reorders the arguments of an internal function called dh() and updates every place that calls it. The actual math and security behavior are unchanged; it is a code cleanup with no security effect.

33a119eeby Ondřej Vejpustek+15−151 file
No security note in commit
Informational 15 AI analysisMessage 47 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(crypto): prefix enums

This commit simply renames two groups of internal status labels (called enums) in the Trezor firmware's cryptographic code. The old names like WAITING_FOR_REQUEST1 were shared between two different parts of the code, so the developer gave …

f1c74046by Ondřej Vejpustek+26−222 files
No security note in commit
Low 37 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(crypto): prevent calling `memzero(NULL, ...)`

This commit fixes three places in the Trezor firmware's cryptographic code where a memory-clearing function could be called with a NULL pointer. In practice, passing NULL to memzero is harmless on Trezor's platform (it does nothing), but i…

NULL pointer passed to memory-zeroing helper in cryptographic codeUndefined behavior in C standard library contractDefensive hardening in Noise protocol implementation
0394e934by Ondřej Vejpustek+11−51 file
No security note in commit
Informational 18 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(crypto): return remote static key from `noise_xxpsk3_*_handle_*()`

This commit is a code cleanup (refactor) for the cryptographic handshake code used in Trezor devices. It changes how the other party's long-term public key is returned to the caller: instead of storing it inside an internal state structure…

Removal of long-term public key storage from internal handshake stateCaller-supplied output buffer for remote static public key reduces internal secret retentionError-path memzero of returned key material on failure
3ead1aa6by Ondřej Vejpustek+79−423 files
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(xtask): rename ProjectProfile to ProjectConfig

This commit is a simple rename from 'ProjectProfile' to 'ProjectConfig' in two Rust source files. It only changes variable names, struct names, and error messages. There is no change to program logic, security behavior, or how data is hand…

581b37bcby cepetr+18−182 files
No security note in commit
Informational 15 AI analysisMessage 47 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(xtask): introduce ResolvedBuildArgs

This commit is a straightforward internal code refactor in Trezor's build tooling. It introduces a new ResolvedBuildArgs structure that centralizes default values for command-line build options before they are used. There is no change to u…

c24d1be8by cepetr+99−295 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(xtask): make build args tristate

This commit is a straightforward internal refactor of the Trezor firmware build tool's command-line argument handling. It changes many on/off flags from plain booleans to optional booleans so they can explicitly be set to true, false, or l…

271e249aby cepetr+57−561 file
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(xtask): introduce build options

This commit is a straightforward internal code reorganization in Trezor's build tooling. It moves build-option definitions from one Rust source file to a new module and adds the ability to load those options from a configuration file. Ther…

75085e2aby cepetr+275−2007 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(xtask): introduce build presets

This commit is a developer tooling change for the Trezor firmware build system. It introduces 'build presets'—named configuration bundles stored in TOML files—so developers can select common build settings with a single command-line flag i…

eefe8f7fby cepetr+397−419 files
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(xtask): upgrade manifest.yaml for tf-tools 0.3.0

This commit is a routine update to a build-system manifest file used by Trezor's internal tooling. It reorganizes and re-labels feature flags (for example, moving options between 'Features', 'Debugging', and 'Signing' groups and simplifyin…

57b28b89by cepetr+86−1351 file
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core): add tf-tools 0.3.1+ configuration file

This commit adds a single configuration file for a Trezor developer tool (a VS Code extension). It only points the tool to existing folders in the repository and contains no executable code, no secrets, and no changes to firmware behavior.…

e554f618by cepetr+8−01 file
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(xtask): rename ResolvedBuild to ResolvedBuildFeatures

This commit is a simple internal code cleanup: it renames a Rust data structure called ResolvedBuild to ResolvedBuildFeatures and updates the places that use it. There are no functional changes, no security fixes, and no changes to how the…

aaa2780bby cepetr+5−52 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core): fix up clippy warnings in storage.rs

This is a tiny code cleanup commit that replaces two calls to `ptr::null()` with Rust's `unwrap_or_default()` to silence automated Clippy lint warnings. It does not change what value is produced (still a null pointer when no salt is provid…

62354461by cepetr+2−21 file
No security note in commit
Informational 15 AI analysisMessage 47 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(xtask): simplify dependencies

This commit is a straightforward internal code cleanup in Trezor's build tooling. It moves a data structure and two helper methods from one Rust source file to another and updates callers accordingly. There is no change to user-facing beha…

6268349fby cepetr+9−193 files
No security note in commit
Informational 15 AI analysisMessage 47 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

docs: add xtask documentation

This commit only adds documentation. It updates the table of contents and adds a new markdown page plus a diagram explaining the project's 'xtask' build helper. No code, build scripts, or firmware logic was changed, so it cannot introduce …

4879dababy cepetr+296−03 files
No security note in commit
Informational 17 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(xtask): introduce project-toml build-options

This commit is a build-system refactoring for Trezor firmware. It moves the mapping of command-line build options to Rust/cargo features out of hard-coded Rust logic and into per-project TOML files. It also adds a small change so debug bui…

Build-option mapping now lives in project.toml files, increasing the attack surface for supply-chain/build-configuration tamperingMakefile change automatically enables debug-link for PYOPT=0 debug buildsValidation added to reject storage_insecure_testing_mode in production builds
d44de007by cepetr+681−40817 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(common): introduce `Failure_InProgress` codeby Roman Zeyde · 103146f3 · Feb 4, 2026 · 6 filesMessage 72 · AdequateInformational 19Details
Commit message · Roman Zeyde

feat(common): introduce `Failure_InProgress` code

It will be used to indicate that an non-interruptible workflow is
currently running on the device.

[no changelog]

72/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
Why it was queued
boot or update path
AI analysis · Informational 19/100

This commit adds a new error code called Failure_InProgress to the Trezor firmware's communication protocol. It does not change any security logic; it simply gives the device a standardized way to tell a connected computer that a non-interruptible task is currently running. The actual behavior of blocking or allowing interruptions is not part of this change.

Security candidatechore(common): remove unused `Failure_BufferError` codeby Roman Zeyde · fee2f283 · Feb 4, 2026 · 6 filesMessage 62 · AdequateInformational 15Details
Commit message · Roman Zeyde

chore(common): remove unused `Failure_BufferError` code

[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
boot or update path
AI analysis · Informational 15/100

This commit removes an unused error code named Failure_BufferError from the Trezor firmware's protocol definitions and generated code. It is a cleanup change with no security relevance: the code was not being used, and the protobuf field number is now marked as reserved to prevent future accidental reuse.

Lower-prioritybuild(core): split English strings blob into multiple linesby Roman Zeyde · c1ff04c4 · Feb 4, 2026 · 2 filesMessage 89 · StrongInformational 15Details
Commit message · Roman Zeyde

build(core): split English strings blob into multiple lines

Otherwise, concurrent string updates result in a merge conflict.

[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
Why it was queued
translation-only discount
AI analysis · Informational 15/100

This commit is purely a build/code-generation formatting change. It splits a very long single-line string constant into many shorter lines using Rust's concat! macro, and reformats a long array of numbers into multiple lines. The goal is to reduce Git merge conflicts when multiple people update translation strings at the same time. No user-facing behavior, security logic, or functionality changes.

Lower-priorityfix(l10n): gen, style, fixtures [no changelog]by Michal Kazda · 8c2deb40 · Feb 4, 2026 · 4 filesMessage 57 · ThinInformational 15Details
Commit message · Michal Kazda

fix(l10n): gen, style, fixtures [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 is a routine localization (translation) update. It changes a few user-facing text strings—such as capitalization of 'Locktime' and wording of backup/recovery prompts—and regenerates the matching string tables and test fixtures. There is no code behavior change and no security relevance.

Lower-priorityfix(l10n): various en.json fixes [no changelog]by Michal Kazda · 73f41e3f · Feb 4, 2026 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · Michal Kazda

fix(l10n): various en.json fixes [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
translation-only discount
AI analysis · Informational 15/100

This commit only changes English text strings in a translation file. It fixes capitalization, adds missing translations for some product variants, and clarifies one recovery message. There is no code behavior change and no security impact.

Lower-prioritychore(core): update UI fixturesby Roman Zeyde · e2db64e2 · Feb 4, 2026 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · Roman Zeyde

chore(core): update UI fixtures

[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 only updates expected test result fingerprints (hashes) in a single test data file. It does not change any firmware code, cryptographic logic, or user-facing behavior. There is no security issue in this change itself.

Lower-priorityrefactor(core): buffer usage check refactoringby bleska · 858e9287 · Feb 3, 2026 · 1 fileMessage 72 · AdequateInformational 16Details
Commit message · bleska

refactor(core): buffer usage check refactoring

Improving the code legibility of pwm_data[] buffer usage check.

[no changelog]

72/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI analysis · Informational 16/100

This commit refactors how the Trezor hardware wallet's backlight driver manages its internal DMA buffers. It replaces direct memory writes with helper functions that add bounds checks and a 'dirty' flag to track whether a buffer has been modified. The change improves code readability and defensive programming but does not appear to fix an actively exploitable security bug. It is labeled by the developer as a refactoring with no changelog entry.

Lower-priorityfix(core): pwm_data[] buffer clear check fixby bleska · 3706a653 · Feb 3, 2026 · 1 fileMessage 80 · StrongLow 31Details
Commit message · bleska

fix(core): pwm_data[] buffer clear check fix

A bug in pwm_data[] buffer clear check has been found and fixed. The pwm_data[][1] array element is used when the respective buffer is used for setting of new pulses' value to TPS61062 IC.

[no changelog]

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
AI analysis · Low 31/100

This commit fixes a small logic bug in the Trezor hardware wallet's screen backlight driver for STM32U5 devices. The driver uses a two-element buffer (pwm_data[][0] and pwm_data[][1]) to send pulse values to a backlight power chip (TPS61062). The old code only checked whether the first element was 'empty' (set to UINT16_MAX) before deciding to clear the buffer, ignoring the second element. This meant the buffer could fail to be cleared when it should have been, potentially leaving stale pulse values and causing incorrect backlight behavior or visual glitches during brightness transitions.

Lower-prioritychore(core): adjust core to be compatible with libtropic 3.1.0by M1nd3r · aaa34772 · Feb 3, 2026 · 4 filesMessage 62 · AdequateInformational 15Details
Commit message · M1nd3r

chore(core): adjust core to be compatible with libtropic 3.1.0

[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
AI analysis · Informational 15/100

This commit is a routine build-system update that swaps two source files in the list of files compiled for the Trezor T3W1 hardware model and its emulator. It removes references to files named lt_l1_port_wrap.c and lt_random.c and adds a new file named lt_port_wrap.c, so the project builds against version 3.1.0 of an external library called libtropic. There is no indication in the commit of any security bug, vulnerability fix, or behavior change beyond keeping the build compatible with the newer library version.

Lower-prioritychore(vendor): update libtropic to v3.1.0by M1nd3r · b7309609 · Feb 3, 2026 · 1 fileMessage 80 · StrongInformational 15Details
Commit message · M1nd3r

chore(vendor): update libtropic to v3.1.0

Release: https://github.com/tropicsquare/libtropic/releases/tag/v3.1.0

[no changelog]

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100

This commit updates a bundled third-party library called libtropic from one version to another (v3.1.0). The change is a single-line version bump in a vendor submodule. There is no code diff shown, no description of any bug or security fix, and no external security advisory provided. On its own, this looks like a routine dependency maintenance update.

Lower-prioritytest(core): close transport in `BackgroundDeviceHandler.kill_task()`by Roman Zeyde · 36705f61 · Feb 3, 2026 · 3 filesMessage 99 · StrongInformational 15Details
Commit message · Roman Zeyde

test(core): close transport in `BackgroundDeviceHandler.kill_task()`

Not sure why it was removed in 78ecfb2caac98337fae74ea1d6f607c7cf015395.

[no changelog]

99/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✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit fixes a test helper so it properly closes the USB/transport connection when a background test task is killed. It only touches test code, not the firmware or production wallet code, so it has no direct security impact on real Trezor devices or users.

Lower-priorityrefactor(python): inline `ThpErrorCode.to_exception()`by Roman Zeyde · 956d74d1 · Feb 3, 2026 · 1 fileMessage 62 · AdequateInformational 15Details
Commit message · Roman Zeyde

refactor(python): inline `ThpErrorCode.to_exception()`

[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
AI analysis · Informational 15/100

This is a small internal code cleanup in the Python Trezor library. It removes a helper method and moves the same error-code-to-exception logic directly into the ThpError class constructor. There is no user-visible behavior change and no security relevance.

Lower-prioritychore: update UI fixturesby Roman Zeyde · fe9138ef · Feb 3, 2026 · 1 fileMessage 47 · ThinInformational 15Details
Commit message · Roman Zeyde

chore: update UI fixtures

[no changelog]

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

This commit only updates expected test result fingerprints (hashes) in a JSON file used for automated UI testing. It does not change any firmware, application, or security code. There is no indication of a security fix or vulnerability.

Lower-priorityfix(python): avoid reseeding in HW testsby Roman Zeyde · d3908fa6 · Feb 3, 2026 · 1 fileMessage 67 · AdequateInformational 18Details
Commit message · Roman Zeyde

fix(python): avoid reseeding in HW tests

[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 18/100

This is a tiny test-only fix that stops the Python test helper from sending a special 'reseed' debug command to real Trezor hardware during automated tests. The reseed command is meant only for the software emulator used in testing. Sending it to a physical device had no production security effect, but it could cause hardware tests to behave unexpectedly or fail. It is not a vulnerability in the firmware that end users run.

Lower-prioritydocs(python): add changelog entriesby Roman Zeyde · ef48ecc9 · Feb 3, 2026 · 4 filesMessage 57 · ThinInformational 15Details
Commit message · Roman Zeyde

docs(python): add changelog entries

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 only adds four changelog text files describing unrelated past or upcoming changes to the Trezor Python library. No actual code was modified, so it cannot introduce, fix, or hide a security vulnerability on its own.

Lower-prioritychore(python): bump version to 0.20by matejcik · c474c03e · Feb 3, 2026 · 1 fileMessage 72 · AdequateInformational 15Details
Commit message · matejcik

chore(python): bump version to 0.20

to indicate a big API break

[no changelog]

72/100 · AdequateMessage clarity
✓ 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 simply changes a version number in a Python package configuration file from a development pre-release (0.20.0-dev0) to a stable release (0.20.0). It is a routine release housekeeping change with no security implications.

Lower-priorityfix(python): support older releases without `Features.capabilities`by Roman Zeyde · 76b27755 · Feb 3, 2026 · 2 filesMessage 89 · StrongInformational 17Details
Commit message · Roman Zeyde

fix(python): support older releases without `Features.capabilities`

Otherwise, `test_cardano_address_does_not_change_by_upgrade` fail on older releases.

[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 · Informational 17/100

This is a small bug-fix in Trezor's Python library. Older Trezor firmware did not advertise which features it supports via a 'capabilities' field, so the library was incorrectly throwing errors when connecting to those older devices. The change makes the library skip capability checks when the field is missing, and it unifies the error handling. It does not appear to be a security fix.

Lower-priorityfix(python/thp): correctly handle maximum allowable THP message sizeby matejcik · 26186e48 · Feb 3, 2026 · 2 filesMessage 62 · AdequateLow 29Details
Commit message · matejcik

fix(python/thp): correctly handle maximum allowable THP message size

[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
AI analysis · Low 29/100

This commit fixes a bug in Trezor's Python library for handling large USB-style messages (THP protocol). Previously, if a message payload was too large, the code could silently wrap around a 16-bit length field, producing an incorrect packet size. The patch now catches that overflow and raises a clear error instead. It also removes an unused constant that capped payload length at 60,000 bytes. The fix is defensive and improves error handling, but it is in the host-side Python library, not the device firmware itself.

Lower-priorityfix(python): allow `client.ensure_unlocked()` to proceed on an uninitialized deviceby matejcik · debe4b6c · Feb 3, 2026 · 1 fileMessage 62 · AdequateLow 30Details
Commit message · matejcik

fix(python): allow `client.ensure_unlocked()` to proceed on an uninitialized device

[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
AI analysis · Low 30/100

This commit fixes a Python library helper so that checking whether a Trezor device is unlocked no longer crashes or misbehaves when the device is brand new and not yet set up. It adds a guard that returns early if the device is uninitialized, because an uninitialized device has no wallet and therefore cannot be 'locked' in the usual sense. The change is accompanied by a docstring clarifying that the lower-level session method only works on initialized devices with a passphrase.

Lower-priorityrefactor(python): streamline record_screen functionalityby matejcik · 776355e0 · Feb 3, 2026 · 5 filesMessage 85 · StrongInformational 12Details
Commit message · matejcik

refactor(python): streamline record_screen functionality

The function as written didn't really belong into debuglink, so it was
moved to trezorctl, and emu.py can import it from there. Also improved
type annotations, simplified implementation, and made sure that
recording is properly stopped even on an error.

[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 12/100

This commit is a code cleanup that moves the screen-recording helper from a low-level debug library into the command-line tool. It does not change what the feature does; it only reorganizes where the code lives and makes the recording stop more reliably when an error occurs. There is no indication this fixes a security vulnerability.

Lower-priorityfix(python): allow THP session id 255by matejcik · 5e261d5e · Feb 3, 2026 · 1 fileMessage 57 · ThinInformational 21Details
Commit message · matejcik

fix(python): allow THP session id 255

[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 21/100

This is a tiny one-line fix in the Python Trezor library that changes when a session ID counter wraps around. Previously, the counter reset before reaching 255, so session ID 255 could never be used. The fix allows 255 to be used as a valid session ID. This is a minor correctness/robustness improvement, not a clear security vulnerability.

Lower-priorityrefactor(python/trezorctl): improve session managementby matejcik · 6a86927f · Feb 3, 2026 · 4 filesMessage 93 · StrongInformational 24Details
Commit message · matejcik

refactor(python/trezorctl): improve session management

the session id string now includes device path as well, so setting
TREZOR_SESSION_ID is always sufficient when multiple Trezors are
connected.

THP sessions can now be restored (fixes #5855)

93/100 · StrongMessage clarity
✓ 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
AI analysis · Informational 24/100

This commit refactors how the trezorctl command-line tool saves and resumes sessions with Trezor hardware wallets. It changes the session identifier from a simple hex string to a base64-encoded JSON object that also includes the device path, and it adds support for resuming THP (Trezor Host Protocol) sessions. The changes are described by the vendor as a feature/refactor improvement, not as a security fix. There is no direct evidence in the commit of a vulnerability being patched, but the refactor touches session lifecycle code and could affect security-relevant behavior such as session isolation, passphrase handling, and device path matching.

Lower-priorityrefactor(python): better management of open-depth for transportby matejcik · 603a2160 · Feb 3, 2026 · 8 filesMessage 85 · StrongInformational 17Details
Commit message · matejcik

refactor(python): better management of open-depth for transport

this way a high-level "reopen" functionality is exposed to callers that
want to cycle the connection, without needing to fragilly mess with open
count

[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 17/100

This is a Python-only internal refactoring of how Trezor's test/debugging library keeps track of open connections. It replaces fragile manual open/close bookkeeping with a cleaner 'reopen' flag and context-manager handling. There is no direct evidence this fixes an exploitable security bug; it appears to be code-quality work to prevent connection-state mistakes during testing.

Lower-priorityfix(python/trezorctl): avoid using atexit for closing of transportby matejcik · e3ca6ebe · Feb 3, 2026 · 1 fileMessage 97 · StrongLow 30Details
Commit message · matejcik

fix(python/trezorctl): avoid using atexit for closing of transport

Otherwise we conflict with atexit registered in webusb transport and may
cause a segfault in libusb.

What we practically want is to close the obj "after a command", not "at
exit", so we hook into Click's invoke()

[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 30/100

This commit fixes a crash bug in the Trezor command-line tool (trezorctl). It changes when the USB connection to the Trezor device is closed, moving cleanup from program shutdown to right after each command finishes. The old approach could trigger a segmentation fault (a hard crash) in the underlying USB library because two different cleanup routines interfered with each other at exit.

Lower-prioritychore(python/debuglink): remove vestigial memory_write/read/erase methodsby matejcik · 983d7afe · Feb 3, 2026 · 1 fileMessage 77 · AdequateInformational 15Details
Commit message · matejcik

chore(python/debuglink): remove vestigial memory_write/read/erase methods

unsupported on core models, not used by anyone on legacy for years

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 simply removes three unused helper functions from the Python debug-link library. These functions were already non-functional on current Trezor devices and are not used by older devices anymore. There is no security issue here.