What’s Vulnerable › Vulnerabilities
CVE-2024-42255: tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-08 · updated 2026-06-17
- Weakness: CWE-476
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 products
- Linux kernel: 6.10, 6.10-rc1, 6.10-rc2, 6.10-rc3, 6.10-rc4, 6.10-rc5 (+2)
References
- https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b
- https://git.kernel.org/stable/c/b9afbb9a0c734197c59c43610071041044bf1562
Get alerted when CVE-2024-42255 or the next vulnerability affects your stack