CVE-2025-71147 (GCVE-0-2025-71147)
Vulnerability from cvelistv5
Published
2026-01-23 14:15
Modified
2026-06-11 18:44
Severity ?
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.
Impacted products
Vendor Product Version
Linux Linux Version: f2219745250f388edacabe6cca73654131c67d0a
Version: f2219745250f388edacabe6cca73654131c67d0a
Version: f2219745250f388edacabe6cca73654131c67d0a
Version: f2219745250f388edacabe6cca73654131c67d0a
Version: f2219745250f388edacabe6cca73654131c67d0a
Version: f2219745250f388edacabe6cca73654131c67d0a
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-71147",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-06-10T20:41:59.884894Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-06-11T18:44:18.432Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/keys/trusted-keys/trusted_tpm2.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3fd7df4636d8fd5e3592371967a5941204368936",
              "status": "affected",
              "version": "f2219745250f388edacabe6cca73654131c67d0a",
              "versionType": "git"
            },
            {
              "lessThan": "af0689cafb127a8d1af78cc8b72585c9b2a19ecd",
              "status": "affected",
              "version": "f2219745250f388edacabe6cca73654131c67d0a",
              "versionType": "git"
            },
            {
              "lessThan": "19166de9737218b77122c41a5730ac87025e089f",
              "status": "affected",
              "version": "f2219745250f388edacabe6cca73654131c67d0a",
              "versionType": "git"
            },
            {
              "lessThan": "9b015f2918b95bdde2ca9cefa10ef02b138aae1e",
              "status": "affected",
              "version": "f2219745250f388edacabe6cca73654131c67d0a",
              "versionType": "git"
            },
            {
              "lessThan": "9e7c63c69f57b1db1a8a1542359a6167ff8fcef1",
              "status": "affected",
              "version": "f2219745250f388edacabe6cca73654131c67d0a",
              "versionType": "git"
            },
            {
              "lessThan": "62cd5d480b9762ce70d720a81fa5b373052ae05f",
              "status": "affected",
              "version": "f2219745250f388edacabe6cca73654131c67d0a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/keys/trusted-keys/trusted_tpm2.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.13"
            },
            {
              "lessThan": "5.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.198",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.198",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.160",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.120",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.64",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.3",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKEYS: trusted: Fix a memory leak in tpm2_load_cmd\n\n\u0027tpm2_load_cmd\u0027 allocates a tempoary blob indirectly via \u0027tpm2_key_decode\u0027\nbut it is not freed in the failure paths. Address this by wrapping the blob\ninto with a cleanup helper."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T21:55:53.398Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3fd7df4636d8fd5e3592371967a5941204368936"
        },
        {
          "url": "https://git.kernel.org/stable/c/af0689cafb127a8d1af78cc8b72585c9b2a19ecd"
        },
        {
          "url": "https://git.kernel.org/stable/c/19166de9737218b77122c41a5730ac87025e089f"
        },
        {
          "url": "https://git.kernel.org/stable/c/9b015f2918b95bdde2ca9cefa10ef02b138aae1e"
        },
        {
          "url": "https://git.kernel.org/stable/c/9e7c63c69f57b1db1a8a1542359a6167ff8fcef1"
        },
        {
          "url": "https://git.kernel.org/stable/c/62cd5d480b9762ce70d720a81fa5b373052ae05f"
        }
      ],
      "title": "KEYS: trusted: Fix a memory leak in tpm2_load_cmd",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-71147",
    "datePublished": "2026-01-23T14:15:13.945Z",
    "dateReserved": "2026-01-13T15:30:19.662Z",
    "dateUpdated": "2026-06-11T18:44:18.432Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-71147\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-06-10T20:41:59.884894Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-06-11T17:38:57.318Z\"}}], \"cna\": {\"title\": \"KEYS: trusted: Fix a memory leak in tpm2_load_cmd\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"f2219745250f388edacabe6cca73654131c67d0a\", \"lessThan\": \"3fd7df4636d8fd5e3592371967a5941204368936\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f2219745250f388edacabe6cca73654131c67d0a\", \"lessThan\": \"af0689cafb127a8d1af78cc8b72585c9b2a19ecd\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f2219745250f388edacabe6cca73654131c67d0a\", \"lessThan\": \"19166de9737218b77122c41a5730ac87025e089f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f2219745250f388edacabe6cca73654131c67d0a\", \"lessThan\": \"9b015f2918b95bdde2ca9cefa10ef02b138aae1e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f2219745250f388edacabe6cca73654131c67d0a\", \"lessThan\": \"9e7c63c69f57b1db1a8a1542359a6167ff8fcef1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f2219745250f388edacabe6cca73654131c67d0a\", \"lessThan\": \"62cd5d480b9762ce70d720a81fa5b373052ae05f\", \"versionType\": \"git\"}], \"programFiles\": [\"security/keys/trusted-keys/trusted_tpm2.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.13\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.13\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.15.198\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.160\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.120\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.64\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.18.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.18.*\"}, {\"status\": \"unaffected\", \"version\": \"6.19\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"security/keys/trusted-keys/trusted_tpm2.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/3fd7df4636d8fd5e3592371967a5941204368936\"}, {\"url\": \"https://git.kernel.org/stable/c/af0689cafb127a8d1af78cc8b72585c9b2a19ecd\"}, {\"url\": \"https://git.kernel.org/stable/c/19166de9737218b77122c41a5730ac87025e089f\"}, {\"url\": \"https://git.kernel.org/stable/c/9b015f2918b95bdde2ca9cefa10ef02b138aae1e\"}, {\"url\": \"https://git.kernel.org/stable/c/9e7c63c69f57b1db1a8a1542359a6167ff8fcef1\"}, {\"url\": \"https://git.kernel.org/stable/c/62cd5d480b9762ce70d720a81fa5b373052ae05f\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nKEYS: trusted: Fix a memory leak in tpm2_load_cmd\\n\\n\u0027tpm2_load_cmd\u0027 allocates a tempoary blob indirectly via \u0027tpm2_key_decode\u0027\\nbut it is not freed in the failure paths. Address this by wrapping the blob\\ninto with a cleanup helper.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.198\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.160\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.120\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.64\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.18.3\", \"versionStartIncluding\": \"5.13\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.19\", \"versionStartIncluding\": \"5.13\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-05-11T21:55:53.398Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2025-71147\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-06-11T18:44:18.432Z\", \"dateReserved\": \"2026-01-13T15:30:19.662Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2026-01-23T14:15:13.945Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…