1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

fix(core/bootloader): fix firmware downgrade protection

[no changelog]
This commit is contained in:
tychovrahe 2024-09-05 16:12:32 +02:00 committed by TychoVrahe
parent d2a2ac2178
commit f3b78e9c7a

View File

@ -289,9 +289,9 @@ void real_jump_to_firmware(void) {
ensure(check_image_header_sig(hdr, vhdr.vsig_m, vhdr.vsig_n, vhdr.vpub),
"Firmware is corrupted");
ensure(check_firmware_min_version(hdr->version),
ensure(check_firmware_min_version(hdr->monotonic),
"Firmware downgrade protection");
ensure_firmware_min_version(hdr->version);
ensure_firmware_min_version(hdr->monotonic);
ensure(check_image_contents(hdr, IMAGE_HEADER_SIZE + vhdr.hdrlen,
&FIRMWARE_AREA),