CVE-2026-46283: tpm: Use kfree_sensitive() to free auth session in tpm_dev_release()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tpm: Use kfree_sensitive() to free auth session in tpm_dev_release()
tpm_dev_release() uses plain kfree() to free chip->auth, which contains sensitive cryptographic material including HMAC session keys, nonces, and passphrase data (struct tpm2_auth).
Every other code path that frees this structure uses kfree_sensitive() to zero the memory before releasing it: both tpm2_end_auth_session() and tpm_buf_check_hmac_response() do so. The tpm_dev_release() path is the only one that does not, leaving key material in freed slab memory until it is eventually overwritten.
Use kfree_sensitive() for consistency with the rest of the driver and to ensure session keys are scrubbed during device teardown.
The Linux kernel CVE team has assigned CVE-2026-46283 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit 699e3efd6c645c741ea4d6d58282c56b6d108cf7 and fixed in 6.12.86 with commit dd3ac52ea7a001406c7dbc663aae4b9f89da679a Issue introduced in 6.10 with commit 699e3efd6c645c741ea4d6d58282c56b6d108cf7 and fixed in 6.18.27 with commit 53e6d2d834df40960b655b353e7a8ff4d927e1c7 Issue introduced in 6.10 with commit 699e3efd6c645c741ea4d6d58282c56b6d108cf7 and fixed in 7.0.4 with commit 84ced03172da544c9f8c0862faad48104f519352 Issue introduced in 6.10 with commit 699e3efd6c645c741ea4d6d58282c56b6d108cf7 and fixed in 7.1-rc1 with commit c424d2664f08c77f08b4580b5f0cbaabf7c229b2
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-46283
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
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/dd3ac52ea7a001406c7dbc663aae4b9f89da679a https://git.kernel.org/stable/c/53e6d2d834df40960b655b353e7a8ff4d927e1c7 https://git.kernel.org/stable/c/84ced03172da544c9f8c0862faad48104f519352 https://git.kernel.org/stable/c/c424d2664f08c77f08b4580b5f0cbaabf7c229b2