CVE-2026-16667: Cypress/PSoC6 flash backend fails to bounds-check flash accesses, allowing pre-auth out-of-bounds reads

Published Nov 24, 2026
·
Updated

The Cypress/PSoC6 flash-map backend in boot/cypress/cyflashpal/cyflashmap.c guards every flash access with assert() against the wrong struct field. flasharearead(), flashareawrite(), and flashareaerase() check assert(off < fa->faoff) and assert(off + len < fa->faoff), comparing the area-relative off against the partition's absolute base address fa->faoff instead of its length fa->fasize. Because faoff 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->faoff + off with no enforcement.

The MCUboot core does not bound image-region offsets itself; it relies on flasharearead() returning an error. During pre-authentication image validation, bootutilimghash() in boot/bootutil/src/bootutilimghash.c loops over ihhdrsize + ihimgsize + ihprotecttlvsize — all attacker-controlled header fields of the still-unverified update image — calling flasharearead(), 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 ihimgsize, 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.

Affected Software

1 affected component
Cypress MCUboot Cypress/PSoC6 flash-map backend

Event History

Nov 24, 2026
CVE Published
via MITRE·11:37 PM
Data Sourced
via MITRE·11:37 PM
DescriptionSeverityWeakness
Nov 25, 2026
Data Sourced
via NVD·12:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using the Cypress/PSoC6 flash-map backend are exposed. The affected paths are used while MCUboot validates an update image before authentication.

2

What does an attacker need to exploit it?

An attacker needs to be able to stage a crafted update image in the secondary image area. The crafted image can supply header and TLV size or offset values that drive flash reads beyond the intended partition.

3

Do debug assertions prevent exploitation?

No. The assertions compare area-relative offsets with the partition's absolute base address rather than its size, so realistic out-of-partition offsets can pass even in debug builds. In builds using NDEBUG, the assertions are removed entirely.

4

What is the likely security effect?

The issue allows pre-authentication out-of-bounds flash reads. The supplied severity vector indicates no confidentiality or integrity impact, but a high availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203