CVE-2024-53085

Source
https://cve.org/CVERecord?id=CVE-2024-53085
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53085.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-53085
Downstream
Related
Published
2024-11-19T17:45:14.209Z
Modified
2026-03-11T07:53:09.020105Z
Summary
tpm: Lock TPM chip in tpm_pm_suspend() first
Details

In the Linux kernel, the following vulnerability has been resolved:

tpm: Lock TPM chip in tpmpmsuspend() first

Setting TPMCHIPFLAGSUSPENDED in the end of tpmpmsuspend() can be racy according, as this leaves window for tpmhwrng_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 tpmpmsuspend() and tpmhwrngread(). Move TPMCHIPFLAGSUSPENDED check inside tpmget_random() so that it will be always checked only when the lock is reserved.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53085.json"
}
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
99d46450625590d410f86fe4660a5eff7d3b8343
Fixed
cfaf83501a0cbb104499c5b0892ee5ebde4e967f
Fixed
bc203fe416abdd1c29da594565a7c3c4e979488e
Fixed
9265fed6db601ee2ec47577815387458ef4f047a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
7cd46930b8bf37b84777410ac21bfdf1179021d5
Last affected
eeda114c92c7b2db69878cdf27163750fd57cfe2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53085.json"