CVE-2025-68792

tpm2-sessions: Fix out of range indexing in name_size

State
Published
Severity
7.8 High
Published
Jan 13, 2026
Updated
Aug 5, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1085b8276bb4239daa7008f0dcd5c973e4bd690f to before 47e676ce4d68f461dfcab906f6aeb254f7276debAffected
  • 1085b8276bb4239daa7008f0dcd5c973e4bd690f to before 04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43Affected
  • 1085b8276bb4239daa7008f0dcd5c973e4bd690f to before 6e9722e9a7bfe1bbad649937c811076acf86e1fdAffected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.12.66 through 6.12.*Not affected
  • 6.18.3 through 6.18.*Not affected
  • 6.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.