Skip to main content

MCUboot EUVDEUVD-2026-134823

| CVE-2026-16667 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-25 vulnerabilities@zephyrproject.org GHSA-6cg5-5j34-3hmq
6.2
CVSS 3.1 · Vendor: zephyrproject
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Stage crafted image in update slot
  2. Delivery
    Declare oversized ih_img_size header field
  3. Exploit
    Pre-auth hash loop requests out-of-partition read
  4. Execution
    Broken assert fails to reject offset
  5. Persist
    memcpy from unmapped PSoC6 address
  6. Impact
    Bus fault hangs/crashes bootloader (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to stage a crafted, unverified update image in the device's secondary/update slot through the product's update path (OTA, DFU, or serial recovery) and to declare an oversized ih_img_size (and related header size fields), which the pre-authentication hash and TLV loops trust before signature verification. The defect is limited to builds using the Cypress/PSoC6 flash-map backend (boot/cypress/cy_flash_pal/cy_flash_map.c); mainline Zephyr/sim/mynewt backends are unaffected, so non-PSoC6 deployments are not exposed. Impact is further gated: a crash only occurs when the computed absolute address (fa->fa_off + off) lands on an unmapped or peripheral region of the PSoC6 address map, and the outcome is confined to a bus fault/hang (availability) - there is no path to code execution, data disclosure, or auth bypass, and the latent write/erase variant was not shown to be attacker-reachable.

Impact

This is a genuine but bounded issue, not a top-tier emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 6.2 Medium) correctly reflects an availability-only impact: the advisory and description agree there is no memory corruption, no information disclosure (the out-of-bounds bytes are only folded into a hash that still fails signature verification), and no authentication bypass. The realistic worst case is a bus fault or hang of the bootloader (denial of service), not code execution. The vuln.today decision label is 'this_month' - meaningful but explicitly not 'act_now' or 'emergency'. No EPSS score was supplied, no CISA KEV listing applies, and no exploit code is referenced; the only GitHub reference beyond the advisory is the fix pull request. The three input tags (Authentication Bypass, Buffer Overflow, Information Disclosure) directly CONTRADICT the authoritative advisory, which rules out all three impacts - treat them as mislabeled, not as risk signals. A notable aggravating factor is that no fix has been released (PR #2803 is open against main), so there is no vendor-shipped remediation yet. Net: prioritize for patching within a normal cycle for products built on the Cypress/PSoC6 MCUboot port, but this is a local, availability-only defect rather than a widespread remote-code-execution threat.

Exploit ScenarioDerived

An attacker who can place a crafted update image into the device's secondary/update slot (via OTA, DFU, or serial recovery, depending on the product) sets an oversized ih_img_size header field. During pre-authentication image validation the Cypress/PSoC6 flash backend fails to bounds-check the read, so the hash loop reads far past the partition; if the computed absolute address lands on an unmapped or peripheral region of the PSoC6 memory map the bootloader takes a bus fault and crashes instead of cleanly rejecting the image. No public exploit code is identified, and the attack yields only denial of service - no code execution or data disclosure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Pre-authentication out-of-bounds flash reads in MCUboot's Cypress/PSoC6 flash-map backend (boot/cypress/cy_flash_pal/cy_flash_map.c, versions 1.6.0 and later) let an attacker who can stage a crafted update image in the secondary slot crash the bootloader instead of having the image cleanly rejected. The backend validates area-relative offsets against the partition's absolute base address (fa->fa_off) rather than its length (fa->fa_size), so oversized header fields in a still-unverified image (ih_hdr_size, ih_img_size, ih_protect_tlv_size) drive reads far past the partition and into unmapped or peripheral regions of the PSoC6 address map, producing a bus fault or hang. Impact is availability-only (CVSS 6.2, AV:L/PR:N/UI:N, C:N/I:N/A:H) - there is no memory corruption, disclosure, or authentication bypass - and the defect is confined to PSoC6 builds; no CISA KEV entry, no public exploit identified at time of analysis, and no vendor-released fix was available at time of analysis (upstream PR #2803 remains open).

RemediationAI

No vendor-released patch identified at time of analysis: the GHSA advisory GHSA-hmjp-wh26-xc9h states that no fix has been released yet and will be updated when one lands, and the upstream fix is an open, unmerged pull request (mcu-tools/mcuboot PR #2803) against main, so no patched release version can be cited. Organizations carrying the PSoC6 port should backport the correction themselves: bound off and off + len against fa->fa_size (not fa->fa_off) in flash_area_read, flash_area_write and flash_area_erase and return an error rather than relying on assert(), since NDEBUG builds strip the asserts entirely - this is a compile-verified change to a single file with no effect on the boot flow for valid images. Until that is done, the exposure can be narrowed by restricting who can stage an unverified image in the secondary slot, since that is the documented prerequisite: disable or gate serial recovery (boot_serial) on production units, accepting loss of that field-recovery path, and require authenticated transports for OTA/DFU uploads, which does not protect against a compromised update server. Restricting the attack surface this way reduces, but does not eliminate, the crash condition; migrating PSoC6 builds to a flash backend that performs real length validation removes it. Note that the 'Authentication Bypass', 'Buffer Overflow' and 'Information Disclosure' tags attached to this CVE overstate the advisory's own analysis, which describes only an availability impact.

Affected VersionsENISA

mcuboot 1.6.0 ≤*

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-125 out-of-bounds read rooted in a broken bounds check in the Cypress/PSoC6 flash-map abstraction (boot/cypress/cy_flash_pal/cy_flash_map.c). flash_area_read(), flash_area_write() and flash_area_erase() guard accesses with assert(off < fa->fa_off) and assert(off + len < fa->fa_off), comparing the area-relative offset against the partition's absolute base address rather than against its length (flash_map_backend.h defines fa_off as the absolute base and fa_size as the length). Because fa_off is a large absolute address, realistic out-of-partition offsets pass even in a debug build, and under NDEBUG the asserts disappear entirely; the access then executes as a memcpy (or flash row operation) at fa->fa_off + off with no enforcement. MCUboot's core deliberately delegates region bounds to the backend: bootutil_img_hash() loops over ih_hdr_size + ih_img_size + ih_protect_tlv_size - all attacker-controlled fields of an unverified update image - calling flash_area_read() before signature verification, the TLV iterator in boot/bootutil/src/tlv.c derives tlv_end from header fields the same way, and LOAD_IMAGE_DATA resolves to flash_area_read in non-RAM-load builds. A correct backend would return an error and validation would fail cleanly. Here the out-of-bounds address is the source of the copy (the destination buffer is correctly sized), so the data read is only folded into a hash that ultimately fails signature verification - no disclosure and no auth bypass. The write/erase primitives carry the identical broken guard, but serial recovery in boot/boot_serial.c bounds img_size against the area size and performs sequential in-range writes in the core, so no attacker-controlled out-of-bounds write offset was demonstrated; that remains a latent gap. Mainline Zephyr, sim and mynewt backends are unaffected.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyrproject) PRIMARY 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.2 MEDIUM

Delivery of an unverified image into the update slot is treated as local (AV:L) and needs no privileges pre-authentication (PR:N); only availability is affected (A:H) since the OOB read feeds a failing hash, so C:N/I:N.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyrproject).

CVSS VectorVendor: zephyrproject

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
defect confined to the Cypress/PSoC6 MCUboot port, a niche embedded footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Related Vulnerabilities in MCUboot Flash and Crypto Security Flaws

View all 4

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy