CVE-2024-42255

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42255
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42255.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42255
Downstream
Published
2024-08-08T08:49:15.078Z
Modified
2025-11-30T03:09:15.166724Z
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:

tpm: Use auth only after NULL check in tpmbufcheckhmacresponse()

Dereference auth after NULL check in tpmbufcheckhmacresponse(). Otherwise, unless tpm2sessionsinit() was called, a call can cause NULL dereference, when TCGTPM2HMAC is enabled.

[jarkko: adjusted the commit message.]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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

Affected versions

v6.*

v6.10
v6.10-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.10.1