CVE-2026-63839: platform/x86: lenovo-wmi-helpers: Fix memory leak in lwmi_dev_evaluate_int()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: lenovo-wmi-helpers: Fix memory leak in lwmi_dev_evaluate_int()
lwmi_dev_evaluate_int() leaks output.pointer when retval == NULL (found by sashiko.dev [1]).
Fix it by moving ret_obj = output.pointer' outside of the if (retval)' block so that it is always freed by the __free cleanup callback.
No functional change intended.
The Linux kernel CVE team has assigned CVE-2026-63839 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit e521d16e76cd9ea99c585e064f4e7daf657b1451 and fixed in 7.0.10 with commit 40a984dd0602e238ad893b167751620e751d1199 Issue introduced in 6.17 with commit e521d16e76cd9ea99c585e064f4e7daf657b1451 and fixed in 7.1 with commit 0c3887a134f191723b53e2a47e501b534c8723ee
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-63839
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/lenovo/wmi-helpers.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/40a984dd0602e238ad893b167751620e751d1199 https://git.kernel.org/stable/c/0c3887a134f191723b53e2a47e501b534c8723ee