CVE-2025-71147
JSON

5.5medium

KEYS: trusted: Fix a memory leak in tpm2_load_cmd

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelfrom 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.3NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: KEYS: trusted: Corregir una fuga de memoria en tpm2_load_cmd 'tpm2_load_cmd' asigna un blob temporal indirectamente a través de 'tpm2_key_decode' pero no se libera en las rutas de fallo. Esto se aborda envolviendo el blob con una función auxiliar de limpieza.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71147 changed 2026-10-19CVE Terms of Use
NVDCVE-2025-71147 changed 2026-10-19Public domain