]> git.baikalelectronics.ru Git - uboot.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)
commitb0ba4e3901fa01d06b0e1378fb1b97670806edce
tree64f93c651177185772dfde1398812d969e48913b
parentba7616472a62587d2a8857b9d3dfbebb99a3037a
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