wolfBoot/include
Daniele Lacamera 63b58c5491 F-4647: bound strlen to ATA_SECURITY_PASSWORD_LEN in passphrase path
security_command_passphrase used strlen(passphrase) on a 32-byte binary
buffer from TPM unsealing that carries no null-terminator guarantee,
causing an OOB stack read whenever none of the 32 key bytes is zero.

Replace strlen with strnlen(passphrase, ATA_SECURITY_PASSWORD_LEN) using
a new constant (32, matching the ATA-8 ACS password field size) defined
in ata.h.  Also add a size check in sata_unlock_disk after
sata_get_unlock_secret so a short or malformed unseal result is rejected
before reaching the ATA command path.
2026-06-10 21:01:17 +02:00
..
MPLAB
…
wolfboot
…
x86 F-4647: bound strlen to ATA_SECURITY_PASSWORD_LEN in passphrase path 2026-06-10 21:01:17 +02:00
delta.h
…
disk.h
…
elf.h
…
encrypt.h
…
fdt.h Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +02:00
gpt.h F-4715: bound GPT partition-entry array size before CRC scan in disk_open 2026-06-10 21:01:16 +02:00
gzip.h
…
hal.h Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +02:00
hal_fpga.h Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +02:00
hooks.h
…
image.h
…
keystore.h
…
loader.h
…
multiboot.h
…
otp_keystore.h
…
pci.h
…
printf.h
…
sdhci.h
…
spi_drv.h
…
spi_flash.h
…
stage2_params.h
…
target.h.in Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +02:00
tpm.h
…
uart_drv.h
…
uart_flash.h
…
user_settings.h remove pem to der define to reduce image size 2026-06-05 10:44:30 -06:00