tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
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.]
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.10.1
- CVEs
- CVE-2024-42255
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:03 UTC · Revision 1
Source evidence
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
core-osv · Original sourcePublished 8 Aug 2024, 08:49 UTC
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.]
osv:CVE-2024-42255
Kernel
Fixed versions: 6.10.1
Complete source record
{
"id": "06d69f8b7f3d21ed28cb3418661d7c92b1c70f7a1cb4ecbb402556f9e320de85",
"url": "https://osv.dev/vulnerability/CVE-2024-42255",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()",
"summary": "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.]",
"evidence": "osv:CVE-2024-42255",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.10.1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-42255",
"aliases": [
"CVE-2024-42255"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d"
},
{
"fixed": "b9afbb9a0c734197c59c43610071041044bf1562"
},
{
"fixed": "7dc357d343f134bf59815ff6098b93503ec8a23b"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42255.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.10.0"
},
{
"fixed": "6.10.1"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42255.json"
}
}
],
"modified": "2026-10-28T02:30:21.619513107Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b",
"https://git.kernel.org/stable/c/b9afbb9a0c734197c59c43610071041044bf1562",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-42255",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json"
}
},
"related_cves": [
{
"value": "CVE-2024-42255",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 487453,
"published_at": "2024-08-08T08:49:15.078+00:00"
}