summaryrefslogtreecommitdiff
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorHao Ge <gehao@kylinos.cn>2024-07-09 05:33:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-24 16:54:06 +0300
commitb9afbb9a0c734197c59c43610071041044bf1562 (patch)
tree4abb1491c484494c25d4cd9c5173ea292efbcf0a /sound/soc/codecs
parentfafd1dcc84c59e57a6077cf99de38f1485e84b9a (diff)
downloadlinux-b9afbb9a0c734197c59c43610071041044bf1562.tar.xz
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
commit 7dc357d343f134bf59815ff6098b93503ec8a23b upstream. 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: 7ca110f2679b ("tpm: Address !chip->auth in tpm_buf_append_hmac_session*()") Signed-off-by: Hao Ge <gehao@kylinos.cn> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc/codecs')
0 files changed, 0 insertions, 0 deletions