Skip to content

docs: Add a security vulnerabilities page - #2968

Open
d3zd3z wants to merge 2 commits into
mcu-tools:mainfrom
d3zd3z:docs-vulnerabilities
Open

d3zd3z wants to merge 2 commits into
mcu-tools:mainfrom
d3zd3z:docs-vulnerabilities

Conversation

@d3zd3z

@d3zd3z d3zd3z commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Add docs/vulnerabilities.md, a page that collects the security
vulnerabilities fixed in MCUboot. Each entry gives the CVE, the advisory
and the pull request that fixed it. The release notes are tied to a
version, so this page can carry more detail and can be updated after a
release, for example when an embargo ends.

The first commit adds the empty page. It links the page from the
documentation index and from the disclosure section of the security
policy, and adds a pending release note announcing it.

The second commit adds entries for the eight advisories published so far
in 2026, grouped by the release that contains the fix. Seven of them are
fixed in v2.5.0. CVE-2026-16664 (GHSA-8rcq-2mgr-fhp8) was only partially
fixed in v2.5.0 by #2836 and was completed on main by #2967, so it is
listed in a section for the next release.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 00:30
@d3zd3z
d3zd3z requested review from de-nordic and nordicjm November 13, 2026 00:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Outstanding documentation inaccuracies misstate the exploit image value and loader exposure, omit the affected MCUBOOT_SIGN_PURE configuration, and fail to identify PR 2836 as only a partial mitigation.

4 open issues
What changed in this PR

Adds a central security-vulnerabilities page so MCUboot can publish detailed disclosures independently of version-specific release notes.

Changes:

  • Documents eight 2026 vulnerabilities with technical details, CVEs, advisories, and remediation PR links.
  • Links the page from the documentation index and security disclosure policy.
  • Adds a pending release note announcing the page.
File Description
docs/​vulnerabilities.md Adds the vulnerability catalog and remediation references.
docs/​SECURITY.md Includes catalog updates in the public disclosure process.
docs/​release-notes.d/​vulnerabilities-page.md Announces the new security documentation page.
docs/​index.md Adds the catalog to the documentation navigation.

Review effort: Balanced

Comment thread docs/vulnerabilities.md Outdated
Comment on lines +90 to +115
The defect is reachable only under `MCUBOOT_MEASURED_BOOT`, and only
when the image reaching `boot_save_boot_status()` was not hash-validated
on that boot. `bootutil_img_validate()` rejects a hash TLV whose length
is not exactly `sizeof(hash)`
(`boot/bootutil/src/image_validate.c:345`), and primary-slot validation
is on by default (Zephyr's `CONFIG_BOOT_VALIDATE_SLOT0` defaults to
`y`), so in a default build the malformed image never reaches this code.
The direct-XIP and RAM-load strategies in `boot/bootutil/src/loader.c`
validate the selected slot unconditionally and are not affected. The
short TLV survives only where the integrator has turned primary-slot
validation off: the swap and overwrite loader built without
`MCUBOOT_VALIDATE_PRIMARY_SLOT`, which checks only the image magic
before calling `boot_add_shared_data()`, and the Zephyr single-slot
loader (`boot/zephyr/single_loader.c`) built without it, including the
`MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE` variant, which skips validation
once the trailer records an earlier successful one. It is also reachable
through a time-of-check/time-of-use change to tamperable external flash
between validation and the boot-record read. Placing the crafted image
requires physical or flash-write access to the device; in a single-slot
build with serial recovery enabled, the serial-recovery upload writes
the primary slot directly and can place it as well.

In these configurations the boot record's measurement is already not
trustworthy: with validation off, the hash copied into the record is the
image's own unverified `EXPECTED_HASH_TLV`, which the attacker chooses.
The defect therefore does not weaken attestation integrity any further.
Comment thread docs/vulnerabilities.md Outdated
Comment on lines +167 to +168
sign of the index as well as its magnitude: an `image` of `0xFFFFFFFF`
converts to `-1` and reads `all_slots[-2]`, off the front of the table,
Comment thread docs/vulnerabilities.md Outdated
Comment on lines +191 to +193
This is being fixed in main for v2.5.1:

