What’s Vulnerable › Vulnerabilities
CVE-2026-46096: tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-27 · updated 2026-06-25
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.
Affected products
- Linux kernel: from 6.12.64 before 6.13; from 6.18.3 before 6.18.27; from 6.19 before 7.0.4 — fixed in 6.13, 6.18.27, 7.0.4
How to fix
Upgrade to a fixed version: Linux kernel 6.13, 6.18.27, 7.0.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2f434be87e256fd58254f60ddf5d7d58e775ca0b
- https://git.kernel.org/stable/c/f0f75a3d98b7959a8677b6363e23190f3018636b
- https://git.kernel.org/stable/c/f8775d9d9062da662cc861f9ff7722a65896d4cd
Get alerted when CVE-2026-46096 or the next vulnerability affects your stack