Skip to main content

MCUboot CVE-2026-127916

| EUVDEUVD-2026-124792 LOW
Out-of-bounds Read (CWE-125)
2026-11-13 zephyr
2.9
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Stage crafted image in slot
  2. Exploit
    Oversized header sizes escape bounds check
  3. Execution
    Hash read crosses flash area end
  4. Impact
    Read fault denies boot

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be able to place a candidate image in a slot - an OTA or SMP update delivered through the application, or serial recovery; because the image is hashed before signature verification, authentication is not required to reach the read (consistent with the input PR:N). Whether this becomes an actual out-of-bounds read depends on the flash backend: it is reachable with the Cypress PSoC6 port's flash_area_read() (boot/cypress/cy_flash_pal/cy_flash_map.c, from 1.6.0, whose asserts compare against the area's absolute offset not its size), or with MCUBOOT_HASH_STORAGE_DIRECTLY / Zephyr CONFIG_BOOT_IMG_HASH_DIRECTLY_ON_STORAGE (from 2.2.0, NOT enabled by default). Bounds-checked backends (Zephyr default, Espressif, NuttX, Mbed) fail closed and reject the image with no over-read - a significant limiting factor. On the swap/overwrite upgrade path the unbounded span is capped at ~64 KB (the protected-TLV gap, or a compressed secondary-slot image when CONFIG_BOOT_DECOMPRESSION is enabled), whereas the serial-recovery handlers (bs_list()/bs_set()) and the Zephyr single-slot and firmware loaders perform no header check at all, leaving ih_img_size unbounded and allowing a read much further past the slot.

Impact

All signals point to a low-priority issue. The input CVSS is 2.9 (Low) with CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - local vector, high attack complexity, and availability-only impact - and vuln.today assigns the 'monitor' decision label. There is no CISA KEV listing and no public exploit identified at time of analysis; EPSS was not provided in the input, so probability-of-exploitation cannot be quantified. The only real-world effect confirmed by the advisory is an availability one: a read fault during image validation that, where validation repeats each boot, can keep a device from booting. Importantly, the 'Information Disclosure' signal in the Tags conflicts with the advisory, which states the over-read bytes feed only the internal digest and are never returned, so nothing is disclosed - treat the disclosure framing as incorrect. The AV:L choice is consistent with the mechanism: although an image may arrive via OTA/SMP, the flaw is reached only once a candidate image sits in a slot and is locally validated. Bottom line: a genuine but low-severity, configuration-dependent denial-of-service/boot-loop hardening fix, not an urgent exploitation threat.

Exploit ScenarioDerived

An actor able to stage a candidate firmware image in a slot (an OTA/SMP update delivered through the application, or serial recovery) crafts a header with oversized ih_img_size and/or ih_protect_tlv_size values. Because the image is hashed before its signature is checked, validation reads the attacker-declared span before authentication; on a vulnerable flash backend this read crosses the end of the flash area and faults, and where validation runs every boot the device can be left unable to start. No public exploit has been identified at time of analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

MCUboot 1.6.0 through 2.4.0 hashes a candidate image over ih_hdr_size + ih_img_size + ih_protect_tlv_size taken from the image's own unauthenticated header without first verifying that the span fits inside the flash area, so an image placed in a slot via an OTA/SMP update delivered through the application or via serial recovery reaches a read past the end of the slot before its signature is checked. Whether an actual out-of-bounds read occurs depends entirely on the flash backend: bounds-checking ports (Zephyr default, Espressif, NuttX, Mbed) fail closed and simply reject the image, while the Cypress PSoC6 port's flash_area_read() and builds using MCUBOOT_HASH_STORAGE_DIRECTLY / CONFIG_BOOT_IMG_HASH_DIRECTLY_ON_STORAGE do not, allowing a read fault that can recur on every reset and keep the device from booting; on the swap/overwrite path the unbounded span is capped at roughly 64 KB, but the serial-recovery handlers and Zephyr single-slot/firmware loaders skip the header check entirely and leave ih_img_size unbounded. Nothing read past the area is disclosed - the bytes only feed a digest compared internally and never returned. Vendor-released patch: 2.5.0; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: MCUboot 2.5.0, via PR #2819 (commit e9abe4f0292f0ed72391e146e098e22547b2d78b, https://github.com/mcu-tools/mcuboot/commit/e9abe4f0292f0ed72391e146e098e22547b2d78b), which bounds the hashed span with boot_u32_safe_add() against flash_area_get_size(fap), including the swap-using-offset sector offset, before any of it is read; upgrade all deployments in the 1.6.0-2.4.x range to 2.5.0 or a branch carrying the backport, and consult the advisory at https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-c7cx-5pqv-x9m6 for backport status of individual release lines. Where upgrading is not immediately possible, the exposure can be narrowed by configuration and attack-surface reduction: do not enable MCUBOOT_HASH_STORAGE_DIRECTLY / CONFIG_BOOT_IMG_HASH_DIRECTLY_ON_STORAGE (which converts the chunked, bounds-checked read into an unchecked direct pointer dereference - disabling it costs hashing performance on memory-mapped flash), rely on a backend whose flash_area_read() validates the requested range against the area size so malformed images fail closed, and, on the Cypress PSoC6 port whose flash_area_read() asserts against the area's absolute offset rather than its size, treat untrusted image placement as the entry condition - restricting or disabling serial recovery and constraining which OTA/SMP update sources the application accepts removes the reachable path, at the cost of losing the field-recovery channel or requiring the application to authenticate update sources before they are staged. Because the trigger is an image written into a slot before signature verification, verifying update provenance at the application layer is the only control that does not depend on the flash backend.

