CVE-2022-50327: ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ACPI: processor: idle: Check acpi_fetch_acpi_dev() return value
The return value of acpi_fetch_acpi_dev() could be NULL, which would cause a NULL pointer dereference to occur in acpi_device_hid().
[ rjw: Subject and changelog edits, added empty line after if () ]
The Linux kernel CVE team has assigned CVE-2022-50327 to this issue.
Affected and fixed versions
===========================
Fixed in 5.4.297 with commit 8e8b5f12ee4ab6f5d252c9ca062a4ada9554e6d9 Fixed in 5.10.241 with commit fdee7a0acc566c4194d40a501b8a1584e86cc208 Fixed in 5.15.190 with commit ad1190744da9d812da55b76f2afce750afb0a3bd Fixed in 6.0.16 with commit 2ecd629c788bbfb96be058edade2e934d3763eaf Fixed in 6.1.2 with commit b85f0e292f73f353eea915499604fbf50c8238b4 Fixed in 6.2 with commit 2437513a814b3e93bd02879740a8a06e52e2cf7d
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-2022-50327
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/acpi/processor_idle.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/8e8b5f12ee4ab6f5d252c9ca062a4ada9554e6d9 https://git.kernel.org/stable/c/fdee7a0acc566c4194d40a501b8a1584e86cc208 https://git.kernel.org/stable/c/ad1190744da9d812da55b76f2afce750afb0a3bd https://git.kernel.org/stable/c/2ecd629c788bbfb96be058edade2e934d3763eaf https://git.kernel.org/stable/c/b85f0e292f73f353eea915499604fbf50c8238b4 https://git.kernel.org/stable/c/2437513a814b3e93bd02879740a8a06e52e2cf7d