CVE-2026-72145: platform/x86/intel/tpmi: use cleanup helpers in mem_write()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
platform/x86/intel/tpmi: use cleanup helpers in mem_write()
In mem_write(), the temporary array returned by parse_int_array_user() must be released on all exit paths. Convert the array variable to use cleanup.h scope-based cleanup so it is freed automatically on return.
This also moves the array declaration next to parse_int_array_user() as required by cleanup.h usage guidelines.
The Linux kernel CVE team has assigned CVE-2026-72145 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 8e0a2fc68ec369f2b6755994da1d318d0898a9d9 and fixed in 7.1.5 with commit 2137f21542900233a42bf00578817f9b8dfecadc Issue introduced in 7.1 with commit 8e0a2fc68ec369f2b6755994da1d318d0898a9d9 and fixed in 7.2-rc1 with commit a221557958e3a82d8565729d445a7385963f30b6
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-72145
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/platform/x86/intel/vsec_tpmi.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/2137f21542900233a42bf00578817f9b8dfecadc https://git.kernel.org/stable/c/a221557958e3a82d8565729d445a7385963f30b6