CVE-2021-47009
JSON

5.5medium

KEYS: trusted: Fix memory leak on object td

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.25% (higher than 16% 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 memory leak on object td Two error return paths are neglecting to free allocated object td, causing a memory leak. Fix this by returning via the error return path that securely kfree's td. Fixes clang scan-build warning: security/keys/trusted-keys/trusted_tpm1.c:496:10: warning: Potential memory leak [unix.Malloc]

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9d83cc1a1e7f494aedee2aa108e801d11525fccf before 31c9a4b24d86cbb36ff0d7a085725a3b4f0138c8, from 8cfc8d62942105e5df4a20a15b24da077a6b24ef before 1c4031014106aff48e1e686e40101c31eab5d44c, from 5df16caada3fba3b21cb09b85cdedf99507f4ec1 before 3e24fbd37e72e8a67b74991970fecc82d14f57af, from 5df16caada3fba3b21cb09b85cdedf99507f4ec1 before 83a775d5f9bfda95b1c295f95a3a041a40c7f321, from 5.10.20 before 5.10.38, from 5.11.3 before 5.11.22, 5.12
Not affected: before 5.12, from 5.10.38 up to 5.10.*, from 5.11.22 up to 5.11.*, from 5.12.5 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelfrom 5.10.20 before 5.10.38, from 5.11.3 before 5.11.22, from 5.12 before 5.12.5, 5.12NVD

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 memory leak on object td Two error return paths are neglecting to free allocated object td, causing a memory leak. Fix this by returning via the error return path that securely kfree's td. Fixes clang scan-build warning: security/keys/trusted-keys/trusted_tpm1.c:496:10: warning: Potential memory leak [unix.Malloc]

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: LLAVES: confiable: corrige la pérdida de memoria en el objeto td. Dos rutas de retorno de error no liberan el objeto asignado td, lo que provoca una pérdida de memoria. Solucione este problema regresando a través de la ruta de retorno de error que segura el td. Corrige la advertencia de clang scan-build: seguridad/claves/trusted-keys/trusted_tpm1.c:496:10: advertencia: Posible pérdida de memoria [unix.Malloc]

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47009 changed 2026-05-23CVE Terms of Use
NVDCVE-2021-47009 changed 2026-06-17Public domain