CVE-2026-127915 · Runtime
NO FIX YET · SEE WHAT TO DO
The MCUboot bootloader's TLV iterator does not check that each entry stays inside the image trailer area, so a crafted image can cause an out-of-bounds read. The sources say the default flash build only fails validation with a bounded read, while the non-default RAM-load configuration has a genuine but bounded out-of-bounds read.
first public Nov 12, 2026 · 1 source
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams building firmware on MCUboot, especially devices that use the non-default MCUBOOT_RAM_LOAD configuration, where the out-of-bounds read is genuine though bounded. The sources say the default flash build is contained by bounds checks in the flash read path and results in a clean validation failure at worst. Teams using a different bootloader or none of the affected code can skip it.
Not affected if default-config, non-ram-load
Who cares dfu, embedded, firmware, mcuboot
MCUBOOT_RAM_LOAD configuration, which the sources identify as the affected case.bootutil_tlv_iter_next(); no fixed version is stated in the sources.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.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.