CVE-2026-46096: tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()

Published May 27, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tpm2-sessions: Fix missing tpmbufdestroy() in tpm2readpublic()

tpm2readpublic() calls tpmbufinit() but fails to call tpmbufdestroy() on two exit paths, leaking a page allocation:

1. When namesize() 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 tpmbufdestroy() before returning.

Fix both by adding the missing tpmbufdestroy() calls.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.12.64<6.13
Linux Linux kernel>=6.18.3<6.18.27
Linux Linux kernel>=6.19<7.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In tpm2_read_public(), add the missing tpm_buf_destroy() calls so the buffer allocated by tpm_buf_init() is destroyed both when name_size() returns an error (unrecognized hash algorithm) and on the other missing exit path; this resolves a page leak from not destroying the buffer before returning.

    Linux kernel (tpm2-sessions) tpm_buf_destroy() calls = Ensure tpm_buf_destroy() is invoked on the error paths and the direct-return path in tpm2_read_public() (after tpm_buf_init())

Event History

May 27, 2026
CVE Published
via MITRE·12:58 PM
Data Sourced
via MITRE·12:58 PM
Description
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-46096?

The severity of CVE-2026-46096 is rated as 6.

2

How do I fix CVE-2026-46096?

To fix CVE-2026-46096, update to the latest version of the Linux kernel where the vulnerability has been patched.

3

What causes CVE-2026-46096 in the Linux kernel?

CVE-2026-46096 is caused by a failure to call tpm_buf_destroy() in tpm2_read_public(), leading to a page allocation leak.

4

Which functions are involved in CVE-2026-46096?

CVE-2026-46096 involves the functions tpm_buf_init() and tpm_buf_destroy() in the context of tpm2_read_public().

5

What is the impact of CVE-2026-46096?

The impact of CVE-2026-46096 is a memory leak that could affect system performance over time if not addressed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203