TZ
← All projectsTrezor

Trezor firmware

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

BitcoinHardware walletsNormal
Repository coverage

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

1370security candidates439second-pass queue3237AI analyses
175commits · 30 days
442commits · 60 days
1771commits · 180 days
2886commits · 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
872Strong · 80–100
1756Adequate · 60–79
1202Thin · 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.
tychovrahe397165356667
Jakub Janků1083371681
Roman Zeyde722231640372
obrusvit336138284364
cepetr310114232259
PrisionMike161108156271
Andrew Kozlik893885267
Petr Susil1159286
Martin Pastyřík291025175
M1nd3r296108250071
Lukas Bielesch1168097065
Ioan Bizău23076230059
Analysis record

Published AI watches

Last scanned 31 minutes ago

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 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
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(sdk): replace get_xpub and get_public_key with get_public_node

This commit is a routine internal code cleanup in the Trezor firmware SDK. It renames and consolidates two ways of reading a public key into a single function, and adds a helper to decompress ECDSA public keys. There is no indication of a …

8c30110eby Lukas Bielesch+35−424 files
No security note in commit
Low 41 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core): handle bkpt instruction in unprivileged mode

This firmware update changes how the Trezor device handles a special ARM processor instruction called BKPT when it is executed by low-privilege code (unprivileged mode). Previously, such a breakpoint could escalate into a HardFault and reb…

Prevents unprivileged BKPT from escalating to HardFault/RSOD rebootAdds DebugMonitor exception handler that exits the faulting taskComment explicitly notes remaining RSOD behavior at RDP level 0 on Secure-Monitor devices
bcbcd7fbby cepetr+22−02 files
No security note in commit
Informational 15 AI analysisMessage 72 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core/caesar): use arrow in HtC anim

This commit is a user-interface polish change for the Trezor hardware wallet. It replaces the text label on the 'hold to confirm' button with a small arrow icon in one product variant (Caesar), and shortens the translated button text in se…

01422b74by obrusvit+6790−676712 files
No security note in commit
Informational 13 AI analysisMessage 93 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): remove unused clearing-related API in `Pad`

This is a code cleanup change in the Trezor firmware's user-interface code. It removes an old 'clear' flag and related functions from a background-drawing helper called Pad, because that flag no longer did anything useful. The commit does …

ddbd3ca0by Roman Zeyde+44−15949 files
No security note in commit
Informational 15 AI analysisMessage 82 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(translations): fix failing ES test

This commit updates translation files for the Trezor hardware wallet. It corrects a typo in the Spanish translation ('Tiiempo' to 'Tiempo'), adjusts wording in several languages, and updates the digital signature that verifies the translat…

580f40f8by Michal Kazda+41−216 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(translations): add PT glyph `â`

This commit adds a single missing Portuguese character (â) to the font files used on Trezor hardware wallets. It is a routine translation/localization fix with no security relevance.

2bf28f83by Michal Kazda+562−325 files
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): slide the eye hint and hidden characters in together

This commit is a cosmetic UI animation cleanup. It removes a 65-millisecond delay so that an eye icon and hidden password characters slide onto the screen at the same time, instead of starting at slightly different times. There is no secur…

faf18c8fby Anderson Guimaraes+5−233 files
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): move Eckhart passphrase input event handling to a helper [no changelog]

This commit is a pure code cleanup (refactor) in the Trezor firmware's passphrase input screen. It moves the existing event-handling logic into a new helper method without changing what the code actually does. There is no security-relevant…

0ebda150by Anderson Guimaraes+44−401 file
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): address review of the passphrase eye hint

This commit is a small internal cleanup of the passphrase-entry animation on Trezor hardware wallets. It renames timers, computes an animation value once instead of twice, and moves responsibility for redrawing to the caller. There is no i…

f97e8dd5by Anderson Guimaraes+53−493 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(translations): sync Crowdin translations

This commit is a routine synchronization of translated user-interface text strings from the Crowdin translation platform into the Trezor firmware. It only changes wording in Czech, German, Spanish, French, Indonesian, and Portuguese transl…

7c7bb52cby Thalarion+334−2597 files
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): extract the firmware's embedded image updates

This commit is a straightforward code cleanup: it moves the existing bootloader and nRF firmware update logic into a new helper function without changing what the code actually does. There is no security-relevant change visible in the diff.

5fec68edby tychovrahe+38−261 file
No security note in commit
Moderate 50 AI analysisMessage 100 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(solana): accept sysvars loaded from ALTs

