Skip to contentSkip to conversation

CVE-2026-99221: keys/trusted_keys: return immediately after TPM unseal failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 2

lore
Share & tools
lore
#0 lore raw

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

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

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

keys/trusted_keys: return immediately after TPM unseal failure

trusted_tpm_unseal() proceeds to pcrlock() when the TPM unseal operation fails. If pcrlock() succeeds, its return value overwrites the unseal error, causing key instantiation to succeed.

Return immediately when unseal fails to preserve the original error.

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

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

	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 5.15.224 with commit 4876f09ce222e140a73aad950882b3605440c935
	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 6.1.191 with commit 2d92a0f87c338a08367aff05edd1ade86da4ac8d
	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 6.6.161 with commit 234d09bb3b3d84851d4b3246272addc30f3353eb
	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 6.12.115 with commit 6e359d8cb8580b9874801dea930086effd4d9c62
	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 6.18.60 with commit e55d48f21f591a9fe80d26b5fbd1912ea725d9e6
	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 7.2.14 with commit 63b19ec2863b2cb5279b746ecd3d6210b1a93945
	Issue introduced in 5.13 with commit 5d0682be318910e028bdf57c90a1695ffc34be37 and fixed in 7.3.1 with commit ed697a5f667435bbb1cedbe5bd9f300de645047d

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

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:
security/keys/trusted-keys/trusted_tpm1.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/4876f09ce222e140a73aad950882b3605440c935
	https://git.kernel.org/stable/c/2d92a0f87c338a08367aff05edd1ade86da4ac8d
	https://git.kernel.org/stable/c/234d09bb3b3d84851d4b3246272addc30f3353eb
	https://git.kernel.org/stable/c/6e359d8cb8580b9874801dea930086effd4d9c62
	https://git.kernel.org/stable/c/e55d48f21f591a9fe80d26b5fbd1912ea725d9e6
	https://git.kernel.org/stable/c/63b19ec2863b2cb5279b746ecd3d6210b1a93945
	https://git.kernel.org/stable/c/ed697a5f667435bbb1cedbe5bd9f300de645047d
	https://git.kernel.org/stable/c/f92d0ccb05bf9089072cb067dda0dffd5394c4ef