What changed, and why it matters
This commit updates the libtropic library used inside Trezor hardware wallets to version 4.0.0. Most visible changes are simple renaming of internal silicon-revision flags (for example 'ABAB' becomes 'LT_SILICON_REV_ABAB') and a small change to how the Tropic secure-element firmware is updated during production testing. The commit itself does not describe any security bug, and the visible diff does not show a clear vulnerability. It looks like a routine dependency and build cleanup.
Treat as a normal dependency update. Review the upstream libtropic v4.0.0 release notes for any security fixes, and verify that the new single-call firmware update path still validates both firmware images and target banks correctly. No immediate security response is indicated by this commit alone.
Security signals we found
Dependency update to libtropic v4.0.0
Renaming of silicon-revision compile-time defines to LT_SILICON_REV_* namespace
Consolidation of prodtest Tropic firmware update into single lt_do_mutable_fw_update call
Retryable-error condition changed from LT_L1_SPI_ERROR to LT_HAL_ERROR
Evidence from the diff
The commit bumps the vendored libtropic submodule to v4.0.0. The diff adapts Trezor’s prodtest command, build scripts, and Tropic integration code to the new library API: macro names are prefixed with LT_SILICON_REV_, the firmware-update helper now takes both RISC-V and SPECT firmware images in a single call, and the retryable-error check replaces LT_L1_SPI_ERROR with LT_HAL_ERROR. No security-relevant behavior is explicitly described, and the diff does not expose a clear exploitable flaw. The change is best classified as a maintenance/dependency update with possible incidental hardening from the upstream library bump.
Changed components
core/embed/projects/prodtest/cmd/prodtest_tropic.ccore/embed/sec/tropic/build.rscore/embed/sec/tropic/tropic.ccore/site_scons/models/T3W1/emulator.pycore/site_scons/models/T3W1/trezor_t3w1_revA.pycore/site_scons/models/T3W1/trezor_t3w1_revB.pycore/site_scons/models/T3W1/trezor_t3w1_revC.pyvendor/libtropicInspect captured patch +13 / −25
diff --git a/core/embed/projects/prodtest/cmd/prodtest_tropic.c b/core/embed/projects/prodtest/cmd/prodtest_tropic.c
index 11b72d0b..55f5f194 100644
--- a/core/embed/projects/prodtest/cmd/prodtest_tropic.c
+++ b/core/embed/projects/prodtest/cmd/prodtest_tropic.c
@@ -1529,9 +1529,6 @@ static void prodtest_tropic_keyfido_read(cli_t* cli) {
}
static void prodtest_tropic_update_fw(cli_t* cli) {
-#define FW_APP_UPDATE_BANK TR01_FW_BANK_FW1
-#define FW_SPECT_UPDATE_BANK TR01_FW_BANK_SPECT1
-
if (cli_arg_count(cli) > 0) {
cli_error_arg_count(cli);
return;
@@ -1549,7 +1546,7 @@ static void prodtest_tropic_update_fw(cli_t* cli) {
chip_id.silicon_rev[1], chip_id.silicon_rev[2],
chip_id.silicon_rev[3]);
-#ifdef ABAB
+#ifdef LT_SILICON_REV_ABAB
if (strncmp((char*)chip_id.silicon_rev, "ABAB", 4) != 0) {
cli_error(cli, CLI_ERROR, "Wrong tropic chip silicon revision");
return;
@@ -1570,20 +1567,11 @@ static void prodtest_tropic_update_fw(cli_t* cli) {
cli_trace(cli, "Chip is executing bootloader");
- cli_trace(cli, "Updating RISC-V FW");
- ret = lt_do_mutable_fw_update(h, fw_CPU, sizeof(fw_CPU), FW_APP_UPDATE_BANK);
+ cli_trace(cli, "Updating RISC-V and SPECT FW");
+ ret = lt_do_mutable_fw_update(h, fw_CPU, sizeof(fw_CPU), fw_SPECT,
+ sizeof(fw_SPECT));
if (ret != LT_OK) {
- cli_error(cli, CLI_ERROR, "RISC-V FW update failed, ret=%s",
- lt_ret_verbose(ret));
- goto cleanup;
- }
-
- cli_trace(cli, "Updating SPECT FW");
- ret = lt_do_mutable_fw_update(h, fw_SPECT, sizeof(fw_SPECT),
- FW_SPECT_UPDATE_BANK);
- if (ret != LT_OK) {
- cli_error(cli, CLI_ERROR, "SPECT FW update failed, ret=%s",
- lt_ret_verbose(ret));
+ cli_error(cli, CLI_ERROR, "FW update failed, ret=%s", lt_ret_verbose(ret));
goto cleanup;
}
diff --git a/core/embed/sec/tropic/build.rs b/core/embed/sec/tropic/build.rs
index f7ee9be0..7ffc7b49 100644
--- a/core/embed/sec/tropic/build.rs
+++ b/core/embed/sec/tropic/build.rs
@@ -14,11 +14,11 @@ pub fn def_module(lib: &mut CLibrary) -> Result<()> {
lib.add_sources_in_dir(&tropic_dir, ["hal/posix/tcp/libtropic_port_posix_tcp.c"]);
- lib.add_define("ABAB", Some("1"));
+ lib.add_define("LT_SILICON_REV_ABAB", Some("1"));
} else if cfg!(feature = "mcu_stm32u5") {
lib.add_sources(["tropic/stm32/tropic01.c"]);
- lib.add_define("ACAB", Some("1"));
+ lib.add_define("LT_SILICON_REV_ACAB", Some("1"));
} else {
bail_unsupported!();
}
diff --git a/core/embed/sec/tropic/tropic.c b/core/embed/sec/tropic/tropic.c
index 4deefa70..2bf17eaa 100644
--- a/core/embed/sec/tropic/tropic.c
+++ b/core/embed/sec/tropic/tropic.c
@@ -70,7 +70,7 @@
bool tropic_session_start(void);
static bool is_retryable(lt_ret_t ret) {
- return ret == LT_L1_CHIP_ALARM_MODE || ret == LT_L1_SPI_ERROR ||
+ return ret == LT_L1_CHIP_ALARM_MODE || ret == LT_HAL_ERROR ||
ret == LT_L2_IN_CRC_ERR || ret == LT_L2_CRC_ERR;
}
diff --git a/core/site_scons/models/T3W1/emulator.py b/core/site_scons/models/T3W1/emulator.py
index 610ae59e..2eb769bf 100644
--- a/core/site_scons/models/T3W1/emulator.py
+++ b/core/site_scons/models/T3W1/emulator.py
@@ -121,7 +121,7 @@ def configure(
defines += [("LT_HELPERS", "1")]
paths += ["vendor/libtropic/TROPIC01_fw_update_files/boot_v_1_0_1/fw_v_1_0_0"]
- defines += [("ABAB", "1")]
+ defines += [("LT_SILICON_REV_ABAB", "1")]
if "input" in features_wanted:
sources += ["embed/io/touch/unix/touch.c"]
diff --git a/core/site_scons/models/T3W1/trezor_t3w1_revA.py b/core/site_scons/models/T3W1/trezor_t3w1_revA.py
index 0fcd4aaa..c6f3fd60 100644
--- a/core/site_scons/models/T3W1/trezor_t3w1_revA.py
+++ b/core/site_scons/models/T3W1/trezor_t3w1_revA.py
@@ -228,7 +228,7 @@ def configure(
defines += [("LT_HELPERS", "1")]
paths += ["vendor/libtropic/TROPIC01_fw_update_files/boot_v_1_0_1/fw_v_1_0_0"]
- defines += [("ABAB", "1")]
+ defines += [("LT_SILICON_REV_ABAB", "1")]
if "sbu" in features_wanted:
sources += ["embed/io/sbu/stm32/sbu.c"]
diff --git a/core/site_scons/models/T3W1/trezor_t3w1_revB.py b/core/site_scons/models/T3W1/trezor_t3w1_revB.py
index a7120292..f8b37249 100644
--- a/core/site_scons/models/T3W1/trezor_t3w1_revB.py
+++ b/core/site_scons/models/T3W1/trezor_t3w1_revB.py
@@ -230,7 +230,7 @@ def configure(
defines += [("LT_HELPERS", "1")]
paths += ["vendor/libtropic/TROPIC01_fw_update_files/boot_v_1_0_1/fw_v_1_0_0"]
- defines += [("ABAB", "1")]
+ defines += [("LT_SILICON_REV_ABAB", "1")]
if "sbu" in features_wanted:
sources += ["embed/io/sbu/stm32/sbu.c"]
diff --git a/core/site_scons/models/T3W1/trezor_t3w1_revC.py b/core/site_scons/models/T3W1/trezor_t3w1_revC.py
index c42c8048..944778ce 100644
--- a/core/site_scons/models/T3W1/trezor_t3w1_revC.py
+++ b/core/site_scons/models/T3W1/trezor_t3w1_revC.py
@@ -244,7 +244,7 @@ def configure(
defines += [("LT_HELPERS", "1")]
paths += ["vendor/libtropic/TROPIC01_fw_update_files/boot_v_2_0_1/fw_v_1_0_0"]
- defines += [("ACAB", "1")]
+ defines += [("LT_SILICON_REV_ACAB", "1")]
if "sbu" in features_wanted:
sources += ["embed/io/sbu/stm32/sbu.c"]
Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.