CVE-2024-53085

tpm: Lock TPM chip in tpm_pm_suspend() first

MEDIUM
5.5
CVSS Score
Published: November 19, 2024 at 05:45 PM UTC
Updated: June 17, 2026 at 08:08 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%

Description

In the Linux kernel, the following vulnerability has been resolved: tpm: Lock TPM chip in tpm_pm_suspend() first Setting TPM_CHIP_FLAG_SUSPENDED in the end of tpm_pm_suspend() can be racy according, as this leaves window for tpm_hwrng_read() to be called while the operation is in progress. The recent bug report gives also evidence of this behaviour. Aadress this by locking the TPM chip before checking any chip->flags both in tpm_pm_suspend() and tpm_hwrng_read(). Move TPM_CHIP_FLAG_SUSPENDED check inside tpm_get_random() so that it will be always checked only when the lock is reserved.

Affected

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

v ≥ 6.1.31v ≥ 6.3.56.1.31 ≤ v < 6.26.3.5 ≤ v < 6.46.4 ≤ v < 6.11.86.4 ≤ v < 6.126.4 ≤ v < 6.6.646.1.316.12 rc16.12 rc26.12 rc36.12 rc46.12 rc56.12 rc66.3.57cd46930b8bf37b84777410ac21bfdf1179021d599d46450625590d410f86fe4660a5eff7d3b8343eeda114c92c7b2db69878cdf27163750fd57cfe2
Vendor states this is fixed in 9265fed6db601ee2ec47577815387458ef4f047a (fixed)
Vendor states this is fixed in bc203fe416abdd1c29da594565a7c3c4e979488e (fixed)
Vendor states this is fixed in cfaf83501a0cbb104499c5b0892ee5ebde4e967f (fixed)
Vendor states this is fixed in 6.11.8 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Affected range stops below 6.2, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.4 (unaffected)
Vendor states this is fixed in 6.6.64 (unaffected)

Remediation

No guide yet

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

References (3)

CVSS

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

Quick Info

StatusMODIFIED
CWE
CWE-667

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