Skip to main content

MCUboot EUVDEUVD-2026-134825

| CVE-2026-16670 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-25 vulnerabilities@zephyrproject.org GHSA-fpwf-hff3-v8r2
4.0
CVSS 3.1 · Vendor: zephyrproject
View

Attack ChainAIDerived

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

  1. Access
    Craft image with malformed ECDSA signature TLV (sig[3]=255)
  2. Delivery
    Stage image into a slot MCUboot validates
  3. Exploit
    Pre-verify PSA DER parser reads unchecked r_len/s_len
  4. Execution
    memcpy over-reads ~130+ bytes past 128-byte stack buffer
  5. Impact
    Possible fault/DoS where read crosses unmapped memory

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

Exploitable ONLY when MCUboot is built with the PSA crypto backend (MCUBOOT_USE_PSA_CRYPTO) and ECDSA image signing (MCUBOOT_SIGN_EC256, or MCUBOOT_SIGN_EC384 which always builds with PSA); the in-tree CC310, TinyCrypt, and mbedTLS adapters use different length-aware decoders and are NOT affected, and EC256 defaults to TinyCrypt, so the vulnerable path is a non-default configuration. The attacker must be able to place an image carrying a crafted, malformed ECDSA signature TLV (which is unprotected / not covered by the image hash) plus a key TLV whose key matches a compiled-in trusted public key - public material - into a slot that undergoes validation, making the trigger effectively pre-authentication. Key LIMITING factors: the over-read is bounded to a fault/denial-of-service and only manifests on memory layouts where the read crosses an unmapped region; on typical flat-memory MCUs it reads adjacent RAM without faulting, there is no signature bypass, code execution, or information disclosure, and exploitation requires some mechanism to deliver the crafted image to the bootloader.

Impact

This is a genuine but low-urgency defect whose signals are internally consistent rather than conflicting. The supplied CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, base 4.0) correctly caps impact at availability-only: the advisory is explicit that this is an out-of-bounds READ, not a signature bypass, and that the over-read bytes feed a verification that fails closed and are never returned, so there is no confidentiality (C:N) or integrity (I:N) consequence - the 'Information Disclosure' tag in the input contradicts the primary source and should be disregarded. No EPSS score was provided and the CVE is not in CISA KEV, so there is no exploitation-probability or active-exploitation signal; exploitation status is best described as 'no public exploit identified at time of analysis,' with the caveat that the advisory reproduces two independent researcher reports containing proof-of-concept harnesses (an ASan source-slice harness and a heap-overflow PoC model) - these are PoC references described in the advisory, not verified working exploit code, and NVIDIA's own report labels reportability as 'report_after_env_validation.' The vuln.today priority is 'this_month,' consistent with a real-but-bounded memory-safety bug rather than an emergency. The dominant caveat is that the real-world availability impact is conditional on physical memory layout: the advisory states the over-read only faults where it crosses an unmapped region, and on typical flat-memory MCUs it simply reads adjacent RAM without faulting, meaning A:L may overstate impact for most target hardware. Verdict: a legitimate hardening priority for the specific PSA-crypto ECDSA configuration, but not a high-real-risk issue - no RCE, no bypass, no leak, and DoS only on certain memory maps.

Exploit ScenarioDerived

An attacker who can stage a firmware image into a slot that MCUboot validates (e.g., via an exposed update/DFU path) crafts an image whose ECDSA signature TLV is well-formed enough to reach the parser but carries a malformed DER length byte (sig[3]=255). When the PSA ECDSA adapter parses the RFC 5480 encoding before calling psa_verify_hash(), it memcpy's roughly 130+ bytes past the 128-byte stack buffer, an out-of-bounds read of adjacent stack memory. On a device whose layout places unmapped memory beyond the buffer this can trigger a fault/denial-of-service; the advisory reproduces PoC harnesses demonstrating the over-read, but no verified weaponized exploit and no code-execution or signature-bypass outcome.

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

An out-of-bounds read in MCUboot's PSA-crypto ECDSA signature parser lets a crafted, unprotected signature TLV push the RFC 5480 DER decoder past its 128-byte stack buffer before verification ever runs, so a malicious image placed in a slot that undergoes validation can fault the bootloader. Only builds using MCUBOOT_USE_PSA_CRYPTO with MCUBOOT_SIGN_EC256 or MCUBOOT_SIGN_EC384 are exposed (EC256 defaults to TinyCrypt, and MCUBOOT_SIGN_EC384 always builds with PSA), and the in-tree CC310, TinyCrypt and mbedTLS adapters use different length-aware decoders and are unaffected, making the vulnerable path a non-default configuration. Impact is confined to a possible denial of service or fault on memory layouts where the read crosses an unmapped page - on typical flat-memory MCUs it simply reads adjacent RAM; there is no signature bypass, code execution, or information disclosure because the over-read bytes feed a check that fails closed and are never returned to the attacker. Affects MCUboot >= 2.0.0; no vendor-released patch has landed yet. The originating report describes a source-slice ASan proof-of-concept harness, which is not confirmed as publicly available working exploit code, and there is no KEV listing. The assessed CVSS vector is AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, reflecting local attack delivery plus a bounded availability effect.

RemediationAI

