CVE-2023-53211: driver core: location: Free struct acpi_pld_info *pld before return false
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
driver core: location: Free struct acpi_pld_info *pld before return false
struct acpi_pld_info *pld should be freed before the return of allocation failure, to prevent memory leak, add the ACPI_FREE() to fix it.
The Linux kernel CVE team has assigned CVE-2023-53211 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit bc443c31def574e3bfaed50cb493b8305ad79435 and fixed in 6.1.16 with commit 8fe72b8f59f63ca776bb8a4fcd2f406057a9fc90 Issue introduced in 5.19 with commit bc443c31def574e3bfaed50cb493b8305ad79435 and fixed in 6.2.3 with commit 5a9de90951bbeaed775e4b8d1b16b4d359e82bf5 Issue introduced in 5.19 with commit bc443c31def574e3bfaed50cb493b8305ad79435 and fixed in 6.3 with commit 0d150f967e8410e1e6712484543eec709356a65d
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-53211
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/base/physical_location.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/8fe72b8f59f63ca776bb8a4fcd2f406057a9fc90 https://git.kernel.org/stable/c/5a9de90951bbeaed775e4b8d1b16b4d359e82bf5 https://git.kernel.org/stable/c/0d150f967e8410e1e6712484543eec709356a65d