]> git.dujemihanovic.xyz Git - u-boot.git/commit
Infineon TPM: Fix potential buffer overruns
authorJeremy Boone <jeremy.boone@nccgroup.trust>
Mon, 12 Feb 2018 22:56:36 +0000 (17:56 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Mar 2018 15:05:36 +0000 (10:05 -0500)
commitafe0e6bddf295d4514ab56cd76d5ec13a9c30b22
tree64f93c651177185772dfde1398812d969e48913b
parent12e0ab327d1a6711ee40ac9ade2e189d1092e962
Infineon TPM: Fix potential buffer overruns

Ensure that the Infineon I2C and SPI TPM driver performs adequate
validation of the length extracted from the TPM response header.
This patch prevents integer underflow when the length was too small,
which could lead to memory corruption.

Signed-off-by: Jeremy Boone <jeremy.boone@nccgroup.trust>
drivers/tpm/tpm_tis_infineon.c