Read the docs

Out-of-bounds flash reads in MCUboot Cypress/PSoC6 backend

Priority LOW 27CWE-125Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
No fix listed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-125 and the CVSS impact.

Summary

The Cypress/PSoC6 flash backend in MCUboot from 1.6.0 checks offsets against the partition's base address, not its size (CWE-125). An attacker who can stage a crafted update image triggers reads past the partition during pre-authentication validation. The bootloader then crashes or hangs instead of rejecting the image, a denial-of-service impact.

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

Description from the CNA

The Cypress/PSoC6 flash-map backend in boot/cypress/cy_flash_pal/cy_flash_map.c guards every flash access with assert() against the wrong struct field. flash_area_read(), flash_area_write(), and flash_area_erase() check assert(off < fa->fa_off) and assert(off + len < fa->fa_off), comparing the area-relative off against the partition's absolute base address fa->fa_off instead of its length fa->fa_size. Because fa_off is a large absolute address, realistic out-of-partition offsets pass the check even in a debug build, and under NDEBUG the asserts are removed entirely. The access then proceeds as memcpy() (or a flash row op) at fa->fa_off + off with no enforcement. The MCUboot core does not bound image-region offsets itself; it relies on flash_area_read() returning an error. During pre-authentication image validation, bootutil_img_hash() in boot/bootutil/src/bootutil_img_hash.c loops over ih_hdr_size + ih_img_size + ih_protect_tlv_size — all attacker-controlled header fields of the still-unverified update image — calling flash_area_read(), and the TLV iterator in boot/bootutil/src/tlv.c reads attacker-derived offsets the same way. An attacker who can stage a crafted image in the secondary/update slot (via OTA, DFU, or serial recovery, depending on the product) declares an oversized ih_img_size, causing reads far past the partition. A correct backend would reject these and fail validation cleanly; the Cypress backend does not. The out-of-bounds access is in the source address of the copy — the destination buffer is correctly sized — so there is no memory corruption, no information disclosure to the attacker (the data is only folded into a hash that still fails the signature check), and no authentication bypass. The realistic impact is a bus fault or hang when the computed absolute address lands on an unmapped or peripheral region of the PSoC6 address map: the bootloader crashes instead of rejecting the bad image, an availability (denial-of-service) impact. The defect is specific to the Cypress/PSoC6 port; mainline Zephyr/sim/mynewt backends are unaffected. The identical broken guard in the write/erase primitives is a latent out-of-bounds-write gap, but no attacker-controlled out-of-bounds offset was found to reach those (serial-recovery uploads are bounded by the core), so the reachable memory-safety bug is the out-of-bounds read.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00286 13th percentileScored 2026-11-30
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
mcu-toolsmcuboot1.6.0 and later—No fix listedCNA
  • mcuboot Vendormcu-tools Affected 1.6.0 and later Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for mcuboot.

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

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-16667
  2. 2026-11-25 Alias added: GHSA-6cg5-5j34-3hmq
  3. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2026-97829 Out-of-bounds stack write in MCUboot encrypted serial recovery CVSS 3.1HIGH 8.4
  • TI-2026-97830 MCUboot release builds compile out its assert() security checks CVSS 3.1HIGH 7.4
  • TI-2024-21755 MCUboot Injection attack of unprotected TLV values CVSS 3.1HIGH 7.7
  • TI-2026-97922 Out-of-bounds flash access via forged swap status in MCUboot CVSS 3.1MEDIUM 5.7
  • TI-2026-91073 Out-of-bounds read in MCUboot serial recovery image index CVSS 3.1MEDIUM 5.1
  • TI-2026-97925 Out-of-bounds read in MCUboot ECDSA signature parsing CVSS 3.1MEDIUM 4.0
See all 15 →

Sources