Vulnerability in Linux

CVE-2021-47009

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]

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.002, 16.0th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 5.10.38, 5.11.22, 9d83cc1a1e7f494aedee2aa108e801d11525fccf
  • Linux Kernel — versions 5.12

Weakness classification (CWE)

References