Skip to content
Heist/ feed
Back to feed
UnratedFix available

KEYS: trusted: Fix a memory leak in tpm2_load_cmd

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: KEYS: trusted: Fix a memory leak in tpm2_load_cmd 'tpm2_load_cmd' allocates a tempoary blob indirectly via 'tpm2_key_decode' but it is not freed in the failure paths. Address this by wrapping the blob into with a cleanup helper.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.198, 6.1.160, 6.12.64, 6.18.3, 6.6.120
CVEs
CVE-2025-71147
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:45 UTC · Revision 1

Source evidence

KEYS: trusted: Fix a memory leak in tpm2_load_cmd

core-osv · Original source

Published 23 Jan 2026, 14:15 UTC

In the Linux kernel, the following vulnerability has been resolved: KEYS: trusted: Fix a memory leak in tpm2_load_cmd 'tpm2_load_cmd' allocates a tempoary blob indirectly via 'tpm2_key_decode' but it is not freed in the failure paths. Address this by wrapping the blob into with a cleanup helper.

osv:CVE-2025-71147

Kernel

Fixed versions: 5.15.198, 6.1.160, 6.6.120, 6.12.64, 6.18.3

Complete source record
{
  "id": "8f45dae4ac28e0b7b60bea8e4010923a171cdcbc21876bd3712626781158b3a2",
  "url": "https://osv.dev/vulnerability/CVE-2025-71147",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "KEYS: trusted: Fix a memory leak in tpm2_load_cmd",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: KEYS: trusted: Fix a memory leak in tpm2_load_cmd 'tpm2_load_cmd' allocates a tempoary blob indirectly via 'tpm2_key_decode' but it is not freed in the failure paths. Address this by wrapping the blob into with a cleanup helper.",
    "evidence": "osv:CVE-2025-71147",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.198",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.160",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.64",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-71147",
      "aliases": [
        "CVE-2025-71147"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f2219745250f388edacabe6cca73654131c67d0a"
                },
                {
                  "fixed": "3fd7df4636d8fd5e3592371967a5941204368936"
                },
                {
                  "fixed": "af0689cafb127a8d1af78cc8b72585c9b2a19ecd"
                },
                {
                  "fixed": "19166de9737218b77122c41a5730ac87025e089f"
                },
                {
                  "fixed": "9b015f2918b95bdde2ca9cefa10ef02b138aae1e"
                },
                {
                  "fixed": "9e7c63c69f57b1db1a8a1542359a6167ff8fcef1"
                },
                {
                  "fixed": "62cd5d480b9762ce70d720a81fa5b373052ae05f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71147.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.198"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.160"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.64"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71147.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.149319267Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/19166de9737218b77122c41a5730ac87025e089f",
        "https://git.kernel.org/stable/c/3fd7df4636d8fd5e3592371967a5941204368936",
        "https://git.kernel.org/stable/c/62cd5d480b9762ce70d720a81fa5b373052ae05f",
        "https://git.kernel.org/stable/c/9b015f2918b95bdde2ca9cefa10ef02b138aae1e",
        "https://git.kernel.org/stable/c/9e7c63c69f57b1db1a8a1542359a6167ff8fcef1",
        "https://git.kernel.org/stable/c/af0689cafb127a8d1af78cc8b72585c9b2a19ecd",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71147.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-71147",
        "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/2025/71xxx/CVE-2025-71147.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-71147",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 505460,
  "published_at": "2026-01-23T14:15:13.945+00:00"
}