Skip to contentSkip to conversation

CVE-2023-54252: platform/x86: think-lmi: Fix memory leaks when parsing ThinkStation WMI strings

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

platform/x86: think-lmi: Fix memory leaks when parsing ThinkStation WMI strings

My previous commit introduced a memory leak where the item allocated from tlmi_setting was not freed.
This commit also renames it to avoid confusion with the similarly name variable in the same function.

The Linux kernel CVE team has assigned CVE-2023-54252 to this issue.

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

	Issue introduced in 5.15.106 with commit dae47bf0222e1e0eb6684c7e141b7170b0884a4c and fixed in 5.15.107 with commit cccdb30935c82be805d3362a15680b95d5cb3ee0
	Issue introduced in 6.1.23 with commit f0a67ad7dce49d93570edc795e0312bb787f19bb and fixed in 6.1.24 with commit 081da7b1c881828244b93b3befb7c18389f696bb
	Issue introduced in 6.2.10 with commit c9c542eba4edf8d061bd2e5007cf598625e112df and fixed in 6.2.11 with commit 43fc0342bac1808fda2b76184e43414727111c6b

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-2023-54252

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/think-lmi.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/cccdb30935c82be805d3362a15680b95d5cb3ee0
	https://git.kernel.org/stable/c/081da7b1c881828244b93b3befb7c18389f696bb
	https://git.kernel.org/stable/c/43fc0342bac1808fda2b76184e43414727111c6b
	https://git.kernel.org/stable/c/e7d796fccdc8d17c2d21817ebe4c7bf5bbfe5433