wolfBoot/include/x86
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
..
fsp Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
ahci.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
ata.h F-4647: bound strlen to ATA_SECURITY_PASSWORD_LEN in passphrase path 2026-06-10 21:01:17 +02:00
common.h F-5093: fix OOB memset in x86_paging_setup_ptp and non-looping panic 2026-06-10 21:01:16 +02:00
exceptions.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
fsp.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
gdt.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
hob.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
linux_loader.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
mptable.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
paging.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
tgl_fsp.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00