CVE-2024-53085 tpm: Lock TPM chip in tpm_pm_suspend() first

Medium 5.5 Published Updated

A race condition in the Linux kernel TPM driver during suspend can lead to denial of service by allowing concurrent access to the TPM chip.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-53085?

CVE-2024-53085 is a medium-severity vulnerability in Linux kernel, published on 19 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-667

Which versions are affected by CVE-2024-53085?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-53085?

Apply the vendor's patch.

Is CVE-2024-53085 being exploited?

There is no known exploitation of CVE-2024-53085 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-53849, BELL-CVE-2024-53085, DEBIAN-CVE-2024-53085, GHSA-8vv8-fmp2-x4c4, ROOT-OS-DEBIAN-12-CVE-2024-53085, UBUNTU-CVE-2024-53085.

Is CVE-2024-53085 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free