# CVE-2024-49851: tpm: Clean up TPM space after command failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-10-21T12:18:44.742Z
- Modified: 2026-10-15T01:18:58.760Z
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 745b361e989af21ad40811c2586b60229f870a68 before 87e8134c18977b566f4ec248c8a147244da69402; from 745b361e989af21ad40811c2586b60229f870a68 before 2c9b228938e9266a1065a3f4fe5c99b7235dc439; from 745b361e989af21ad40811c2586b60229f870a68 before ebc4e1f4492d114f9693950621b3ea42b2f82bec; from 745b361e989af21ad40811c2586b60229f870a68 before c84ceb546f30432fccea4891163f7050f5bee5dd; from 745b361e989af21ad40811c2586b60229f870a68 before 82478cb8a23bd4f97935bbe60d64528c6d9918b4; from 745b361e989af21ad40811c2586b60229f870a68 before adf4ce162561222338cf2c9a2caa294527f7f721; from 745b361e989af21ad40811c2586b60229f870a68 before 3f9f72d843c92fb6f4ff7460d774413cde7f254c; from 745b361e989af21ad40811c2586b60229f870a68 before e3aaebcbb7c6b403416f442d1de70d437ce313a7; 4.12 (not affected: before 4.12; from 5.4.285 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 4.12 before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2

## References

- <https://git.kernel.org/stable/c/87e8134c18977b566f4ec248c8a147244da69402>
- <https://git.kernel.org/stable/c/2c9b228938e9266a1065a3f4fe5c99b7235dc439> (patch)
- <https://git.kernel.org/stable/c/ebc4e1f4492d114f9693950621b3ea42b2f82bec> (patch)
- <https://git.kernel.org/stable/c/c84ceb546f30432fccea4891163f7050f5bee5dd> (patch)
- <https://git.kernel.org/stable/c/82478cb8a23bd4f97935bbe60d64528c6d9918b4> (patch)
- <https://git.kernel.org/stable/c/adf4ce162561222338cf2c9a2caa294527f7f721> (patch)
- <https://git.kernel.org/stable/c/3f9f72d843c92fb6f4ff7460d774413cde7f254c> (patch)
- <https://git.kernel.org/stable/c/e3aaebcbb7c6b403416f442d1de70d437ce313a7> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2024-49851](https://www.cve.org/CVERecord?id=CVE-2024-49851), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-49851](https://nvd.nist.gov/vuln/detail/CVE-2024-49851), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-49851 · Whole record: https://cve.day/CVE-2024-49851.json · Rebuilt by cve.day 2026-11-25T22:58:47.004Z
