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.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 bundle the affected Linux kernel versions are susceptible, as the CPE entry "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*" indicates a universal kernel target. The specific vendor names are not provided beyond "Linux:Linux"; however, any system running the affected kernel revision should be considered at risk until the patch is applied.

Risk and Exploitability

The problem is a missing cleanup routine rather than an input validation flaw, so exploitation requires the ability to trigger the tpm2_read_public() function repeatedly. The likely vector is local extraction of TPM resources, meaning that a user with at least local access to the kernel’s TPM subsystem could initiate the leak. No known public exploits exist, and the CVE does not appear in CISA’s KEV catalog. The EPSS score is not available, implying no recent quantitative assessment of exploitation probability. Nevertheless, the high severity of a memory‑leak exploit that can cause the kernel to run out of pages warrants a defensive posture.

Generated by OpenCVE AI on May 27, 2026 at 17:54 UTC.

Remediation

No vendor fix or workaround currently provided.

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 May 27, 2026 at 17:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 14:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:58:56.233Z

Reserved: 2026-05-13T15:03:33.097Z

Link: CVE-2026-46096

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:31.220

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-46096

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T18:00:15Z

Weaknesses

No weakness.