CVE-2026-46096

tpm2-sessions: Fix missing tpm_buf_destroy() in tpm2_read_public()

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:58 PM UTC
Updated: June 27, 2026 at 11:41 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.12.646.12.64 ≤ v < 6.136.18.3 ≤ v < 6.18.276.19 ≤ v < 7.0.46.19 ≤ v < 7.120eda7c74b69fe9e1caf9b930a5c016bf8d755fa6.12.646.18.36.19a3b7eb67225c486a2da357c5db3e386f4e64bcdebda1cbf73c6e241267c286427f2ed52b5735d872
Vendor states this is fixed in 2f434be87e256fd58254f60ddf5d7d58e775ca0b (fixed)
Vendor states this is fixed in f0f75a3d98b7959a8677b6363e23190f3018636b (fixed)
Vendor states this is fixed in f8775d9d9062da662cc861f9ff7722a65896d4cd (fixed)
Affected range stops below 6.13, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.18.27 (unaffected)
Vendor states this is fixed in 6.19 (unaffected)
Vendor states this is fixed in 7.0.4 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card