Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: [email protected] Fixes: 745b361 ("tpm: infrastructure for TPM spaces") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
- Loading branch information