Skip to contentSkip to conversation

CVE-2026-45941: tpm: tpm_i2c_infineon: Fix locality leak on get_burstcount() failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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: tpm_i2c_infineon: Fix locality leak on get_burstcount() failure

get_burstcount() can return -EBUSY on timeout. When this happens, the function returns directly without releasing the locality that was acquired at the beginning of tpm_tis_i2c_send().

Use goto out_err to ensure proper cleanup when get_burstcount() fails.

The Linux kernel CVE team has assigned CVE-2026-45941 to this issue.

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

	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 5.10.252 with commit 8f124c5582d443ac9fb690db26d08cab5d6ba76e
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 5.15.202 with commit c24c9c4cab11858f22f309521ba7ea5b1e7385f2
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 6.1.165 with commit 1bb8f8826d0748b4b92a98fb6b6dfe52081739f5
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 6.6.128 with commit 948966e546f29af04391d98b8e378e4a7670c1c1
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 6.12.75 with commit a61b8412e3eb8b71646dba867e8252d8560a1a27
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 6.18.14 with commit 1a22048c1117cdfac185ba450aba67ed6b65dc87
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 6.19.4 with commit 2f7a665e1323359d99c74301d1e180f5e2c40181
	Issue introduced in 3.7 with commit aad628c1d91a6db57e572e4c1f35e863d81061d7 and fixed in 7.0 with commit bbd6e97c836cbeb9606d7b7e5dcf8a1d89525713

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

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_i2c_infineon.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/8f124c5582d443ac9fb690db26d08cab5d6ba76e
	https://git.kernel.org/stable/c/c24c9c4cab11858f22f309521ba7ea5b1e7385f2
	https://git.kernel.org/stable/c/1bb8f8826d0748b4b92a98fb6b6dfe52081739f5
	https://git.kernel.org/stable/c/948966e546f29af04391d98b8e378e4a7670c1c1
	https://git.kernel.org/stable/c/a61b8412e3eb8b71646dba867e8252d8560a1a27
	https://git.kernel.org/stable/c/1a22048c1117cdfac185ba450aba67ed6b65dc87
	https://git.kernel.org/stable/c/2f7a665e1323359d99c74301d1e180f5e2c40181
	https://git.kernel.org/stable/c/bbd6e97c836cbeb9606d7b7e5dcf8a1d89525713