fix(core/bootloader): answer unknown debuglink messages with Failure [no changelog]
What changed, and why it matters
A bug in the Trezor bootloader's debug communication channel made it reply 'Success' to every unrecognized command. This meant a host computer sending a command such as WipeDevice or DebugLinkReseedRandom over the debug link could be tricked into thinking the device had actually carried out the action, even though it had not. The fix changes the bootloader to reply with a proper 'unknown message' failure instead.
Treat this as a security-hardening fix and include it in the next bootloader release. Review whether any host tooling relied on Success responses from unhandled debuglink messages, and verify that recv_msg_unknown() correctly reports failure without leaking sensitive state. Consider whether a CVE is warranted if a practical host-side impact can be demonstrated.
Security signals we found
Incorrect success/failure signaling on a privileged debug channel
Potential false confirmation of destructive or security-sensitive debug commands
Bootloader workflow handling of debuglink messages
Evidence from the diff
In core/embed/projects/bootloader/workflow/debuglink.c, the default case of debuglink_process() previously called send_msg_success() for any unhandled debuglink message type. Because Success is normally an acknowledgment that a command was processed, a host tool could interpret the response as confirmation that a sensitive operation (e.g., WipeDevice, DebugLinkReseedRandom) succeeded. The patch replaces send_msg_success() with recv_msg_unknown(), which returns a Failure/unknown-message response, preventing false confirmation.
Changed components
Trezor Core bootloadercore/embed/projects/bootloader/workflow/debuglink.cDebugLink message processorInspect captured patch +1 / −1
### core/embed/projects/bootloader/workflow/debuglink.c
@@ -189,7 +189,7 @@ debuglink_result_t debuglink_process(void) {
res = debuglink_process_record_screen(&g_debug_io);
break;
default:
- send_msg_success(&g_debug_io, "success");
+ recv_msg_unknown(&g_debug_io);
break;
}
}Why this scored 60/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.