Read the docs

MCUboot split-image out-of-bounds stack write with SHA-384/SHA-512

Priority LOW 13CWE-787Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

MCUboot from 2.0.0 before 2.5.0 has an out-of-bounds stack write (CWE-787) in split-image validation. The split_image_check() function passes a 32-byte hash buffer, but the copy length follows the configured SHA-384 or SHA-512 digest size, so those builds overrun the buffer by 16 or 32 bytes. The overwritten bytes are a fixed-size digest, so the impact is bounded corruption that can cause instability or failed boot. It only occurs in non-default builds with the legacy split-image feature enabled.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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.

Why it matters now

EPSS 0.00111 1st percentileScored 2026-11-16
Fix Fixed mcuboot (mcu-tools): 2.5.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
mcu-toolsmcuboot2.0.0 to before 2.5.02.5.0Patch availableCNA
  • mcuboot Vendormcu-tools Affected 2.0.0 to before 2.5.0 Fixed in 2.5.0 Patch available CNA

Remediation

Update mcuboot to version 2.5.0, the fixed version.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA mcuboot (mcu-tools) Fixed in 2.5.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    mcu-tools mcuboot 2.5.0

    7 records Highest priority Priority LOW 7 LOW

    Other records, highest priority first

    • TI-2026-91071 NULL pointer dereference in MCUboot serial recovery image uploadPriority LOW 17
    • TI-2026-91078 Out-of-bounds read in MCUboot image hash during validationPriority LOW 13
    • TI-2026-91072 Uninitialised stack memory leaks into MCUboot measured-boot recordPriority LOW 11

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-16671
  2. 2026-11-13 Alias added: GHSA-6xxp-cfwm-wjvg

References

  • TI-2024-21755 MCUboot Injection attack of unprotected TLV values CVSS 3.1HIGH 7.7
  • TI-2026-91073 Out-of-bounds read in MCUboot serial recovery image index CVSS 3.1MEDIUM 5.1
  • TI-2026-91071 NULL pointer dereference in MCUboot serial recovery image upload CVSS 3.1MEDIUM 4.0
  • TI-2026-91078 Out-of-bounds read in MCUboot image hash during validation CVSS 3.1LOW 2.9
  • TI-2026-91072 Uninitialised stack memory leaks into MCUboot measured-boot record CVSS 3.1LOW 2.4
  • TI-2026-91077 MCUboot TLV iterator reads entries without bounds check against TLV area CVSS 3.1LOW 2.0
See all 8 →

Sources