wolfBoot/tools
Daniele Lacamera 740383a3f5 F-4790: clamp OTP pubkey_size in keystore_get_size to prevent OOB read
keystore_get_size() returned slot->pubkey_size verbatim from the OTP
keystore slot with no upper bound. A corrupted or mis-provisioned slot
with pubkey_size > KEYSTORE_PUBKEY_SIZE produces a positive value that
passes every caller guard (pubkey_sz < 0 / <= 0). The callers in image.c
(key_sha256/key_sha384/key_sha3_384 and the ECC verify y-coordinate
offset) then read past otp_slot_item_cache, which only holds
KEYSTORE_PUBKEY_SIZE pubkey bytes.

Reject an out-of-range pubkey_size by returning -1, matching the existing
defensive validation of item_count in keystore_num_pubkeys() and the -1
error convention the callers already handle.

Add unit-otp-keystore, which compiles flash_otp_keystore.c in isolation
and verifies keystore_get_size() rejects oversized slots.
2026-06-09 15:52:07 +02:00
..
bin-assemble
check_config
delta
efi
elf-parser
fdt-parser Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +02:00
keytools F-5131: fix stale delta inverse-patch offset when cert chain expands header 2026-06-09 15:52:07 +02:00
lms Addressed copilot's comments 2026-04-29 13:15:52 +02:00
renode Addressed copilot's comments 2026-04-28 15:22:41 +02:00
scripts Add wolfBoot port for STM32N6 (NUCLEO-N657X0-Q) 2026-05-28 16:49:57 +02:00
squashelf
test-expect-version Fix NRF52 UART DMA and Renode test infrastructure 2026-04-28 15:04:35 +02:00
test-update-server
tpm F-4973: clamp TPM-supplied nvPublic.dataSize before NV read-back in rot.c 2026-06-09 15:52:07 +02:00
uart-flash-server
unit-tests F-4790: clamp OTP pubkey_size in keystore_get_size to prevent OOB read 2026-06-09 15:52:07 +02:00
xmss Zeroize XMSS key readback buffer 2026-04-29 12:31:21 +02:00
config.mk Add wolfBoot port for STM32N6 (NUCLEO-N657X0-Q) 2026-05-28 16:49:57 +02:00
test-delta.mk
test-enc.mk
test-renode.mk review: add additional RSA PSS test and bench coverage 2026-04-28 15:02:57 +02:00
test.mk Update wolfssl submodule to latest master 2026-05-18 23:02:54 -07:00
wolfboot-rpi-devicetree.diff