{"id":"CVE-2024-53085","aliases":["CVE-2024-53085"],"related":[],"kind":"vulnerability","state":"published","title":"tpm: Lock TPM chip in tpm_pm_suspend() first","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tpm: Bloquear el chip TPM en tpm_pm_suspend() primero Establecer TPM_CHIP_FLAG_SUSPENDED al final de tpm_pm_suspend() puede ser arriesgado, ya que esto deja margen para que se llame a tpm_hwrng_read() mientras la operación está en progreso. El reciente informe de errores también proporciona evidencia de este comportamiento. Solucione esto bloqueando el chip TPM antes de comprobar cualquier chip-&gt;flags tanto en tpm_pm_suspend() como en tpm_hwrng_read(). Mueva la comprobación TPM_CHIP_FLAG_SUSPENDED dentro de tpm_get_random() para que siempre se compruebe solo cuando el bloqueo esté reservado.","source":"nvd"}],"published":"2024-11-19T17:45:14.209Z","modified":"2026-06-17T08:08:14.140Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"99d46450625590d410f86fe4660a5eff7d3b8343","fixed":"cfaf83501a0cbb104499c5b0892ee5ebde4e967f","status":"affected"},{"type":"git","introduced":"99d46450625590d410f86fe4660a5eff7d3b8343","fixed":"bc203fe416abdd1c29da594565a7c3c4e979488e","status":"affected"},{"type":"git","introduced":"99d46450625590d410f86fe4660a5eff7d3b8343","fixed":"9265fed6db601ee2ec47577815387458ef4f047a","status":"affected"},{"type":"git","version":"7cd46930b8bf37b84777410ac21bfdf1179021d5","status":"affected"},{"type":"git","version":"eeda114c92c7b2db69878cdf27163750fd57cfe2","status":"affected"},{"type":"semver","introduced":"6.1.31","fixed":"6.2","status":"affected"},{"type":"semver","introduced":"6.3.5","fixed":"6.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.8","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.4","fixed":"6.11.8"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/cfaf83501a0cbb104499c5b0892ee5ebde4e967f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc203fe416abdd1c29da594565a7c3c4e979488e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9265fed6db601ee2ec47577815387458ef4f047a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53085","url":"https://www.cve.org/CVERecord?id=CVE-2024-53085","licence":"CVE Terms of Use","modified":"2026-05-23T15:55:06.717Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53085","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53085","licence":"Public domain","modified":"2026-06-17T08:08:14.140Z"}],"updatedAt":"2026-11-25T22:58:48.821Z","epss":{"score":0.00173,"percentile":0.07012,"date":"2026-12-01T12:00:22.000Z"}}