This update fixes a bug in Trezor's Solana transaction handling. Some Solana transactions use a feature called 'address lookup tables' to save space, and Trezor was incorrectly rejecting valid transactions when a special system account (a …

Change relaxes a previously strict validation rule (sysvar account identity verification) for some instruction typesRelaxation is scoped per-instruction via a new `allow_alt_sysvars` booleanStake program instructions retain strict rejection to prevent account-role shifting attacks
76114596by Jakub Janků+100−67 files
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(clear_signing): generated code changes for uint216 parser

This commit only regenerates code bindings for a new Ethereum ABI type called ABI_UINT216. It adds the new numeric value 50 to several auto-generated enum files in Python and Rust. There is no actual parser logic, security fix, or vulnerab…

a669d909by PrisionMike+59−504 files
No security note in commit
Informational 20 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(clear_signing): add uint216 support

This commit adds support for a new Ethereum data type, uint216, to Trezor's clear signing feature. It is a small, additive feature change with no obvious security problem. There is no indication in the commit that this fixes a vulnerabilit…

bbd7a797by PrisionMike+3−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.

Lower-prioritychore(prodtest): make DER parsing stricterby M1nd3r · 7a883cb7 · Jan 16, 2026 · 1 fileMessage 80 · StrongLow 42Details
Commit message · M1nd3r

chore(prodtest): make DER parsing stricter

- added checks of expected der tags using `der_item_read_expected`
- replaced existing tag checks by `der_item_read_expected`

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

This commit tightens how a Trezor production-test tool parses X.509 certificate data. It replaces loose 'read the next item' calls with stricter 'read the item only if it has the expected tag' calls. That reduces the chance that a malformed or crafted certificate could trick the parser into misinterpreting fields, but the change is in an internal manufacturing/testing tool, not the main wallet firmware that protects user funds.

Security candidatefeat(crypto): extend DER functionality in trezor-cryptoby M1nd3r · 6681384b · Jan 16, 2026 · 4 filesMessage 85 · StrongInformational 15Details
Commit message · M1nd3r

feat(crypto): extend DER functionality in trezor-crypto

- added `der_equal` and `der_read_item_expected`
- added (defined) DER_OID tag
- added const qualifiers to BUFFER_READER read-only functions

