CVE-2025-71147
KEYS: trusted: Fix a memory leak in tpm2_load_cmd
Check your servers for CVE-2025-71147
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71147 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.74% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Jun 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f2219745250f388edacabe6cca73654131c67d0a, before 3fd7df4636d8fd5e3592371967a5941204368936 affected from f2219745250f388edacabe6cca73654131c67d0a, before af0689cafb127a8d1af78cc8b72585c9b2a19ecd affected from f2219745250f388edacabe6cca73654131c67d0a, before 19166de9737218b77122c41a5730ac87025e089f affected from f2219745250f388edacabe6cca73654131c67d0a, before 9b015f2918b95bdde2ca9cefa10ef02b138aae1e affected from f2219745250f388edacabe6cca73654131c67d0a, before 9e7c63c69f57b1db1a8a1542359a6167ff8fcef1 affected from f2219745250f388edacabe6cca73654131c67d0a, before 62cd5d480b9762ce70d720a81fa5b373052ae05f
Other versions: unaffected
|
| Linux |
affected 5.13 unaffected before 5.13 unaffected from 5.15.198 up to and including 5.15.* unaffected from 6.1.160 up to and including 6.1.* unaffected from 6.6.120 up to and including 6.6.* unaffected from 6.12.64 up to and including 6.12.* unaffected from 6.18.3 up to and including 6.18.* unaffected 6.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71147 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71147
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-71147
trivy image --scanners vuln IMAGE | grep CVE-2025-71147
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3fd7df4636d8fd5e3592371967a5941204368936 git.kernel.org
- https://git.kernel.org/stable/c/af0689cafb127a8d1af78cc8b72585c9b2a19ecd git.kernel.org
- https://git.kernel.org/stable/c/19166de9737218b77122c41a5730ac87025e089f git.kernel.org
- https://git.kernel.org/stable/c/9b015f2918b95bdde2ca9cefa10ef02b138aae1e git.kernel.org
- https://git.kernel.org/stable/c/9e7c63c69f57b1db1a8a1542359a6167ff8fcef1 git.kernel.org
- https://git.kernel.org/stable/c/62cd5d480b9762ce70d720a81fa5b373052ae05f git.kernel.org
Source: the record CVE-2025-71147 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse