CVE-2021-47009

KEYS: trusted: Fix memory leak on object td

MEDIUM
5.5
CVSS Score
Published: February 28, 2024 at 08:13 AM UTC
Updated: June 17, 2026 at 04:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.10.20 ≤ v < 5.10.385.11.3 ≤ v < 5.11.225.12 ≤ v < 5.12.55.12 ≤ v < 5.135.10.205.11.35.12 rc15df16caada3fba3b21cb09b85cdedf99507f4ec18cfc8d62942105e5df4a20a15b24da077a6b24ef9d83cc1a1e7f494aedee2aa108e801d11525fccf
Vendor states this is fixed in 1c4031014106aff48e1e686e40101c31eab5d44c (fixed)
Vendor states this is fixed in 31c9a4b24d86cbb36ff0d7a085725a3b4f0138c8 (fixed)
Vendor states this is fixed in 3e24fbd37e72e8a67b74991970fecc82d14f57af (fixed)
Vendor states this is fixed in 83a775d5f9bfda95b1c295f95a3a041a40c7f321 (fixed)
Vendor states this is fixed in 5.10.38 (unaffected)
Vendor states this is fixed in 5.11.22 (unaffected)
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 5.12.5 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1c4031014106aff48e1e686e40101c31eab5d44c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/31c9a4b24d86cbb36ff0d7a085725a3b4f0138c8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3e24fbd37e72e8a67b74991970fecc82d14f57af
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/83a775d5f9bfda95b1c295f95a3a041a40c7f321

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card