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. Поскольку этот анализ выполняется перед psa_verify_hash(), искаженная подпись запускает чтение, является ли подпись действительной. В bootutil_img_validate() (boot/bootutil/src/image_validate.c:404 подпись ECDSA TLV закрыта только len > sizeof(buf), так как EXPECTED_SIG_LEN() является константой 1 для ECDSA; len контролируется злоумышленником в диапазоне 0,128 и копируется в 128-байтный буферный буфер buf.
С помощью обработанного r_len (например, sig[3] 255) мемкпий анализатора считывает примерно 130 + байтов после конца buf, считывание out-of-bounds соседней памяти стека. Достижение регистра подписи требует только ключа TLV, который соответствует доверенному открытому ключу (публичному материалу), поэтому путь фактически является предварительной аутентификацией. Дефект закрыт для криптографического бэкэнда PSA (MCUBOOT_USE_PSA_CRYPTO) с MCUBOOT_SIGN_EC256/MCUBOOT_SIGN_EC384 (и MCUBOOT_SIGN_EC384 всегда строится с PSA); адаптеры внутри дерева CC310, TinyCrypt и mbedTLS используют разные декодеры и не затрагиваются.
Это не обход подписи: перечитанные байты подают проверку, которая не закрывается и никогда не возвращается злоумышленнику, поэтому утечки информации нет. Воздействие ограничено возможным отказом в обслуживании на макеты памяти, где чтение пересекает неотображенную область; на типичной плоской памяти MCUs он считывает соседний RAM без неисправностей. Эта уязвимость была зарегистрирована независимо дважды: NVIDIA Project Vanessa 2026-06-22 и Kai Phan (kaimandalic) 2026-07-19 как GHSA-r44p-8v6p-hqv4, который закрыт как дубликат этого совета.
Оба первоначальных доклада полностью воспроизводятся ниже. Во втором отчете также отмечается, что bootutil_ecdsa_parse_public_key() отбрасывает свой конечный указатель ((void)end;, ecdsa.h:446). Это наблюдение верно, но оно не является частью этой уязвимости и не засчитывается в серьезность: буфер, который он анализирует, - это bootutil_keys[key_id].key, скомпилированное хранилище доверенных ключей (image_ecdsa.c:54-55), поэтому никакие данные, контролируемые злоумышленником, не достигают этого анализа.
Это разрыв в надежности на том же пути кода и должен быть закрыт вместе с исправлением сигнатуры-парсера. Обратите внимание также, что proof-of-concept второго отчета моделирует буфер подписи как 8-байтовое распределение кучи и, следовательно, сообщает о переполнении кучи; в MCUboot буфер представляет собой 128-байтный массив стека, закрытый len > sizeof(buf), поэтому реальный перечитываемый имеет соседнюю память стека.
Показать оригинальное описание (EN)
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.
Характеристики атаки
Последствия
Строка CVSS v3.1