# CVE-2024-42255: tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-08-08T08:49:15.078Z
- Modified: 2026-06-17T07:49:06.940Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.]

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: 6.10

## References

- <https://git.kernel.org/stable/c/b9afbb9a0c734197c59c43610071041044bf1562> (patch)
- <https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b> (patch)

## Sources

- CVE List: [CVE-2024-42255](https://www.cve.org/CVERecord?id=CVE-2024-42255), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42255](https://nvd.nist.gov/vuln/detail/CVE-2024-42255), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42255 · Whole record: https://cve.day/CVE-2024-42255.json · Rebuilt by cve.day 2026-11-25T22:58:44.137Z
