Michał Żygowski has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/84926?usp=email )
Change subject: util/cbmem/cbmem.c: Avoid overflows when parsing TCG TPM logs ......................................................................
util/cbmem/cbmem.c: Avoid overflows when parsing TCG TPM logs
The utilit yassumed that TCG TPM log area is zeroed and then filled with events but it does not have to be true. If there is garbage after the last valid event entry, the utility will most likely access data outside of the cbmem area containing the logs. Relevant issue: https://github.com/linuxboot/heads/issues/1608
TEST=Dump TCG TPM1.2 event log on Dell OptiPlex 7010 and see "Invalid TPM1.2 log entry overflowing cbmem area" error is printed.
Change-Id: I7e057db3378b701d046d4e578272b10f294142a7 Signed-off-by: Michał Żygowski michal.zygowski@3mdeb.com --- M util/cbmem/cbmem.c 1 file changed, 17 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/84926/2