CVE-2024-49851

tpm: Clean up TPM space after command failure

State
Published
Severity
Not scored
Published
Oct 21, 2024
Updated
Oct 15, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

Description

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

tpm: Clean up TPM space after command failure

tpm_dev_transmit prepares the TPM space before attempting command transmission. However if the command fails no rollback of this preparation is done. This can result in transient handles being leaked if the device is subsequently closed with no further commands performed.

Fix this by flushing the space in the event of command transmission failure.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 745b361e989af21ad40811c2586b60229f870a68 to before 87e8134c18977b566f4ec248c8a147244da69402Affected
  • 745b361e989af21ad40811c2586b60229f870a68 to before 2c9b228938e9266a1065a3f4fe5c99b7235dc439Affected
  • 745b361e989af21ad40811c2586b60229f870a68 to before ebc4e1f4492d114f9693950621b3ea42b2f82becAffected
  • 745b361e989af21ad40811c2586b60229f870a68 to before c84ceb546f30432fccea4891163f7050f5bee5ddAffected
  • 745b361e989af21ad40811c2586b60229f870a68 to before 82478cb8a23bd4f97935bbe60d64528c6d9918b4Affected
  • 745b361e989af21ad40811c2586b60229f870a68 to before adf4ce162561222338cf2c9a2caa294527f7f721Affected
  • 745b361e989af21ad40811c2586b60229f870a68 to before 3f9f72d843c92fb6f4ff7460d774413cde7f254cAffected
  • 745b361e989af21ad40811c2586b60229f870a68 to before e3aaebcbb7c6b403416f442d1de70d437ce313a7Affected
LinuxLinux
  • 4.12Affected
  • before 4.12Not affected
  • 5.4.285 through 5.4.*Not affected
  • 5.10.227 through 5.10.*Not affected
  • 5.15.168 through 5.15.*Not affected
  • 6.1.113 through 6.1.*Not affected
  • 6.6.54 through 6.6.*Not affected
  • 6.10.13 through 6.10.*Not affected
  • 6.11.2 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.