---
id: CVE-2024-49851
title: |-
  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
summary: |-
  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 …
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-459
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.12, < 5.10.227'
  - 'linux_kernel >= 5.11, < 5.15.168'
  - 'linux_kernel >= 5.16, < 6.1.113'
  - 'linux_kernel >= 6.2, < 6.6.54'
  - 'linux_kernel >= 6.7, < 6.10.13'
  - 'linux_kernel >= 6.11, < 6.11.2'
patched:
  - linux_kernel 6.11.2
published: '2024-10-21'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:18:58.760'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-49851'
references:
  - url: 'https://git.kernel.org/stable/c/2c9b228938e9266a1065a3f4fe5c99b7235dc439'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3f9f72d843c92fb6f4ff7460d774413cde7f254c'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/82478cb8a23bd4f97935bbe60d64528c6d9918b4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/87e8134c18977b566f4ec248c8a147244da69402'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/adf4ce162561222338cf2c9a2caa294527f7f721'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c84ceb546f30432fccea4891163f7050f5bee5dd'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e3aaebcbb7c6b403416f442d1de70d437ce313a7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ebc4e1f4492d114f9693950621b3ea42b2f82bec'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-355557.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00219
epssPercentile: 0.11547
ingestedAt: '2026-10-15T03:30:12.751Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-10-21T12:56:54.610460Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 4.12, < 5.10.227`
- `linux_kernel >= 5.11, < 5.15.168`
- `linux_kernel >= 5.16, < 6.1.113`
- `linux_kernel >= 6.2, < 6.6.54`
- `linux_kernel >= 6.7, < 6.10.13`
- `linux_kernel >= 6.11, < 6.11.2`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.11.2`
