CVE-2026-46096

tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()

Published May 27, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()

tpm2_read_public() calls tpm_buf_init() but fails to call
tpm_buf_destroy() on two exit paths, leaking a page allocation:

1. When name_size() returns an error (unrecognized hash algorithm),
the function returns directly without destroying the buffer.

2. On the success path, the buffer is never destroyed before
returning.

All other error paths in the function correctly call
tpm_buf_destroy() before returning.

Fix both by adding the missing tpm_buf_destroy() calls.

Analysis

AI-generated

Technical impact

The vulnerability originates from the TPM 2.0 session code in the Linux kernel, where the function that reads a TPM object’s public area fails to free a buffer allocated on the page stack in two code paths. This omission can cause a kernel memory leak, gradually exhausting available memory and potentially leading to a denial‑of‑service condition when the system runs out of pages. The leak is purely a resource depletion issue with no direct integrity or confidentiality impact, but it can degrade system performance and stability.

Affected Systems

All Linux distributions that incorporate the affected Linux kernel versions are susceptible. The CPE entry indicates a universal kernel target, so any system running a vulnerable kernel revision should be considered at risk until the patch is applied.

Risk and Exploitability

The vulnerability is a missing cleanup routine, so exploiting it requires repeatedly invoking tpm2_read_public(). The likely attack vector is local TPM access, allowing an attacker with sufficient privileges to trigger the leak. The CVSS score of 5.5 indicates moderate severity, while the EPSS score of less than 1% suggests a low probability of exploitation. It is not listed in the CISA Known Exploited Vulnerabilities catalog, and no public exploits have been reported. Because the flaw can lead to kernel memory exhaustion and a potential denial‑of‑service, a defensive posture remains advised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the version that contains the tpm_buf_destroy fix for tpm2_read_public().
  • If an immediate kernel update is not feasible, consider disabling TPM functionality or restricting access to the TPM device using SELinux or similar policy tools to limit the ability to trigger the leaking path.
  • After applying the kernel update, monitor system memory usage for any anomalous patterns that could indicate residual leaks or other issues.

Generated by OpenCVE AI on August 13, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8488-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8489-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8488-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8507-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public() tpm2_read_public() calls tpm_buf_init() but fails to call tpm_buf_destroy() on two exit paths, leaking a page allocation: 1. When name_size() returns an error (unrecognized hash algorithm), the function returns directly without destroying the buffer. 2. On the success path, the buffer is never destroyed before returning. All other error paths in the function correctly call tpm_buf_destroy() before returning. Fix both by adding the missing tpm_buf_destroy() calls.
Title tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jun 14, 2026, 5:54 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
May 27, 2026, 2:17 PM
Modified
Jun 25, 2026, 9:17 PM
Severity
Public date
May 27, 2026, 12:00 AM