{"id":"CVE-2024-42255","summary":"tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: Use auth only after NULL check in tpm_buf_check_hmac_response()\n\nDereference auth after NULL check in tpm_buf_check_hmac_response().\nOtherwise, unless tpm2_sessions_init() was called, a call can cause NULL\ndereference, when TCG_TPM2_HMAC is enabled.\n\n[jarkko: adjusted the commit message.]","modified":"2026-04-02T12:17:54.003437Z","published":"2024-08-08T08:49:15.078Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b9afbb9a0c734197c59c43610071041044bf1562"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42255"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d"},{"fixed":"b9afbb9a0c734197c59c43610071041044bf1562"},{"fixed":"7dc357d343f134bf59815ff6098b93503ec8a23b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42255.json"}}],"schema_version":"1.7.5"}