Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A95423B3C14 for ; Sun, 18 Oct 2026 15:54:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338896; cv=none; b=YNV+doDbPGlWOfKfu0QwcN9P/ZtSIdfcGFISqSdaNtRo9HzQdaEMSwgAKihcLy95hYYPiDwgO1jvxvcqg0ZPDK+kpOQhY/fEcG1EVEaXQ1f40KwtuTnIcC7+OyCbdBX2ILgch3bXGUra07ETBSdXU8pTwMjqVinguRj1gG2sDlg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792338896; c=relaxed/simple; bh=XSb9mDTaKYC6YWkESOfyMwDjUXPpdTZOdAGD3g6R5ds=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fVzgXiQjwzjA/2UGdW59/J9InCt3Ji/NvNNAfhRNQiTW06M5wfll0dYbbYLa7HoSyRIWmuwbOM8NpeQbfwQQ247fEAK+/RhPqRak7e7bbwZy8l3UG/VTMsVuug9F8S4JvAiLofVKPWNlIb7DMeLFPklB/OSn+qghYLPM0iYw2wo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YORKGKWZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YORKGKWZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D82A51F000C4; Sun, 18 Oct 2026 15:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792338895; bh=bfdBnGALsGVe2ISF+8hzGYgOaTssmARUgvtf+hnenkA=; h=From:To:Cc:Subject:Date:Reply-To; b=YORKGKWZhMq5PWZzUyQSI+5+fUZeiUTde1Jl0T8MxQlYzRIgawxsSRZKIWmyeUVaQ oYQwOAhHrx4VMhEahER8rjckYhAEQeATW4TBjIhh73g4/VNhWx0UFf9AzXS6GviFwo MsHxI1EJ0M/CFsRe9sOp9JWSXzK4+u9nAzVUBM2E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98728: tpm: fix off-by-four bounds check in tpm2_get_random() Date: Sun, 18 Oct 2026 17:45:03 +0200 Message-ID: <2026101810-CVE-2026-98728-30b1@gregkh> X-Mailer: git-send-email 2.56.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=2737; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rIvJKMvi0tp5Q/qyeDumUrD2TSAO+NRpWFRQ/oHpoNw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXnoxSZdPqt/4zVvepvvXsuwFC18Xr3CplfiodlmM/ 7P7lvzjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRuN8M87Tj1Z5/UDj12akz 1fGTolNXzJUbvxjmGYusWKK5PfyX/g3pfq/vi00mXHBkBgA= 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: tpm: fix off-by-four bounds check in tpm2_get_random() When the response carries the TPM2_ST_SESSIONS tag, tpm2_get_random() skips the 4-byte parameter size field before locating the random data, but the bounds check still validates the response length against TPM_HEADER_SIZE. A truncated response can pass the check and make memcpy() read up to 4 bytes past the response end, so stale buffer contents end up in the caller's random bytes. Fix this by checking the response length against 'offset', which already includes the skipped parameter size field. The Linux kernel CVE team has assigned CVE-2026-98728 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497 and fixed in 6.12.113 with commit be54101992c2c5218be0e0a87827ccc96e3089af Issue introduced in 6.10 with commit 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497 and fixed in 6.18.56 with commit e30a2406408d2df6d9cd48c2e59e913cf266a05a Issue introduced in 6.10 with commit 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497 and fixed in 7.2.10 with commit 42bb6216b861e892512128219ff23010d656ba14 Issue introduced in 6.10 with commit 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497 and fixed in 7.3-rc6 with commit 9b522400bf5c082feb9a0037a053ea822a2c7e4d 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-2026-98728 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 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/be54101992c2c5218be0e0a87827ccc96e3089af https://git.kernel.org/stable/c/e30a2406408d2df6d9cd48c2e59e913cf266a05a https://git.kernel.org/stable/c/42bb6216b861e892512128219ff23010d656ba14 https://git.kernel.org/stable/c/9b522400bf5c082feb9a0037a053ea822a2c7e4d