| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-50117: drm/amd: Guard against bad data for ATIF ACPI method |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| drm/amd: Guard against bad data for ATIF ACPI method |
| |
| If a BIOS provides bad data in response to an ATIF method call |
| this causes a NULL pointer dereference in the caller. |
| |
| ``` |
| ? show_regs (arch/x86/kernel/dumpstack.c:478 (discriminator 1)) |
| ? __die (arch/x86/kernel/dumpstack.c:423 arch/x86/kernel/dumpstack.c:434) |
| ? page_fault_oops (arch/x86/mm/fault.c:544 (discriminator 2) arch/x86/mm/fault.c:705 (discriminator 2)) |
| ? do_user_addr_fault (arch/x86/mm/fault.c:440 (discriminator 1) arch/x86/mm/fault.c:1232 (discriminator 1)) |
| ? acpi_ut_update_object_reference (drivers/acpi/acpica/utdelete.c:642) |
| ? exc_page_fault (arch/x86/mm/fault.c:1542) |
| ? asm_exc_page_fault (./arch/x86/include/asm/idtentry.h:623) |
| ? amdgpu_atif_query_backlight_caps.constprop.0 (drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:387 (discriminator 2)) amdgpu |
| ? amdgpu_atif_query_backlight_caps.constprop.0 (drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:386 (discriminator 1)) amdgpu |
| ``` |
| |
| It has been encountered on at least one system, so guard for it. |
| |
| (cherry picked from commit c9b7c809b89f24e9372a4e7f02d64c950b07fdee) |
| |
| The Linux kernel CVE team has assigned CVE-2024-50117 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 4.19.323 with commit 58556dcbd5606a5daccaee73b2130bc16b48e025 |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 5.4.285 with commit 43b4fa6e0e238c6e2662f4fb61d9f51c2785fb1d |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 5.10.229 with commit 234682910971732cd4da96fd95946e296e486b38 |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 5.15.170 with commit 6032287747f874b52dc8b9d7490e2799736e035f |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 6.1.115 with commit cd67af3c1762de4c2483ae4dbdd98f9ea8fa56e3 |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 6.6.59 with commit 975ede2a7bec52b5da1428829b3439667c8a234b |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 6.11.6 with commit 1d7175f9c57b1abf9ecfbdfd53ea760761f52ffe |
| Issue introduced in 4.2 with commit d38ceaf99ed015f2a0b9af3499791bd3a3daae21 and fixed in 6.12 with commit bf58f03931fdcf7b3c45cb76ac13244477a60f44 |
| |
| 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-2024-50117 |
| 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/gpu/drm/amd/amdgpu/amdgpu_acpi.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/58556dcbd5606a5daccaee73b2130bc16b48e025 |
| https://git.kernel.org/stable/c/43b4fa6e0e238c6e2662f4fb61d9f51c2785fb1d |
| https://git.kernel.org/stable/c/234682910971732cd4da96fd95946e296e486b38 |
| https://git.kernel.org/stable/c/6032287747f874b52dc8b9d7490e2799736e035f |
| https://git.kernel.org/stable/c/cd67af3c1762de4c2483ae4dbdd98f9ea8fa56e3 |
| https://git.kernel.org/stable/c/975ede2a7bec52b5da1428829b3439667c8a234b |
| https://git.kernel.org/stable/c/1d7175f9c57b1abf9ecfbdfd53ea760761f52ffe |
| https://git.kernel.org/stable/c/bf58f03931fdcf7b3c45cb76ac13244477a60f44 |