{"id":"CVE-2024-53085","state":"PUBLISHED","title":"tpm: Lock TPM chip in tpm_pm_suspend() first","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: Lock TPM chip in tpm_pm_suspend() first\n\nSetting TPM_CHIP_FLAG_SUSPENDED in the end of tpm_pm_suspend() can be racy\naccording, as this leaves window for tpm_hwrng_read() to be called while\nthe operation is in progress. The recent bug report gives also evidence of\nthis behaviour.\n\nAadress this by locking the TPM chip before checking any chip->flags both\nin tpm_pm_suspend() and tpm_hwrng_read(). Move TPM_CHIP_FLAG_SUSPENDED\ncheck inside tpm_get_random() so that it will be always checked only when\nthe lock is reserved.","publishedAt":"2024-11-19T17:45:14.209Z","updatedAt":"2026-05-23T15:55:06.717Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99d46450625590d410f86fe4660a5eff7d3b8343","status":"affected","lessThan":"cfaf83501a0cbb104499c5b0892ee5ebde4e967f","versionType":"git"},{"version":"99d46450625590d410f86fe4660a5eff7d3b8343","status":"affected","lessThan":"bc203fe416abdd1c29da594565a7c3c4e979488e","versionType":"git"},{"version":"99d46450625590d410f86fe4660a5eff7d3b8343","status":"affected","lessThan":"9265fed6db601ee2ec47577815387458ef4f047a","versionType":"git"},{"version":"7cd46930b8bf37b84777410ac21bfdf1179021d5","status":"affected","versionType":"git"},{"version":"eeda114c92c7b2db69878cdf27163750fd57cfe2","status":"affected","versionType":"git"},{"version":"6.1.31","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.3.5","status":"affected","lessThan":"6.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/tpm-chip.c","drivers/char/tpm/tpm-interface.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.64","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.8","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/tpm-chip.c","drivers/char/tpm/tpm-interface.c"]}],"references":["https://git.kernel.org/stable/c/cfaf83501a0cbb104499c5b0892ee5ebde4e967f","https://git.kernel.org/stable/c/bc203fe416abdd1c29da594565a7c3c4e979488e","https://git.kernel.org/stable/c/9265fed6db601ee2ec47577815387458ef4f047a"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/53xxx/CVE-2024-53085.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-53085","state":"PUBLISHED","datePublished":"2024-11-19T17:45:14.209Z","dateUpdated":"2026-05-23T15:55:06.717Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-11-19T17:17:24.979Z"},"containers":{"cna":{"title":"tpm: Lock TPM chip in tpm_pm_suspend() first","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: Lock TPM chip in tpm_pm_suspend() first\n\nSetting TPM_CHIP_FLAG_SUSPENDED in the end of tpm_pm_suspend() can be racy\naccording, as this leaves window for tpm_hwrng_read() to be called while\nthe operation is in progress. The recent bug report gives also evidence of\nthis behaviour.\n\nAadress this by locking the TPM chip before checking any chip->flags both\nin tpm_pm_suspend() and tpm_hwrng_read(). Move TPM_CHIP_FLAG_SUSPENDED\ncheck inside tpm_get_random() so that it will be always checked only when\nthe lock is reserved."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99d46450625590d410f86fe4660a5eff7d3b8343","status":"affected","lessThan":"cfaf83501a0cbb104499c5b0892ee5ebde4e967f","versionType":"git"},{"version":"99d46450625590d410f86fe4660a5eff7d3b8343","status":"affected","lessThan":"bc203fe416abdd1c29da594565a7c3c4e979488e","versionType":"git"},{"version":"99d46450625590d410f86fe4660a5eff7d3b8343","status":"affected","lessThan":"9265fed6db601ee2ec47577815387458ef4f047a","versionType":"git"},{"version":"7cd46930b8bf37b84777410ac21bfdf1179021d5","status":"affected","versionType":"git"},{"version":"eeda114c92c7b2db69878cdf27163750fd57cfe2","status":"affected","versionType":"git"},{"version":"6.1.31","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.3.5","status":"affected","lessThan":"6.4","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/tpm-chip.c","drivers/char/tpm/tpm-interface.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.64","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.8","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/char/tpm/tpm-chip.c","drivers/char/tpm/tpm-interface.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cfaf83501a0cbb104499c5b0892ee5ebde4e967f"},{"url":"https://git.kernel.org/stable/c/bc203fe416abdd1c29da594565a7c3c4e979488e"},{"url":"https://git.kernel.org/stable/c/9265fed6db601ee2ec47577815387458ef4f047a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:55:06.717Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.11.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}