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:
parent
d2a2ac2178
commit
f3b78e9c7a
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user