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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-01-13T15:29:04.226Z
- Modified: 2026-08-05T12:11:28.554Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1085b8276bb4239daa7008f0dcd5c973e4bd690f before 47e676ce4d68f461dfcab906f6aeb254f7276deb; from 1085b8276bb4239daa7008f0dcd5c973e4bd690f before 04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43; from 1085b8276bb4239daa7008f0dcd5c973e4bd690f before 6e9722e9a7bfe1bbad649937c811076acf86e1fd; 6.10 (not affected: before 6.10; from 6.12.66 up to 6.12.*; from 6.18.3 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/47e676ce4d68f461dfcab906f6aeb254f7276deb>
- <https://git.kernel.org/stable/c/04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43>
- <https://git.kernel.org/stable/c/6e9722e9a7bfe1bbad649937c811076acf86e1fd>

## Sources

- CVE List: [CVE-2025-68792](https://www.cve.org/CVERecord?id=CVE-2025-68792), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-68792](https://nvd.nist.gov/vuln/detail/CVE-2025-68792), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-68792 · Whole record: https://cve.day/CVE-2025-68792.json · Rebuilt by cve.day 2026-11-25T22:59:10.533Z
