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

Published Nov 24, 2026
·
Updated

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

In bootutilimgvalidate() (boot/bootutil/src/imagevalidate.c:404) the ECDSA signature TLV is gated only by len > sizeof(buf), since EXPECTEDSIGLEN() 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 rlen (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 (MCUBOOTUSEPSACRYPTO) with MCUBOOTSIGNEC256/MCUBOOTSIGNEC384 (and MCUBOOTSIGNEC384 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 bootutilecdsaparsepublickey() 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 bootutilkeys[keyid].key, the compiled-in trusted key store (imageecdsa.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 Software

1 affected component
MCUboot MCUboot

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

What conditions are required to reach the vulnerable parsing path?

Image validation must process an ECDSA signature TLV through MCUboot's PSA-crypto ECDSA adapter. The image also needs a key TLV matching a trusted public key; the required public-key material is public, so this does not require possession of a signing key.

2

What makes a signature trigger the out-of-bounds read?

The signature TLV must pass the length gate and contain malformed DER length fields. For example, setting sig[3] to 255 causes the parser to use that attacker-controlled value when calculating copy offsets, leading it to read beyond the 128-byte stack buffer.

3

Does the signature need to be valid for exploitation?

No. The DER signature is parsed before psa_verify_hash() is called, so the out-of-bounds read occurs during parsing regardless of whether signature verification would succeed.

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