CVE-2024-42255

published 8 Aug 2024 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 7dc357d343f134bf59815ff6098b93503ec8a23b and Kernel b9afbb9a0c734197c59c43610071041044bf1562.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.10, >=7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d <7dc357d343f134bf59815ff6098b93503ec8a23b, >=7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d <b9afbb9a0c734197c59c43610071041044bf15627dc357d343f134bf59815ff6098b93503ec8a23b, b9afbb9a0c734197c59c43610071041044bf1562

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42255 severity on Zeptric[![CVE-2024-42255](https://zeptric.io/badge/cve/CVE-2024-42255.svg)](https://zeptric.io/cve/CVE-2024-42255)