CVE-2024-42255

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

MEDIUM
5.5
CVSS Score
Published: August 8, 2024 at 08:49 AM UTC
Updated: June 17, 2026 at 07:49 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.10 ≤ v < 6.10.16.10 ≤ v < 6.116.106.10 rc16.10 rc26.10 rc36.10 rc46.10 rc56.10 rc66.10 rc77ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d
Vendor states this is fixed in 7dc357d343f134bf59815ff6098b93503ec8a23b (fixed)
Vendor states this is fixed in b9afbb9a0c734197c59c43610071041044bf1562 (fixed)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.10.1 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9afbb9a0c734197c59c43610071041044bf1562

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card