Skip to content
Heist/ feed
Back to feed
UnratedFix available

tpm: Clean up TPM space after command failure

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.227, 5.15.168, 5.4.285, 6.1.113, 6.10.13, 6.11.2, 6.6.54
CVEs
CVE-2024-49851
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:56 UTC · Revision 1

Source evidence

tpm: Clean up TPM space after command failure

core-osv · Original source

Published 21 Oct 2024, 12:18 UTC

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.

osv:CVE-2024-49851

Kernel

Fixed versions: 5.4.285, 5.10.227, 5.15.168, 6.1.113, 6.6.54, 6.10.13, 6.11.2

Complete source record
{
  "id": "e858a9ff07b01af19e3432cfd35360a3029b5048270525cbda7a2c7933aa6814",
  "url": "https://osv.dev/vulnerability/CVE-2024-49851",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "tpm: Clean up TPM space after command failure",
    "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 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.",
    "evidence": "osv:CVE-2024-49851",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.285",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.227",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.10.13",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-49851",
      "aliases": [
        "CVE-2024-49851"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "745b361e989af21ad40811c2586b60229f870a68"
                },
                {
                  "fixed": "87e8134c18977b566f4ec248c8a147244da69402"
                },
                {
                  "fixed": "2c9b228938e9266a1065a3f4fe5c99b7235dc439"
                },
                {
                  "fixed": "ebc4e1f4492d114f9693950621b3ea42b2f82bec"
                },
                {
                  "fixed": "c84ceb546f30432fccea4891163f7050f5bee5dd"
                },
                {
                  "fixed": "82478cb8a23bd4f97935bbe60d64528c6d9918b4"
                },
                {
                  "fixed": "adf4ce162561222338cf2c9a2caa294527f7f721"
                },
                {
                  "fixed": "3f9f72d843c92fb6f4ff7460d774413cde7f254c"
                },
                {
                  "fixed": "e3aaebcbb7c6b403416f442d1de70d437ce313a7"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49851.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.12.0"
                },
                {
                  "fixed": "5.4.285"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.227"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.10.13"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.11.0"
                },
                {
                  "fixed": "6.11.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49851.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.662438010Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-355557.html",
        "https://git.kernel.org/stable/c/2c9b228938e9266a1065a3f4fe5c99b7235dc439",
        "https://git.kernel.org/stable/c/3f9f72d843c92fb6f4ff7460d774413cde7f254c",
        "https://git.kernel.org/stable/c/82478cb8a23bd4f97935bbe60d64528c6d9918b4",
        "https://git.kernel.org/stable/c/87e8134c18977b566f4ec248c8a147244da69402",
        "https://git.kernel.org/stable/c/adf4ce162561222338cf2c9a2caa294527f7f721",
        "https://git.kernel.org/stable/c/c84ceb546f30432fccea4891163f7050f5bee5dd",
        "https://git.kernel.org/stable/c/e3aaebcbb7c6b403416f442d1de70d437ce313a7",
        "https://git.kernel.org/stable/c/ebc4e1f4492d114f9693950621b3ea42b2f82bec",
        "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49851.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-49851",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49851.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-49851",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 506935,
  "published_at": "2024-10-21T12:18:44.742+00:00"
}