CVE-2024-42255
publishedtpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d to < b9afbb9a0c734197c59c43610071041044bf1562 · 7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d to < 7dc357d343f134bf59815ff6098b93503ec8a23b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.10.1 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d to < b9afbb9a0c734197c59c43610071041044bf1562 (affected · git)7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d to < 7dc357d343f134bf59815ff6098b93503ec8a23b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.10.1 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
2Linux · cna
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3bc37b8b05b9a56a8224f32e6ad6187edcd19af93713a36dd5c69e9d4fbed8a0
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record