platform/x86: lenovo-wmi-helpers: Fix memory leak in lwmi_dev_evaluate_int()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.507.0.107.1In 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.
From the CVE record · Linux
The Linux kernel’s lenovo-wmi-helpers code leaks memory when lwmi_dev_evaluate_int() is called with retval set to NULL. The input does not describe how an attacker could trigger the leak or specify network, authentication, or user-interaction conditions.
Engineers running the Linux kernel should check whether their version contains the affected lenovo-wmi-helpers code; affected versions are not specified.