Skip to contentSkip to conversation

CVE-2025-71077: tpm: Cap the number of PCR banks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 13

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tpm: Cap the number of PCR banks

tpm2_get_pcr_allocation() does not cap any upper limit for the number of banks. Cap the limit to eight banks so that out of bounds values coming from external I/O cause on only limited harm.

The Linux kernel CVE team has assigned CVE-2025-71077 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.1 with commit bcfff8384f6c4e6627676ef07ccad9cfacd67849 and fixed in 6.1.160 with commit ceb70d31da5671d298bad94ae6c20e4bbb800f96
	Issue introduced in 5.1 with commit bcfff8384f6c4e6627676ef07ccad9cfacd67849 and fixed in 6.6.120 with commit d88481653d74d622d1d0d2c9bad845fc2cc6fd23
	Issue introduced in 5.1 with commit bcfff8384f6c4e6627676ef07ccad9cfacd67849 and fixed in 6.12.64 with commit b69492161c056d36789aee42a87a33c18c8ed5e1
	Issue introduced in 5.1 with commit bcfff8384f6c4e6627676ef07ccad9cfacd67849 and fixed in 6.18.3 with commit 858344bc9210bea9ab2bdc7e9e331ba84c164e50
	Issue introduced in 5.1 with commit bcfff8384f6c4e6627676ef07ccad9cfacd67849 and fixed in 6.19-rc1 with commit faf07e611dfa464b201223a7253e9dc5ee0f3c9e

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-71077

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/tpm-chip.c
drivers/char/tpm/tpm1-cmd.c
drivers/char/tpm/tpm2-cmd.c
include/linux/tpm.h

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/ceb70d31da5671d298bad94ae6c20e4bbb800f96
	https://git.kernel.org/stable/c/d88481653d74d622d1d0d2c9bad845fc2cc6fd23
	https://git.kernel.org/stable/c/b69492161c056d36789aee42a87a33c18c8ed5e1
	https://git.kernel.org/stable/c/858344bc9210bea9ab2bdc7e9e331ba84c164e50
	https://git.kernel.org/stable/c/faf07e611dfa464b201223a7253e9dc5ee0f3c9e