CVE-2026-23065: platform/x86/amd: Fix memory leak in wbrf_record()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
platform/x86/amd: Fix memory leak in wbrf_record()
The tmp buffer is allocated using kcalloc() but is not freed if acpi_evaluate_dsm() fails. This causes a memory leak in the error path.
Fix this by explicitly freeing the tmp buffer in the error handling path of acpi_evaluate_dsm().
The Linux kernel CVE team has assigned CVE-2026-23065 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit 58e82a62669da52e688f4a8b89922c1839bf1001 and fixed in 6.12.68 with commit 1152dffe01af86e42ce2b208b92ef7f8c275d130 Issue introduced in 6.8 with commit 58e82a62669da52e688f4a8b89922c1839bf1001 and fixed in 6.18.8 with commit 1a0072bd1f1e559eda3e91a24dbc51c9eb025c54 Issue introduced in 6.8 with commit 58e82a62669da52e688f4a8b89922c1839bf1001 and fixed in 6.19-rc7 with commit 2bf1877b7094c684e1d652cac6912cfbc507ad3e
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-23065
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/amd/wbrf.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/1152dffe01af86e42ce2b208b92ef7f8c275d130 https://git.kernel.org/stable/c/1a0072bd1f1e559eda3e91a24dbc51c9eb025c54 https://git.kernel.org/stable/c/2bf1877b7094c684e1d652cac6912cfbc507ad3e