Affected VersionsENISA

mcuboot 1.6.0 <2.5.0

Affected Packages

euvd mcuboot fix: 2.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The defect is an out-of-bounds read (CWE-125) in bootutil_img_hash(), located in boot/bootutil/src/bootutil_img_hash.c (boot/bootutil/src/image_validate.c before 2.3.0). The function builds the hashed span with plain 32-bit additions of three fields copied from the candidate image header - ih_hdr_size, ih_img_size and ih_protect_tlv_size (a uint16_t of up to 65535) - with no overflow check, and without comparing the resulting span against flash_area_get_size(fap). Nothing earlier on the path closes the gap: bootutil_img_validate() checks the image size against bootutil_max_image_size() only after the hash has been computed, and the hash is computed before signature verification, so an unauthenticated candidate image reaches the read. Caller-side coverage is partial: boot_validate_slot() runs boot_is_header_valid()/boot_check_header_valid(), which before 2.2.0 covered only ih_hdr_size + ih_img_size, and from 2.2.0 still excludes ih_protect_tlv_size for a compressed secondary-slot image when MCUBOOT_DECOMPRESS_IMAGES / CONFIG_BOOT_DECOMPRESSION is enabled (gap of up to 64 KB); bs_list()/bs_set() in boot/boot_serial/src/boot_serial.c and boot/zephyr/single_loader.c plus boot/zephyr/firmware_loader.c call bootutil_img_validate() with no header check at all. Exploitability is gated by the port: Espressif (end_offset > fa_size), NuttX (off + len > fa_size) and Mbed (is_valid_read()) bound-check and fail closed, and the MCUBOOT_HASH_STORAGE_DIRECTLY branch that hashes through a direct pointer into memory-mapped flash (added 2.2.0, not enabled by default) does not, while boot/cypress/cy_flash_pal/cy_flash_map.c (from 1.6.0) asserts against the area's absolute offset rather than its size and then memcpy()s. The fix replaces the plain additions with boot_u32_safe_add() and rejects any image whose span, including the sector offset used in swap-using-offset mode, exceeds the flash area, before hashing - a check applied at the point of the read, so it covers every caller.

Know when Mcuboot gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 2.9 LOW
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 2.9 LOW

Reaching the read needs no auth since the image is hashed before signature check (PR:N), but an actual over-read requires a specific vulnerable flash backend (AC:H); impact is a boot-time read fault, so A:L with no confidentiality or integrity effect.

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

bootutil_img_hash() computes the image digest over ih_hdr_size + ih_img_size + ih_protect_tlv_size bytes, all three taken from the candidate image's header, and reads that span out of the slot without checking that it fits in the flash area. The three sizes are also summed without an overflow check. Nothing earlier on the validation path bounds the whole span either: bootutil_img_validate() compares the image size against bootutil_max_image_size() only after the hash has been computed.

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.

The image is hashed before its signature is checked, so anyone who can place an image in a slot (an OTA or SMP update delivered through the application, or serial recovery) reaches this read before authentication.

Whether a malformed header produces an actual read beyond the area depends on the flash backend:

Backends whose flash_area_read() bounds-checks the request (Zephyr, Espressif, NuttX, Mbed) return an error once the chunked read crosses the end of the area. Validation fails and the image is rejected, with no over-read. With MCUBOOT_HASH_STORAGE_DIRECTLY (Zephyr CONFIG_BOOT_IMG_HASH_DIRECTLY_ON_STORAGE, available from 2.2.0, not enabled by default) the span is hashed through a single direct pointer into memory-mapped flash, with no bounds check. The Cypress PSoC6 port's flash_area_read() (boot/cypress/cy_flash_pal/cy_flash_map.c, from 1.6.0) does not bound the read: its assert()s compare against the area's absolute offset rather than its size, and it copies with memcpy().

The bytes read past the area feed only the digest, which is compared internally and never returned, so nothing is disclosed. The realistic effect is a read fault during image validation: up to 64 KB past the slot on the upgrade path, and potentially much further on the paths that skip the header check. Where validation is repeated at every boot (a pending upgrade, or the single-slot loader checking its image), the fault can recur on each reset and keep the device from booting.

The fix makes bootutil_img_hash() add the three sizes with boot_u32_safe_add() and reject an image whose span, including the sector offset used in swap-using-offset mode, does not fit in the flash area, before any of it is hashed. Because the bound is applied where the bytes are read, it covers every caller.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
widely-used embedded secure bootloader, broad IoT footprint but not universal
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy