Linux Kernel Memory Leak Vulnerability in Trusted Keys TPM2 Command Loading

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's handling of trusted keys, specifically within the TPM2 command loading function. The issue arises because the function 'tpm2_load_cmd' allocates a temporary blob through 'tpm2_key_decode', but fails to release it in certain error scenarios. This oversight has been corrected by introducing a cleanup helper to properly manage the memory. The vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability leads to a memory leak, where allocated memory is not properly freed, potentially causing increased memory usage and degradation of system performance over time.

Reproduction

The vulnerability can be reproduced by invoking the 'tpm2_load_cmd' function in the 'trusted_tpm2.c' file of the Linux kernel's security keys trusted keys module. The function should be called in a way that triggers the failure paths, allowing the memory allocation to occur without being properly freed.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit that resolves this issue is available in the Linux kernel stable tree.

Added: Jan 23, 2026, 4:08 PM
Updated: Jan 23, 2026, 4:08 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.8
remediation
7.7
relevance
2.2
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.