CVE-2025-68792 tpm2-sessions: Fix out of range indexing in name_size

High 7.8 Published Updated

An out-of-bounds indexing flaw in the Linux kernel TPM2 sessions allows attackers to cause memory corruption, potentially leading to code execution or system crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-68792?

CVE-2025-68792 is a high-severity memory corruption vulnerability in Linux, published on 13 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

tpm2-sessions: Fix out of range indexing in name_size

'name_size' does not have any range checks, and it just directly indexes with TPM_ALG_ID, which could lead into memory corruption at worst.

Address the issue by only processing known values and returning -EINVAL for unrecognized values.

Make also 'tpm_buf_append_name' and 'tpm_buf_fill_hmac_session' fallible so that errors are detected before causing any spurious TPM traffic.

End also the authorization session on failure in both of the functions, as the session state would be then by definition corrupted.

Which versions are affected by CVE-2025-68792?

How do I fix CVE-2025-68792?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-68792 being exploited?

There is no known exploitation of CVE-2025-68792 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2025-68792, DEBIAN-CVE-2025-68792, GHSA-2wfq-pvgx-w5wx, UBUNTU-CVE-2025-68792.

Is CVE-2025-68792 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free