# CVE-2025-71147: KEYS: trusted: Fix a memory leak in tpm2_load_cmd

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-01-23T14:15:13.945Z
- Modified: 2026-10-19T19:17:15.433Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f2219745250f388edacabe6cca73654131c67d0a before 3fd7df4636d8fd5e3592371967a5941204368936; from f2219745250f388edacabe6cca73654131c67d0a before af0689cafb127a8d1af78cc8b72585c9b2a19ecd; from f2219745250f388edacabe6cca73654131c67d0a before 19166de9737218b77122c41a5730ac87025e089f; from f2219745250f388edacabe6cca73654131c67d0a before 9b015f2918b95bdde2ca9cefa10ef02b138aae1e; from f2219745250f388edacabe6cca73654131c67d0a before 9e7c63c69f57b1db1a8a1542359a6167ff8fcef1; from f2219745250f388edacabe6cca73654131c67d0a before 62cd5d480b9762ce70d720a81fa5b373052ae05f; 5.13 (not affected: before 5.13; from 5.15.198 up to 5.15.*; from 6.1.160 up to 6.1.*; from 6.6.120 up to 6.6.*; from 6.12.64 up to 6.12.*; from 6.18.3 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 5.13 before 5.15.198; from 5.16 before 6.1.160; from 6.2 before 6.6.120; from 6.7 before 6.12.64; from 6.13 before 6.18.3

## References

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

## Sources

- CVE List: [CVE-2025-71147](https://www.cve.org/CVERecord?id=CVE-2025-71147), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2025-71147](https://nvd.nist.gov/vuln/detail/CVE-2025-71147), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-71147 · Whole record: https://cve.day/CVE-2025-71147.json · Rebuilt by cve.day 2026-11-25T22:59:10.835Z
