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

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-11-24T23:37:52.740Z
- **Modified:** 2026-11-25T20:18:46.973Z

## Who should check

- Anyone running mcu-tools mcuboot \>= 1.6.0, \<= \*

## Description

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.

## Affected and fixed versions

- mcu-tools mcuboot: \>= 1.6.0, \<= \* (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-16667. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-16667.md
Affected: mcu-tools mcuboot >= 1.6.0, <= *
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for mcu-tools mcuboot: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-16667 being exploited?

There is no confirmed exploitation: CVE-2026-16667 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-16667?

Medium: CVSS 6.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-16667?

mcu-tools mcuboot \>= 1.6.0, \<= \*.

### Is there a fix for CVE-2026-16667?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-16667?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-hmjp-wh26-xc9h>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-16667>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-16667> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-16667>
