Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CD8F2ED858 for ; Tue, 13 Jan 2026 15:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318306; cv=none; b=u1qoOBcfncPJWGZy8QOXC6N2tfrX5c1DF4VUvjww3P5OEb28kbri8LqRPsQ4BggZDqjEpxC1NHNAjNZfTddGBqkGW2xRNyek6RmyUtSZz34aic9Io88W/8w6hUj5/w3smzc3FbNOxStLHSDLiRLEH2xTLo8CS1u88k2YZvmhMsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318306; c=relaxed/simple; bh=Nu2uy658ZEDpWraT/0b7sHPkq3KXIVdAl2Tw76/EoLk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EoK83fOJAxf+Giecb3mUqqBkQy1Bq8oDbr6P/nJ5pOM7x3lWk0ptbBEVTY6XFmqXoLaKdfQbAPswEtwOjjAr4oScXY5rP08mcQdSS3d/IofCD4n2s7Mbb4dhv2eDb8YBTUXUCfen4zhhRT2F1kP9dnsK+V9wN8U563zyf2wtlkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JNpvNKIN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JNpvNKIN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86245C19425; Tue, 13 Jan 2026 15:31:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318305; bh=Nu2uy658ZEDpWraT/0b7sHPkq3KXIVdAl2Tw76/EoLk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=JNpvNKINYOljEO03Ak9hVgJSJhT2crrEJi+Y1h9fUUK5aZIVIsSRXjgt1Y19k4uud 7ntIooloJ+jdm4JpVnoRhInjbbG1sLH0ANPkjpZVeM0XKcq9q+b7EhPCGhzQnIL016 iAJQY1rHClhDqpnZ1+ZsG7z2Vj9x6LFbWnaM7hvs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68792: tpm2-sessions: Fix out of range indexing in name_size Date: Tue, 13 Jan 2026 16:29:18 +0100 Message-ID: <2026011305-CVE-2025-68792-9a3f@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2392; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ze1BWqo4/M5mu9csVsX5pWQUobdixVo5RIdSyXbCvZU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKQfFWlsCha3TBPN+xxd7cN/Z07yaofLT1QVt209Hn 3vvKR7bEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5fYNhJmPtruxF8aJTyg2C bY6Hmu9b+3PrKYb5eUa52lf5SjzKC59aqXzQWxXGocYKAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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