CVE-2024-42255
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: 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.]

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d before b9afbb9a0c734197c59c43610071041044bf1562, from 7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d before 7dc357d343f134bf59815ff6098b93503ec8a23b, 6.10
Not affected: before 6.10, from 6.10.1 up to 6.10.*, from 6.11 up to *
CVE List
linux linux_kernel6.10NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: 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.]

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tpm: use autenticación solo después de la verificación NULL en tpm_buf_check_hmac_response() Desreferenciar la autenticación después de la verificación NULL en tpm_buf_check_hmac_response(). De lo contrario, a menos que se haya llamado a tpm2_sessions_init(), una llamada puede causar una desreferencia NULL, cuando TCG_TPM2_HMAC está habilitado. [jarkko: ajustó el mensaje de confirmación.]

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42255 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-42255 changed 2026-06-17Public domain