CVE-2026-16670EPSS p5.2%

CVE-2026-16670CVE-2026-16670

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

Scoring

CVSS 4.0 ()
VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS0.19% probability of exploitation · percentile 5.2% · 2026-11-30T12:00:22Z
Last modified2026-11-30
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.