blob: c78d439de14233175e1be09231575e9520652201 [file] [log] [blame] [view]
David Brown37f8afd2017-09-12 10:59:39 -06001# MCUboot Release Notes
2
3- Table of Contents
4{:toc}
5
David Brown342e8752020-04-15 10:57:28 -06006## Version 1.6.0
7
8The 1.6.0 release of MCUboot adds support for the PSOC6 platform,
9X25519 encrypted images, rollback protection, hardware keys, and a
10shared boot record to communicate boot attestation information to
11later boot stages. There are bug fixes, and associated imgtool
12updates as well.
13
14### About this release
15
16- Initial support for the Cypress PSOC6 plaformt. This platform
17 builds using the Cypress SDK, which has been added as submodules.
18- CBOR decoding in serial recovery replaced by code generated from a
19 CDDL description.
20- Add support for X25519 encrypted images.
21- Add rollback protection. There is support for a HW rollback counter
22 (which must be provided as part of the platform), as well as a SW
23 solution that protects against some types of rollback.
24- Add an optional boot record in shared memory to communicate boot
25 attributes to later-run code.
26- Add support for hardware keys.
27- Various fixes to work with the latest Zephyr version.
28
29### Security issues addressed
30
31- CVE-2020-7595 "xmlStringLenDecodeEntities in parser.c in libxml2
32 2.9.10 has an infinite loop in a certain end-of-file situation." Fix
33 by updating a dependency in documentation generation.
34
David Brown82c5f7c2020-05-05 15:47:30 -060035### Zephyr-RTOS Compatibility
36
37This release of MCUboot works the Zephyr "master" at the time of the
David Brown50d24a52020-05-22 10:23:42 -060038release. It was tested as of has 1a89ca1238. When Zephyr v2.3.0 is
39released, there will be a possible 1.6.1 or similar release of Zephyr
David Brown82c5f7c2020-05-05 15:47:30 -060040if needed to address any issues. There also may be branch releases of
41MCUboot specifically for the current version of Zephyr, e.g.
42v1.6.0-zephyr-2.2.1.
43
Fabio Utzigef7fbd72020-02-05 12:43:23 -030044## Version 1.5.0
45
46The 1.5.0 release of MCUboot adds support for encrypted images using
47ECIES with secp256r1 as an Elliptic Curve alternative to RSA-OAEP. A
48new swap method was added which allows for upgrades without using a
49scratch partition. There are also lots of bug fixes, extra simulator
50testing coverage and some imgtool updates.
51
52### About this release
53
54- TLVs were updated to use 16-bit lengths (from previous 8). This
55 should work with no changes for little-endian targets, but will
56 break compatibility with big-endian targets.
57- A benchmark framework was added to Zephyr
58- ed25519 signature validation can now build without using mbedTLS
59 by relying on a bundled tinycrypt based sha-512 implementation.
60- imgtool was updated to correctly detect trailer overruns by image.
61- Encrypted image TLVs can be saved in swap metadata during a swap
62 upgrade instead of the plain AES key.
63- imgtool can dump private keys in C format (getpriv command), which
64 can be added as decryption keys. Optionally can remove superfluous
65 fields from the ASN1 by passing it `--minimal`.
66- Lots of other smaller bugs fixes.
67- Added downgrade prevention feature (available when the overwrite-based
68 image update strategy is used)
69
70### Known issues
71
72- TLV size change breaks compatibility with big-endian targets.
73
David Brown4d0c5fa2019-10-08 09:57:31 -060074## Version 1.4.0
75
76The 1.4.0 release of MCUboot primarily adds support for multi-image
77booting. With this release, MCUboot can manage two images that can be
78updated independently. With this, it also supports additions to the
79TLV that allow these dependencies to be specified.
80
81Multi-image support adds backward-incompatible changes to the format
82of the images: specifically adding support for protected TLV entries.
83If multiple images and dependencies are not used, the images will be
84compatible with previous releases of MCUboot.
85
86### About this release
87
David Brownd7581772019-10-15 12:00:25 -060088- Fixed CVE-2019-5477, and CVE-2019-16892. These fix issue with
89 dependencies used in the generation of the documentation on github.
David Brown4d0c5fa2019-10-08 09:57:31 -060090- Numerous code cleanups and refactorings
91- Documentation updates for multi-image features
92- Update imgtool.py to support the new features
David Brownd7581772019-10-15 12:00:25 -060093- Updated the mbed TLS submodule to current stable version 2.16.3
94- Moved the mbed TLS submodule from within sim/mcuboot-sys to ext.
95 This will make it easier for other board supports to use this code.
96- Added some additional overflow and bound checks to data in the image
97 header, and TLV data.
98- Add a `-x` (or `--hex_addr`) flag to imgtool to set the base address
99 written to a hex-format image. This allows the image to be flashed
100 at an offset, without having to use additional tools to modify the
101 image.
David Brown4d0c5fa2019-10-08 09:57:31 -0600102
Szymon Janc7fea8462019-07-04 14:45:52 +0200103## Version 1.3.1
104
105The 1.3.1 release of MCUboot consists mostly of small bug fixes and updates.
106There are no breaking changes in functionality. This release should work with
107Mynewt 1.6.0 and up, and any Zephyr `master` after sha
108f51e3c296040f73bca0e8fe1051d5ee63ce18e0d.
109
110### About this release
111
112- Fixed a revert interruption bug
113- Added ed25519 signing support
114- Added RSA-3072 signing support
115- Allow ec256 to run on CC310 interface
116- Some preparation work was done to allow for multi image support, which
117 should land in 1.4.0. This includes a simulator update for testing
118 multi-images, and a new name for slot0/slot1 which are now called
119 "primary slot" and "secondary slot".
120- Other minor bugfixes and improvements
121
David Brownb1d15a72019-01-22 16:22:08 -0700122## Version 1.3.0
123
124The 1.3.0 release of MCUboot brings in many fixes and updates. There
125are no breaking changes in functionality. Many of the changes are
126refactorings that will make the code easier to maintain going forward.
127In addition, support has been added for encrypted images. See [the
128docs](encrypted_images.md) for more information.
129
130### About this release
131
132- Modernize the Zephyr build scripts.
133- Add a `ptest` utility to help run the simulator in different
134 configurations.
135- Migrate the simulator to Rust 2018 edition. The sim now requires at
136 least Rust 1.32 to build.
137- Simulator cleanups. The simulator code is now built the same way
138 for every configuration, and queries the MCUboot code for how it was
139 compiled.
140- Abstract logging in MCUboot. This was needed to support the new
141 logging system used in Zephyr.
142- Add multiple flash support. Allows slot1/scratch to be stored in an
143 external flash device.
144- Add support for [encrypted images](encrypted_images.md).
145- Add support for flash devices that read as '0' when erased.
146- Add support to Zephyr for the `nrf52840_pca10059`. This board
147 supports serial recovery over USB with CDC ACM.
148- imgtool is now also available as a python package on pypi.org.
149- Add an option to erase flash pages progressively during recovery to
150 avoid possible timeouts (required especially by serial recovery
151 using USB with CDC ACM).
152- imgtool: big-endian support
153- imgtool: saves in intel-hex format when output filename has `.hex`
154 extension; otherwise saves in binary format.
155
Fabio Utzig3c939012018-06-25 13:26:32 -0300156## Version 1.2.0
157
158The 1.2.0 release of MCUboot brings a lot of fixes/updates, where much of the
159changes were on the boot serial functionality and imgtool utility. There are
160no breaking changes in MCUBoot functionality, but some of the CLI parameters
161in imgtool were changed (either removed or added or updated).
162
163### About this release
164
165- imgtool accepts .hex formatted input
166- Logging system is now configurable
167- Most Zephyr configuration has been switched to Kconfig
168- Build system accepts .pem files in build system to autogenerate required
169 key arrays used internally
170- Zephyr build switched to using built-in flash_map and TinyCBOR modules
171- Serial boot has substantially decreased in space usage after refactorings
172- Serial boot build doesn't require newlib-c anymore on Zephyr
173- imgtool updates:
174 + "create" subcommand can be used as an alias for "sign"
175 + To allow imgtool to always perform the check that firmware does not
176 overflow the status area, `--slot-size` was added and `--pad` was updated
177 to act as a flag parameter.
178 + `--overwrite-only` can be passed if not using swap upgrades
179 + `--max-sectors` can be used to adjust the maximum amount of sectors that
180 a swap can handle; this value must also be configured for the bootloader
181 + `--pad-header` substitutes `--included-header` with reverted semantics,
182 so it's not required for firmware built by Zephyr build system
183
184### Known issues
185
186None
187
Fabio Utzig49045cc2018-01-09 15:56:29 -0200188## Version 1.1.0
189
Carles Cufi90eda802018-01-29 18:33:20 +0100190The 1.1.0 release of MCUboot brings a lot of fixes/updates to its
Fabio Utzig49045cc2018-01-09 15:56:29 -0200191inner workings, specially to its testing infrastructure which now
192enables a more thorough quality assurance of many of the available
193options. As expected of the 1.x.x release cycle, no breaking changes
194were made. From the tooling perpective the main addition is
195newt/imgtool support for password protected keys.
196
197### About this release
198
199- serial recovery functionality support under Zephyr
200- simulator: lots of refactors were applied, which result in the
201 simulator now leveraging the Rust testing infrastructure; testing
202 of ecdsa (secp256r1) was added
203- imgtool: removed PKCS1.5 support, added support for password
204 protected keys
205- tinycrypt 0.2.8 and the mbed-tls ASN1 parser are now bundled with
206 mcuboot (eg secp256r1 is now free of external dependencies!)
207- Overwrite-only mode was updated to erase/copy only sectors that
208 actually store firmware
209- A lot of small code and documentation fixes and updates.
210
211### Known issues
212
213None
214
David Brown37f8afd2017-09-12 10:59:39 -0600215## Version 1.0.0
216
Carles Cufi90eda802018-01-29 18:33:20 +0100217The 1.0.0 release of MCUboot introduces a format change. It is
David Brown37f8afd2017-09-12 10:59:39 -0600218important to either use the `imgtool.py` also from this release, or
219pass the `-2` to recent versions of the `newt` tool in order to
220generate image headers with the new format. There should be no
221incompatible format changes throughout the 1.x.y release series.
222
223### About this release
224
225- Header format change. This change was made to move all of the
226 information about signatures out of the header and into the TLV
227 block appended to the image. This allows
228 - The signature to be replaced without changing the image.
229 - Multiple signatures to be applied. This can be used, for example,
230 to sign an image with two algorithms, to support different
231 bootloader configurations based on these image.
232 - The public key is referred to by its SHA1 hash (or a prefix of the
233 hash), instead of an index that has to be maintained with the
234 bootloader.
235 - Allow new types of signatures in the future.
236- Support for PKCS#1 v1.5 signatures has been dropped. All RSA
237 signatures should be made with PSS. The tools have been changed to
238 reflect this.
239- The source for Tinycrypt has been placed in the MCUboot tree. A
240 recent version of Tinycrypt introduced breaking API changes. To
241 allow MCUboot to work across various platforms, we stop using the
242 Tinycrypt bundled with the OS platform, and use our own version. A
243 future release of MCUboot will update the Tinycrypt version.
244- Support for some new targets:
245 - Nordic nRF51 and nRF52832 dev kits
246 - Hexiwear K64
247- Clearer sample applications have been added under `samples`.
Fabio Utzig4dce6aa2018-02-12 15:31:32 -0200248- Test plans for [zephyr](testplan-zephyr.md), and
249 [mynewt](testplan-mynewt.md).
David Brown37f8afd2017-09-12 10:59:39 -0600250- The simulator is now able to test RSA signatures.
251- There is an unimplemented `load_addr` header for future support for
252 RAM loading in the bootloader.
253- Numerous documentation.
254
255### Known issues
256
257None
258
259## Version 0.9.0
260
Carles Cufi90eda802018-01-29 18:33:20 +0100261This is the first release of MCUboot, a secure bootloader for 32-bit MCUs.
David Brown37f8afd2017-09-12 10:59:39 -0600262It is designed to be operating system-agnostic and works over any transport -
263wired or wireless. It is also hardware independent, and relies on hardware
264porting layers from the operating system it works with. For the first release,
265we have support for three open source operating systems: Apache Mynewt, Zephyr
266and RIOT.
267
268### About this release
269
270- This release supports building with and running Apache Mynewt and Zephyr
271 targets.
272- RIOT is supported as a running target.
273- Image integrity is provided with SHA256.
274- Image originator authenticity is provided supporting the following
275 signature algorithms:
276 - RSA 2048 and RSA PKCS#1 v1.5 or v2.1
277 - Elliptic curve DSA with secp224r1 and secp256r1
278- Two firmware upgrade algorithms are provided:
279 - An overwrite only which upgrades slot 0 with the image in slot 1.
280 - A swapping upgrade which enables image test, allowing for rollback to a
281 previous known good image.
282- Supports both mbed-TLS and tinycrypt as backend crypto libraries. One of them
283 must be defined and the chosen signing algorithm will require a particular
284 library according to this list:
285 - RSA 2048 needs mbed TLS
286 - ECDSA secp224r1 needs mbed TLS
287 - ECDSA secp256r1 needs tinycrypt as well as the ASN.1 code from mbed TLS
288 (so still needs that present).
289
290### Known issues
291
292- The image header and TLV formats are planned to change with release 1.0:
293 https://runtimeco.atlassian.net/browse/MCUB-66