CVE-2026-46096

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

No CVSS score yet EPSS 0.16%

Published 27 May 2026 Updated 14 Jun 2026 CNA: Linux

Check your servers for CVE-2026-46096

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-46096 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.73% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 20eda7c74b69fe9e1caf9b930a5c016bf8d755fa, before f8775d9d9062da662cc861f9ff7722a65896d4cd
affected from bda1cbf73c6e241267c286427f2ed52b5735d872, before 2f434be87e256fd58254f60ddf5d7d58e775ca0b
affected from bda1cbf73c6e241267c286427f2ed52b5735d872, before f0f75a3d98b7959a8677b6363e23190f3018636b
affected a3b7eb67225c486a2da357c5db3e386f4e64bcde
affected from 6.18.3, before 6.18.27
affected from 6.12.64, before 6.13
Other versions: unaffected
Linux
affected 6.19
unaffected before 6.19
unaffected from 6.18.27 up to and including 6.18.*
unaffected from 7.0.4 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-46096 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-46096

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-46096
trivy image --scanners vuln IMAGE | grep CVE-2026-46096

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-46096 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.