No vendor-released patch identified at time of analysis - the GHSA-rgg7-2fx4-qpqg advisory states that no fix has been released yet and will be updated when one lands, so track that advisory for the patched version rather than assuming one exists. The mitigation with the strongest support in the source evidence is to avoid the vulnerable configuration: build with a non-PSA ECDSA backend, i.e. keep the EC256 default of TinyCrypt or use mbedTLS/CC310, which use length-aware ASN.1 decoding including an end pointer; the trade-off is that switching signature backends changes the build configuration and the set of supported curves/features, and MCUBOOT_SIGN_EC384 always builds with PSA, so P-384 signing has no non-PSA in-tree alternative and would need a custom crypto port instead. A further practical constraint is that the crafted signature TLV must be delivered to a slot that actually undergoes validation, so keeping imaged delivery paths under physical/logical control (debug and update interfaces that can write image slots) limits who can trigger the parse at all. When a fix or backport is applied, the advisory specifies it must bound every DER length and element read against the remaining signature length before the memcpy, and preferably reuse the length-aware ASN.1 helpers already used by the non-PSA backends rather than maintaining a second unchecked parser; the same change should also bound bootutil_ecdsa_parse_public_key()'s walk against its currently discarded 'end' pointer, which is a robustness gap on the same code path even though non-attacker-reachable.

Affected VersionsENISA

mcuboot 2.0.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

MCUboot's bootutil image validator walks a TLV area after hashing the protected region; the ECDSA signature TLV is deliberately unprotected (not covered by the image hash) and is therefore attacker-controlled, while the accompanying key TLV must match a compiled-in trusted public key (public, non-secret material), which is why the path is effectively pre-authentication. In bootutil_img_validate() the only gate on the signature TLV is '!EXPECTED_SIG_LEN(len) || len > sizeof(buf)', and because EXPECTED_SIG_LEN() is the constant 1 for ECDSA, an attacker-chosen length in 0..128 is copied verbatim into a 128-byte stack array and forwarded through bootutil_verify_sig()/bootutil_ecdsa_verify() to parse_signature_from_rfc5480_encoding(). That parser (CWE-125, out-of-bounds read) accepts no length argument - verify() explicitly discards it with '(void)slen;' - and instead trusts ASN.1 length octets read from the buffer itself (r_len = sig[3], then a derived s_len) without checking that the resulting offsets remain inside the supplied signature, so a crafted r_len such as 255 drives a memcpy roughly 130+ bytes past the end of the stack buffer. The parse happens before psa_verify_hash(), so the read is triggered whether or not the signature is ultimately valid. The defect is specific to the PSA crypto backend under MCUBOOT_SIGN_EC256 / MCUBOOT_SIGN_EC384; the CC310 adapter hands the signature to out-of-tree glue, and the TinyCrypt and mbedTLS backends use length-aware ASN.1 decoding including an end pointer. A related robustness gap flagged in the duplicate report, bootutil_ecdsa_parse_public_key() discarding its 'end' pointer, is not counted toward severity because its input is the compiled-in trusted key store rather than attacker data. Note also that the duplicate report modelled the signature buffer as an 8-byte heap allocation and therefore described a heap overflow, whereas in MCUboot the destination is a 128-byte stack array, making the real condition a stack over-read.

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 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.0 MEDIUM

AV:L because the attacker must deliver a crafted image for on-device validation; PR:N since only public key material is needed; C:N/I:N as there is no leak or bypass; A:L for a conditional fault/DoS.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
Low

DescriptionCVE.org

MCUboot's PSA-crypto ECDSA adapter parses the RFC 5480 DER signature with parse_signature_from_rfc5480_encoding() in boot/bootutil/include/bootutil/crypto/ecdsa.h, which takes no length argument. bootutil_ecdsa_verify() explicitly discards the signature length ((void)slen;) and the parser walks the encoding using length bytes read from the buffer itself (r_len = sig[3], then a derived s_len), with no check that those offsets stay within the supplied signature. Because this parsing runs before psa_verify_hash(), a malformed signature triggers the read whether or not the signature is valid.

In bootutil_img_validate() (boot/bootutil/src/image_validate.c:404) the ECDSA signature TLV is gated only by len > sizeof(buf), since EXPECTED_SIG_LEN() is the constant 1 for ECDSA; len is attacker-controlled in the range 0..128 and is copied into the 128-byte stack buffer buf. With a crafted r_len (e.g. sig[3] = 255) the parser's memcpy reads roughly 130+ bytes past the end of buf, an out-of-bounds read of adjacent stack memory. Reaching the signature case only requires a key TLV that matches a trusted public key (public material), so the path is effectively pre-authentication.

The defect is gated to the PSA crypto backend (MCUBOOT_USE_PSA_CRYPTO) with MCUBOOT_SIGN_EC256/MCUBOOT_SIGN_EC384 (and MCUBOOT_SIGN_EC384 always builds with PSA); the in-tree CC310, TinyCrypt, and mbedTLS adapters use different decoders and are not affected. This is not a signature bypass: the over-read bytes feed a verification that fails closed and are never returned to the attacker, so there is no information leak. The impact is bounded to a possible fault/denial-of-service on memory layouts where the read crosses an unmapped region; on typical flat-memory MCUs it reads adjacent RAM without faulting. This vulnerability was reported independently twice: by NVIDIA Project Vanessa on 2026-06-22, and by Kai Phan (@kaimandalic) on 2026-07-19 as GHSA-r44p-8v6p-hqv4, which is closed as a duplicate of this advisory. Both original reports are reproduced in full below. The second report additionally observes that bootutil_ecdsa_parse_public_key() discards its end pointer ((void)end;, ecdsa.h:446). That observation is correct, but it is not part of this vulnerability and is not counted in the severity: the buffer it parses is bootutil_keys[key_id].key, the compiled-in trusted key store (image_ecdsa.c:54-55), so no attacker-controlled data reaches that parse. It is a robustness gap on the same code path and should be closed alongside the signature-parser fix. Note also that the second report's proof-of-concept models the signature buffer as an 8-byte heap allocation and therefore reports a heap overflow; in MCUboot the buffer is the 128-byte stack array buf, gated by len > sizeof(buf), so the real over-read is of adjacent stack memory.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
widely-used MCU secure bootloader, but PSA-crypto ECDSA config is non-default
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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