# CVE-2026-16671: Out-of-bounds stack write in MCUboot split-image validation with SHA-384/SHA-512 builds

- **Severity:** LOW 2.9
- **CVSS:** 2.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-11-13T00:23:02.120Z
- **Modified:** 2026-11-24T23:13:20.352Z

## Who should check

- Anyone running mcu-tools mcuboot \>= 2.0.0, \< 2.5.0

## Description

split\_image\_check() in boot/bootutil/src/loader.c declares a fixed uint8\_t loader\_hash\[32\] buffer and passes it as the out\_hash out-parameter to bootutil\_img\_validate(). That routine copies IMAGE\_HASH\_SIZE bytes into out\_hash (memcpy(out\_hash, hash, IMAGE\_HASH\_SIZE) in boot/bootutil/src/image\_validate.c), where IMAGE\_HASH\_SIZE is a compile-time constant of 64 for MCUBOOT\_SHA512 or 48 for MCUBOOT\_SIGN\_EC384/SHA-384 (boot/bootutil/include/bootutil/crypto/sha.h). The buffer tracks SHA-256 (32 bytes) while the copy length tracks the configured algorithm, so the write overruns the buffer by 16 or 32 bytes.

The overflow is only present in a non-default configuration: the legacy Mynewt split-image feature must be compiled (split\_go()/split\_image\_check(), i.e. neither MCUBOOT\_DIRECT\_XIP nor MCUBOOT\_RAM\_LOAD), the digest must be larger than 32 bytes (MCUBOOT\_SHA512 or MCUBOOT\_SIGN\_EC384), and MCUBOOT\_SIGN\_PURE must be off. split\_go() is a public API with no caller inside MCUboot; it is invoked from a Mynewt application. In the default SHA-256 build there is no overflow.

The over-written bytes are the one-way digest of the loader image and the overflow length is fixed at build time, so the contents are not meaningfully attacker-controlled and the size is not attacker-chosen. The realistic impact is bounded, uncontrolled corruption of the bootloader's stack on the split-boot path, manifesting as instability or failed boot in the affected configuration rather than reliable code execution. The fix is to size loader\_hash to IMAGE\_HASH\_SIZE and pass IMAGE\_HASH\_SIZE as the matching seed length.

## Affected and fixed versions

- mcu-tools mcuboot: \>= 2.0.0, \< 2.5.0 (cvelist)

## Mitigation

- Upgrade mcuboot to 2.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-16671. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-16671.md
Affected: mcu-tools mcuboot >= 2.0.0, < 2.5.0
Fixed in: mcu-tools mcuboot 2.5.0

Steps:
1. Search this machine and project for mcu-tools mcuboot: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-16671 being exploited?

There is no confirmed exploitation: CVE-2026-16671 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-16671?

Low: CVSS 2.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-16671?

mcu-tools mcuboot \>= 2.0.0, \< 2.5.0.

### Is there a fix for CVE-2026-16671?

Yes. Fixed in mcu-tools mcuboot 2.5.0. Upgrade mcuboot to 2.5.0 or later.

### How do I check if I'm affected by CVE-2026-16671?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-vj6q-r752-fpqv>
- patch: <https://github.com/mcu-tools/mcuboot/commit/9fb70f00173766d73cdadd82266bd61e4ddd0252>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-16671>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-16671> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-16671>