- [PR 2836 fix for main](https://github.com/mcu-tools/mcuboot/pull/2836)
Comment thread docs/vulnerabilities.md Outdated
The callers bound part of the span, or none of it:

- On the swap and overwrite upgrade path, `boot_validate_slot()` first runs the image header check (`boot_is_header_valid()`, later `boot_check_header_valid()`). Before MCUboot 2.2.0 that check covered only `ih_hdr_size + ih_img_size`, so for every image the protected-TLV area (`ih_protect_tlv_size`, a `uint16_t`, up to 65535 bytes) was hashed without being bounded. From 2.2.0 the check includes `ih_protect_tlv_size`, except for a compressed image in the secondary slot when `MCUBOOT_DECOMPRESS_IMAGES` (`CONFIG_BOOT_DECOMPRESSION`) is enabled, which leaves the same gap of up to 64 KB.
- The serial recovery image-list and image-state handlers (`bs_list()` and `bs_set()` in `boot/boot_serial/src/boot_serial.c`) and Zephyr's single-slot and firmware loaders (`boot/zephyr/single_loader.c`, `boot/zephyr/firmware_loader.c`) call `bootutil_img_validate()` with no header check at all, so on those paths `ih_img_size` is unbounded as well.

@nordicjm nordicjm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do wonder how easy it will be to use this page, since things are not grouped by version they are fixed it (if we imagine e.g. in 2 years the page having a lot more things on it)?

Comment thread docs/vulnerabilities.md Outdated

### CVE-2026-16662

Uninitialised bootloader stack disclosed into the measured-boot attestation record via a short EXPECTED_HASH TLV in MCUboot

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of the lines randomly go long like here

Comment thread docs/vulnerabilities.md Outdated
- [CVE-2026-16664](https://www.cve.org/CVERecord?id=CVE-2026-16664)
- [MCUboot advisory GHSA-8rcq-2mgr-fhp8](https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-8rcq-2mgr-fhp8)

This is being fixed in main for v2.5.1:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is or has? Tense should be the same throghout

Comment thread docs/vulnerabilities.md Outdated
Comment on lines +183 to +186
arguments as defence in depth. This vulnerability was reported
independently twice: by NVIDIA Project Vanessa on 2026-06-22, and by Kai
Phan (@kaimandalic) on 2026-07-19 as GHSA-8v33-88p6-jffj, which is
closed as a duplicate of this advisory.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to list who reported it at all here, that's what the actual SI ticket is for surely?

Comment thread docs/vulnerabilities.md Outdated
Comment on lines +205 to +206
`MCUBOOT_SHA512` or `48` for `MCUBOOT_SIGN_EC384`/SHA-384
(`boot/bootutil/include/bootutil/crypto/sha.h`). The buffer tracks

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sha512 is a define but sha384 is just text?

Add docs/vulnerabilities.md to collect the security vulnerabilities
fixed in MCUboot, each with its CVE and advisory. The page starts
empty; entries are added as advisories are published. Because the
release notes are locked to a version, this page can carry more
detail and be updated after a release.

Link the page from the documentation index and from the disclosure
section of the security policy, and add a pending release note
announcing it.

Assisted-by: Claude:opus-5.5
Signed-off-by: David Brown <david.brown@linaro.org>
Add entries for the eight MCUboot advisories published so far, grouped
under the release that contains the fix. Seven are fixed in v2.5.0. The
fix for CVE-2026-16664 was only partial in v2.5.0 and was completed on
main afterwards, so it is listed in a section for the next release.
Each entry has its summary, description, CVE and advisory links, and
the pull requests that fixed it.

The text starts from the published advisories, with corrections where
review against the source found them wrong: the measured-boot entry
now covers pure-signature builds, the serial image-index entry uses
the right negative example, and the image-hash entry no longer groups
the Zephyr loaders with callers that have no header check.

Assisted-by: Claude:opus-5.5
Signed-off-by: David Brown <david.brown@linaro.org>
@d3zd3z
d3zd3z force-pushed the docs-vulnerabilities branch from b3ee462 to aff16b7 Compare November 13, 2026 21:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants