CVE-2026-45871: tpm: st33zp24: Fix missing cleanup on get_burstcount() error
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tpm: st33zp24: Fix missing cleanup on get_burstcount() error
get_burstcount() can return -EBUSY on timeout. When this happens, st33zp24_send() returns directly without releasing the locality acquired earlier.
Use goto out_err to ensure proper cleanup when get_burstcount() fails.
The Linux kernel CVE team has assigned CVE-2026-45871 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 5.10.252 with commit e0ce3da82341fcd6194175f1837946b2a894c625 Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 5.15.202 with commit 7687133509cf66ced120b667fefd21f80bf17993 Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 6.1.165 with commit 1256c6dc96d1e687e6e9b63088156ed07411b00c Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 6.6.128 with commit a51cff9be046e13e1c1b2fe45d5c48b582ec9b8c Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 6.12.75 with commit cc09d55f519e15355de343264a22ac6682b8305e Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 6.18.14 with commit ec15eb67fe9df87981b4829b901ec254273ca483 Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 6.19.4 with commit 4fffb77d35d038f146e6192da583dbe4971d869e Issue introduced in 4.1 with commit bf38b8710892333cec2d8069644eb36ff435fd6f and fixed in 7.0 with commit 3e91b44c93ad2871f89fc2a98c5e4fe6ca5db3d9
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-45871
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/st33zp24/st33zp24.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/e0ce3da82341fcd6194175f1837946b2a894c625 https://git.kernel.org/stable/c/7687133509cf66ced120b667fefd21f80bf17993 https://git.kernel.org/stable/c/1256c6dc96d1e687e6e9b63088156ed07411b00c https://git.kernel.org/stable/c/a51cff9be046e13e1c1b2fe45d5c48b582ec9b8c https://git.kernel.org/stable/c/cc09d55f519e15355de343264a22ac6682b8305e https://git.kernel.org/stable/c/ec15eb67fe9df87981b4829b901ec254273ca483 https://git.kernel.org/stable/c/4fffb77d35d038f146e6192da583dbe4971d869e https://git.kernel.org/stable/c/3e91b44c93ad2871f89fc2a98c5e4fe6ca5db3d9