[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2026011305-CVE-2025-68792-9a3f@gregkh>
Date: Tue, 13 Jan 2026 16:29:18 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-68792: tpm2-sessions: Fix out of range indexing in name_size
From: Greg Kroah-Hartman <gregkh@...nel.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.
The Linux kernel CVE team has assigned CVE-2025-68792 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 1085b8276bb4239daa7008f0dcd5c973e4bd690f and fixed in 6.18.3 with commit 04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43
Issue introduced in 6.10 with commit 1085b8276bb4239daa7008f0dcd5c973e4bd690f and fixed in 6.19-rc1 with commit 6e9722e9a7bfe1bbad649937c811076acf86e1fd
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-68792
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/char/tpm/tpm2-cmd.c
drivers/char/tpm/tpm2-sessions.c
include/linux/tpm.h
security/keys/trusted-keys/trusted_tpm2.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/04a3aa6e8c5f878cc51a8a1c90b6d3c54079bc43
https://git.kernel.org/stable/c/6e9722e9a7bfe1bbad649937c811076acf86e1fd
Powered by blists - more mailing lists