[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
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This is a routine feature addition to Trezor's cryptographic library. It adds helper functions for comparing DER-encoded data items and reading an item with an expected tag, plus a constant for OID tags and minor const-correctness cleanups. There is no indication of a security bug being fixed.

Lower-prioritydocs: hello world and other documentation updatesby Thalarion · fe980ef1 · Jan 16, 2026 · 6 filesMessage 57 · ThinInformational 15Details
Commit message · Thalarion

docs: hello world and other documentation updates

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
documentation-only discount
AI analysis · Informational 15/100

This commit only updates documentation. It renames a developer tutorial, fixes links, adds a new hardware model (Trezor Safe 7) to reproducible-build instructions, and refreshes code examples. No firmware, bootloader, or cryptographic code is changed, so it cannot directly affect device security.

Lower-prioritychore(core): rewrite comments in cli.h into doxygen styleby tychovrahe · 9e028ab6 · Jan 16, 2026 · 1 fileMessage 62 · AdequateInformational 15Details
Commit message · tychovrahe

chore(core): rewrite comments in cli.h into doxygen style

[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 only rewrites code comments in a single header file to follow Doxygen documentation style. It does not change any executable code, logic, or security behavior. The only functional-looking addition is a new error-code constant named CLI_ERROR_INVALID_CRC, but it is just a string literal definition with no code using it, so it cannot by itself create a vulnerability.

Lower-priorityfeat(core/prodtest): add commands for generic memory read/writeby tychovrahe · a0b6089d · Jan 16, 2026 · 2 filesMessage 62 · AdequateInformational 23Details
Commit message · tychovrahe

feat(core/prodtest): add commands for generic memory read/write

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 23/100

This commit adds two new commands to Trezor's production-test firmware: one that writes hex data into a small RAM buffer and one that reads it back. It is a test/debugging feature, not the normal wallet firmware users carry. The commands only touch a fixed 4 KB RAM buffer and do not directly read or write arbitrary memory addresses, so they appear limited in scope. However, adding interactive memory-style commands to a low-level test tool can be a stepping stone for deeper hardware attacks if combined with other vulnerabilities.

Lower-priorityfeat(core/prodtest): introduce CRC checks for CLI commandsby tychovrahe · 308f2c76 · Jan 16, 2026 · 7 filesMessage 62 · AdequateInformational 21Details
Commit message · tychovrahe

feat(core/prodtest): introduce CRC checks for CLI commands

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

This commit adds an optional CRC-32 checksum feature to the Trezor production-test command-line interface (prodtest CLI). It is a data-integrity feature, not a fix for an existing security vulnerability. The change lets factory-test tools request that every command and response include a CRC checksum, helping detect accidental communication corruption. There is no indication in the commit that this addresses a known attack or security flaw.

Lower-priorityfeat(core/prodtest): allow alternative per-command CRC verificationby tychovrahe · be8ef622 · Jan 16, 2026 · 5 filesMessage 72 · AdequateInformational 19Details
Commit message · tychovrahe

feat(core/prodtest): allow alternative per-command CRC verification

[no changelog]

72/100 · AdequateMessage clarity
✓ Specific, 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
defensive validation
AI analysis · Informational 19/100

This commit changes the Trezor production-test command-line interface so that CRC checksums can be applied either globally or per-command using a new 'checked-' prefix. It is a feature addition, not a fix for an exploitable vulnerability. The change does touch CRC parsing code, but the diff shows no obvious security bug such as buffer overflow or bypass. The main risk is that any mistake in the new CRC logic could weaken integrity checks for a low-privilege manufacturing/debug interface.

AI review queuedfeat(core): introduce app_loader/cache moduleby cepetr · c0de3d9e · Jan 16, 2026 · 24 filesMessage 57 · ThinLow 38Details
Commit message · cepetr

feat(core): introduce app_loader/cache module

[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
second-pass: unusually broad change
AI analysis · Low 38/100

This commit introduces a new application loader and cache subsystem for the Trezor firmware. It adds code that loads external ELF-format applications into memory, manages their execution as isolated applets, and handles memory allocation for them. The change is a feature addition, not a documented security fix. The code includes a prominent warning that the STM32 ELF loader implementation should not be shipped in production devices. There is no evidence in the commit or supplied references that this resolves a known security incident or vulnerability.

AI review queuedfix(core): fix kernel crash when ext app faultby cepetr · e79f97af · Jan 16, 2026 · 1 fileMessage 57 · ThinModerate 57Details
Commit message · cepetr

fix(core): fix kernel crash when ext app fault

[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
second-pass: broader security terminology
AI analysis · Moderate 57/100

This patch fixes a kernel crash that could occur when an external (untrusted) application running on the Trezor device faults. The crash happened because the kernel tried to read a return address from a memory region it was not allowed to access. The fix temporarily relaxes memory protection just long enough to safely read that address, then restores it. It is a stability/reliability fix in a security-sensitive component, but the commit itself does not claim it is exploitable for theft of funds or secrets.

Lower-priorityrefactor(core): allow running coreapp emulator as an appletby cepetr · 977333f6 · Jan 16, 2026 · 6 filesMessage 62 · AdequateInformational 11Details
Commit message · cepetr

refactor(core): allow running coreapp emulator as an applet

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

This commit is a code cleanup that lets the Trezor firmware's emulator (used for testing on regular computers) run the core application as a separate 'applet' task, similar to how it runs on real hardware. It merges two setup functions into one and adds a Unix-specific implementation. There is no indication this fixes a security bug or introduces a vulnerability.

Security candidatefeat(core): introduce an IPC mechanismby cepetr · 1d415082 · Jan 16, 2026 · 18 filesMessage 57 · ThinInformational 15Details
Commit message · cepetr

feat(core): introduce an IPC mechanism

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

This commit adds a brand-new inter-process communication (IPC) subsystem to the Trezor firmware kernel. It lets separate software tasks send fixed-size messages to each other through kernel-managed queues, with memory copies that temporarily disable the memory-protection unit on STM32 hardware. There is no claim in the commit that this fixes a security bug; it appears to be a new feature. The code includes access checks (verifiers) for the user-space syscall path, but because this is a new and complex kernel mechanism, any mistakes in the queue logic or memory copying could become security issues in the future.

Security candidatefeat(core): introduce coreapp apiby cepetr · 29ad7f9c · Jan 16, 2026 · 11 filesMessage 57 · ThinLow 25Details
Commit message · cepetr

feat(core): introduce coreapp api

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

This commit adds a new internal API surface called 'coreapp API' that lets the core firmware expose a small set of system services (timers, events, debug console, IPC, and shutdown helpers) to a separate 'coreapp' component. It is only enabled for the T3W1 model and is guarded by an 'app_loading' build feature. The change is architectural: it wires a function-pointer getter into the vector table and stores it in the coreapp header so the coreapp can request versioned API tables. There is no direct evidence in the commit of a vulnerability, exploit, or security fix; it appears to be a feature introduction for future app-loading support.

Security candidatefeat(core): introduce EXTAPP_SUPPORT build optionby cepetr · 08f32990 · Jan 16, 2026 · 4 filesMessage 57 · ThinInformational 15Details
Commit message · cepetr

feat(core): introduce EXTAPP_SUPPORT build option

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

This commit adds a new build-time switch called EXTAPP_SUPPORT. When turned off (the default), it prevents the 'app_loading' feature from being compiled into firmware for the T3W1 model. This is purely a build-system/configuration change and does not alter runtime behavior, fix a bug, or change any security-critical code path on its own.

Security candidatefeat(core): implement micropython app_loader/cache wrapperby cepetr · da71e342 · Jan 16, 2026 · 14 filesMessage 62 · AdequateLow 32Details
Commit message · cepetr

feat(core): implement micropython app_loader/cache wrapper

[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 · Low 32/100

This commit adds a new MicroPython module called `trezorapp` that lets Python code create, write, finalize, and run third-party application images inside the Trezor firmware. It is a feature implementation rather than a bug fix, and there is no direct evidence in the commit that it fixes a security vulnerability. However, because it exposes low-level app loading and task control to Python, any weaknesses in the underlying `app_cache`/`app_loader` C code or in how Python callers use this wrapper could become security-relevant. The commit itself does not describe security relevance, credit a researcher, or acknowledge a vulnerability report.

Security candidatefeat(core): increase number of unprivileged tasksby cepetr · fbc27142 · Jan 16, 2026 · 1 fileMessage 57 · ThinInformational 11Details
Commit message · cepetr

feat(core): increase number of unprivileged tasks

[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
credential or privilege state
AI analysis · Informational 11/100

This commit changes a single internal constant so the device can keep track of one extra background process when the optional app-loading feature is enabled. By itself it does not look like a security fix or vulnerability; it appears to be a straightforward capacity increase for a new feature.

Lower-priorityfix(core): remove unnecessary exit handlersby cepetr · 048f517b · Jan 16, 2026 · 5 filesMessage 57 · ThinInformational 18Details
Commit message · cepetr

fix(core): remove unnecessary exit handlers

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

This commit cleans up how the Trezor firmware emulator (Unix build) shuts down its fake SD card and flash memory. Previously, these emulated memory buffers were automatically unmapped when the program exited via atexit handlers. The commit removes those automatic exit handlers and instead exposes explicit cleanup functions (sdcard_deinit, flash_deinit) that callers can invoke directly. The display emulator also loses its atexit-based deinit. This is a code-quality and resource-management change; it does not appear to fix an exploitable security vulnerability.

Lower-priorityrefactor(core): refactor coreapp emu startup, run coreapp as a taskby cepetr · 959f9fa9 · Jan 16, 2026 · 4 filesMessage 62 · AdequateInformational 12Details
Commit message · cepetr

refactor(core): refactor coreapp emu startup, run coreapp as a task

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

This commit is a code cleanup and architectural refactor for the Trezor firmware's Unix emulator. It moves the emulator startup logic into a new 'coreapp' task structure and splits hardware/driver initialization into a separate file. There is no indication in the commit that this fixes a security vulnerability or changes security-sensitive behavior; it appears to be internal restructuring only.

Lower-priorityfeat(core): implement applet unloadby cepetr · 75452a35 · Jan 16, 2026 · 12 filesMessage 57 · ThinLow 32Details
Commit message · cepetr

feat(core): implement applet unload

[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 · Low 32/100

This commit rewrites how the Trezor firmware's kernel cleans up after the main user-interface app (the 'coreapp') finishes or crashes. It replaces a simple 'stop' function with a new 'unload' path that always clears the app's memory and, on real hardware, disables the special memory/peripheral access rights that were granted while the app ran. The change also adds a check so the kernel only tries to clean up tasks that were actually initialized. Overall it looks like a hardening/cleanup improvement rather than a new vulnerability, though the commit is a refactor and the diff alone cannot prove no bugs were introduced.

Lower-priorityfix(core): remove unnecessary delays during event pollingby cepetr · 2b1acddd · Jan 16, 2026 · 1 fileMessage 62 · AdequateInformational 11Details
Commit message · cepetr

fix(core): remove unnecessary delays during event polling

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

This small firmware change prevents the Trezor device from going to sleep or adding artificial delays when event pollers are still active. Previously, the code always paused after each polling loop, even if it had just woken up a task. Now it only pauses when no task was actually woken. The main practical effect is better responsiveness and lower latency, not a security fix.

Lower-priorityfix(core): fix applet mpu reconfigby cepetr · 631696e3 · Jan 16, 2026 · 1 fileMessage 57 · ThinModerate 57Details
Commit message · cepetr

fix(core): fix applet mpu reconfig

[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 · Moderate 57/100

This commit fixes a bug in how the Trezor hardware wallet's memory protection unit (MPU) is reconfigured when switching to or from a small helper program ('applet'). Previously, the code could read from a NULL pointer and store an invalid value, which might weaken memory isolation between the main firmware and the applet. The fix ensures the applet layout pointer is checked before use and the TLS (thread-local storage) area is safely zeroed when no applet is active.

Lower-priorityfeat(core): allow running applets from SRAMby cepetr · a5f32f09 · Jan 16, 2026 · 1 fileMessage 57 · ThinLow 37Details
Commit message · cepetr

feat(core): allow running applets from SRAM

[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 · Low 37/100

This commit changes the memory protection unit (MPU) configuration in Trezor's STM32U5 firmware so that small helper programs ('applets') can run from RAM (SRAM) in addition to running from flash memory. Previously, applets were assumed to live in flash. The change adds a new memory region type for executable SRAM and checks whether an applet's code starts in flash; if not, it marks the SRAM region as executable. This is a feature addition, not a bug fix, and there is no direct evidence in the commit that it fixes a security vulnerability. However, allowing code execution from SRAM can increase attack surface if an attacker can write to that RAM, because executable writable memory is generally less safe than execute-only flash.

Lower-priorityrefactor(core): improve mpu apiby cepetr · fff18a60 · Jan 16, 2026 · 4 filesMessage 57 · ThinInformational 15Details
Commit message · cepetr

refactor(core): improve mpu api

[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 tiny code cleanup in the memory-protection unit (MPU) code for the Trezor hardware wallet. It only adds the word 'const' to a function parameter in four files, meaning the function promises not to modify the input structure. No behavior of the device changes, and there is no security fix or vulnerability here.

Lower-priorityfix(core): fix returning from spawned applet to coreappby cepetr · 0c6137fb · Jan 16, 2026 · 3 filesMessage 62 · AdequateLow 45Details
Commit message · cepetr

fix(core): fix returning from spawned applet to coreapp

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

This commit fixes a scheduling bug in the Trezor firmware's task-switching system. When the device switched from a small temporary 'applet' back to the main 'coreapp', the old code simply jumped tasks without telling the event scheduler to put the current task back on the runnable list. That could leave the current task unscheduled or cause a null-pointer write when the scheduler later tried to record which events woke it up. The patch adds a proper 'yield and reschedule' helper and guards the null-pointer write.

Lower-priorityfeat(core): implement micropython ipc wrapperby cepetr · 26019c18 · Jan 16, 2026 · 7 filesMessage 57 · ThinInformational 11Details
Commit message · cepetr

feat(core): implement micropython ipc wrapper

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

This commit adds a new internal feature to the Trezor firmware: a MicroPython wrapper that lets Python code send and receive inter-process communication (IPC) messages to another system task. It is a feature implementation, not a bug fix, and nothing in the commit or supplied references indicates it addresses a security vulnerability.

Lower-priorityfeat(core): introduce systask emulationby cepetr · 72079605 · Jan 16, 2026 · 11 filesMessage 57 · ThinInformational 22Details
Commit message · cepetr

feat(core): introduce systask emulation

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

This commit adds a software-based emulation of Trezor's multitasking 'systask' system for the desktop emulator. Previously the emulator faked task functions as empty stubs; now it uses real POSIX threads and condition variables to mimic how tasks switch on the real hardware. It also moves some system shutdown helpers into a shared file used by both real devices and the emulator. There is no direct evidence this fixes a security bug; it is primarily an engineering change to make the emulator behave more like the real device.