commit | 5d5f04923f2df0e3c24114bcd28e2c86139e1ba8 | [log] [tgz] |
---|---|---|
author | Thomas Altenbach <thomas.altenbach@legrand.com> | Wed Sep 11 17:50:15 2024 +0200 |
committer | Jamie <40387179+nordicjm@users.noreply.github.com> | Thu Sep 12 14:09:32 2024 +0100 |
tree | 0110ccda8aa5dd5c5537970b5c0d434575a12668 | |
parent | ca06b9fe6d3c20a824a3f7e1196e89ab6134d08b [diff] |
bootutil: Fix AES and SHA-256 contexts not zeroized with mbedTLS For some reason, the calls to mbedtls_aes_free, mbedtls_nist_kw_free and mbedtls_sha256_free_drop were commented out which means the AES and SHA-256 contexts were not properly de-initialized after usage when mbedTLS is used. In the case of AES-KW it seems that might lead to a memory leak depending on the mbedTLS configuration, but in any case and independently of the mbedTLS configuration, this leads to the contexts not be zeroized after usage. Not zeroizing a context means it stays in RAM an undefined amount of time, which might enable an attacker to access it and to dump the sensitive data it contains. Signed-off-by: Thomas Altenbach <thomas.altenbach@legrand.com>
This is MCUboot version 2.1.0
MCUboot is a secure bootloader for 32-bits microcontrollers. It defines a common infrastructure for the bootloader and the system flash layout on microcontroller systems, and provides a secure bootloader that enables easy software upgrade.
MCUboot is not dependent on any specific operating system and hardware and relies on hardware porting layers from the operating system it works with. Currently, MCUboot works with the following operating systems and SoCs:
RIOT is supported only as a boot target. We will accept any new port contributed by the community once it is good enough.
See the following pages for instructions on using MCUboot with different operating systems and SoCs:
There are also instructions for the Simulator.
The issues being planned and worked on are tracked using GitHub issues. To give your input, visit MCUboot GitHub Issues.
You can find additional documentation on the bootloader in the source files. For more information, use the following links:
Developers are welcome!
Use the following links to join or see more about the project: