Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7dc357d3 authored by Hao Ge's avatar Hao Ge Committed by Jarkko Sakkinen
Browse files

tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()

Dereference auth after NULL check in tpm_buf_check_hmac_response().
Otherwise, unless tpm2_sessions_init() was called, a call can cause NULL
dereference, when TCG_TPM2_HMAC is enabled.

[jarkko: adjusted the commit message.]
Cc: stable@vger.kernel.org # v6.10+
Fixes: 7ca110f2

 ("tpm: Address !chip->auth in tpm_buf_append_hmac_session*()")
Signed-off-by: default avatarHao Ge <gehao@kylinos.cn>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent d6797831
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment