Bug 2327358 (CVE-2024-53085) - CVE-2024-53085 kernel: tpm: Lock TPM chip in tpm_pm_suspend() first
Summary: CVE-2024-53085 kernel: tpm: Lock TPM chip in tpm_pm_suspend() first
Keywords:
Status: NEW
Alias: CVE-2024-53085
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2327466
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-19 18:02 UTC by OSIDB Bzimport
Modified: 2025-05-13 08:35 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:6966 0 None None None 2025-05-13 08:35:58 UTC

Description OSIDB Bzimport 2024-11-19 18:02:52 UTC
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.

Comment 2 errata-xmlrpc 2025-05-13 08:35:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:6966 https://access.redhat.com/errata/RHSA-2025:6966


Note You need to log in before you can comment on or make changes to this bug.