MCUboot's PSA-crypto ECDSA adapter parses the RFC 5480 DER signature with parsesignaturefromrfc5480encoding() in…
CVE-2026-16670
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…
Assessment
- CVSS
- 4 (v3.1)
- Severity
- Medium
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 25 November 2026
- Last updated
- 25 November 2026
- Assigner
- zephyr
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
At the source
References
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-16670