Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()… (CVE-2026-46096)
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.
AI Analysis
Technical Summary
The Linux kernel's tpm2_read_public() function improperly manages memory buffers by failing to call tpm_buf_destroy() on two exit paths. Specifically, when name_size() returns an error due to an unrecognized hash algorithm, the function returns without releasing the allocated buffer. Additionally, on the success path, the buffer is also not destroyed before returning. Other error paths correctly free the buffer. This leads to a memory leak of page allocations within the TPM2 session code. The vulnerability has been resolved by adding the missing tpm_buf_destroy() calls.
Potential Impact
The vulnerability causes a memory leak (denial of service via resource exhaustion) in the Linux kernel TPM2 session handling. There is no impact on confidentiality or integrity. The CVSS vector indicates local attack complexity and privileges required, with no user interaction needed, and the impact is limited to availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that a fix has been implemented by adding the missing tpm_buf_destroy() calls. Users should monitor official Linux kernel updates and apply patches when available.
Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()… (CVE-2026-46096)
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.
CVSS v3.1
Score 5.5medium
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's tpm2_read_public() function improperly manages memory buffers by failing to call tpm_buf_destroy() on two exit paths. Specifically, when name_size() returns an error due to an unrecognized hash algorithm, the function returns without releasing the allocated buffer. Additionally, on the success path, the buffer is also not destroyed before returning. Other error paths correctly free the buffer. This leads to a memory leak of page allocations within the TPM2 session code. The vulnerability has been resolved by adding the missing tpm_buf_destroy() calls.
Potential Impact
The vulnerability causes a memory leak (denial of service via resource exhaustion) in the Linux kernel TPM2 session handling. There is no impact on confidentiality or integrity. The CVSS vector indicates local attack complexity and privileges required, with no user interaction needed, and the impact is limited to availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that a fix has been implemented by adding the missing tpm_buf_destroy() calls. Users should monitor official Linux kernel updates and apply patches when available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wq6x-xf86-6rwf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-46096"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a3ef7ed27e9c79719033aa3
Added to database: 06/26/2026, 22:06:37 UTC
Last enriched: 06/26/2026, 22:48:33 UTC
Last updated: 07/31/2026, 19:30:22 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.