Skip to content

mcuboot

TLV iterator does not bound each entry against the declared TLV area in MCUboot bootutil

CVE-2026-127915Published 13 Nov 2026, 00:23 UTC

Real-world risk

0.1/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.0

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from zephyr)

The MCUboot TLV iterator bootutil_tlv_iter_next() in boot/bootutil/src/tlv.c walks image trailer TLVs with a single loop guard (it->tlv_off < it->tlv_end) and advances by sizeof(struct image_tlv) + tlv.it_len using the attacker-controlled it_len field, without validating that the entry's header or payload stays within it->tlv_end. As a result the 4-byte header read can extend up to 3 bytes past the declared TLV area, and the returned (off, len) can describe a payload that runs past it. The path is pre-authentication: TLVs are parsed during bootutil_img_validate() before the signature is verified, and a crafted image can be presented through DFU / serial-recovery / OTA. However the impact is contained by surrounding guards: bootutil_img_validate() first rejects a TLV area larger than bootutil_max_image_size(), the default LOAD_IMAGE_DATA sink is flash_area_read() which bounds-checks against the flash partition and fails an out-of-partition read, and every payload consumer (EXPECTED_HASH_TLV, EXPECTED_KEY_TLV, EXPECTED_SIG_TLV, IMAGE_TLV_SEC_CNT) clamps len against a fixed buffer before copying. The residual effect in a default flash build is therefore an out-of-region read confined to the attacker's own slot partition whose result is never observable, yielding at worst a clean validation failure rather than memory corruption or information disclosure. A genuine (though still bounded) out-of-bounds read remains under the non-default MCUBOOT_RAM_LOAD configuration, where LOAD_IMAGE_DATA is an unchecked memcpy. The fix is to validate each entry's header and payload against it->tlv_end inside the iterator.

Am I affected?

ProductAffected versions (from the sources)Fixed in
mcubootNiche>= 0.9.0, < 2.5.02.5.0

What to do

Update to a fixed version: 2.5.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionPhysicalMust touch the deviceFrom the CVSS vector0.10
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 8), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.045
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.045 × threat 0.850.115
  4. Rounded to one decimal between 0.1 and 100.1

How the score works

Exploitation and evidence timeline

  1. 13 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.1 (cvss fallback)

Weakness

CWE-125

References

Get alerts for mcuboot

Free email or text alerts when a vulnerability in mcuboot reaches risk 8 or higher. Nothing else.