summaryrefslogtreecommitdiff
path: root/include/linux/tpm.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-09-08 08:33:57 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2021-10-26 05:03:33 +0300
commita0bcce2b2a169e10eb265c8f0ebdd5ae4c875670 (patch)
treec569785c1419f682322e7633bbf929054d90f3f4 /include/linux/tpm.h
parent4091c004283bc65d2478fbfc9f2521fcb5af1f96 (diff)
downloadlinux-a0bcce2b2a169e10eb265c8f0ebdd5ae4c875670.tar.xz
tpm: Check for integer overflow in tpm2_map_response_body()
The "4 * be32_to_cpu(data->count)" multiplication can potentially overflow which would lead to memory corruption. Add a check for that. Cc: stable@vger.kernel.org Fixes: 745b361e989a ("tpm: infrastructure for TPM spaces") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/tpm.h')
0 files changed, 0 insertions, 0 deletions