CVE-2026-16670

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

4.0 medium EPSS 0.19%

Published 24 Nov 2026 Updated 24 Nov 2026 CNA: zephyr

Check your servers for CVE-2026-16670

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-16670 affects mcuboot, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

4.0 medium CVSS 3.1 from zephyr (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.16% of all scored CVEs. Scores of 29 Nov 2026.

Weakness

Affected products

As the CNA lists them.

ProductVersions
mcuboot
package mcuboot
affected 2.0.0 and later
Other versions: unaffected

Is my server affected?

Find the installed version of mcuboot and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i mcuboot
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-16670 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-16670

RHEL, Rocky, Alma, Fedora

rpm -q mcuboot
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-16670

Alpine

apk list --installed | grep -i mcuboot

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-16670
trivy image --scanners vuln IMAGE | grep CVE-2026-16670

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-16670 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.