# CVE-2026-16670: Out-of-bounds read in the PSA ECDSA signature DER parser on a malformed signature TLV before verification

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **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.19% (percentile 5, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-11-24T23:37:55.350Z
- **Modified:** 2026-11-25T00:17:12.100Z

## Who should check

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

## Description

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.

## Affected and fixed versions

- mcu-tools mcuboot: \>= 2.0.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-16670. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-16670.md
Affected: mcu-tools mcuboot >= 2.0.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-16670 being exploited?

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

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

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

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

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

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

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-16670?

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-rgg7-2fx4-qpqg>

## 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-16670>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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