Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 442B61DD88D for ; Tue, 5 Nov 2024 17:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826702; cv=none; b=GanescHelYIm4lk7BEBYISm3Zd/koNYIuw0zJvJFD99zSUYNlz7i2A7Y3EtQhc2l9A+gyYnm9aMJT4yjK7iuOGA1rlnBm4lcyMjRvUn0tZrShRy2/bnVxzV82jPmoed2FAF2Q5JpeGDwSSlixp/9Sf3Ur/IlFGUXQxRaJkmvI6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826702; c=relaxed/simple; bh=onJwj7kUkhOiOe9zZuLnA8W8YzEMBQltO1848fM5y+I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=thB8sd7qKLZMeqywsaQRntz6RYkHMjRsjkWQVCF8k6Yy4Ewmz7f7Sb47SSC8dxlWcLdHV33FKKUqzKyTDoFrs1VD1mxm99E1rT5Va4gZk2ljZp4qmJaGfE3bUeAmfSeyl/PGcUnSa+WhAYmvh3W26ZgUYLAN4pa9cOt6Vi0oKZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Cq724Bbs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Cq724Bbs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB496C4CED2; Tue, 5 Nov 2024 17:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826702; bh=onJwj7kUkhOiOe9zZuLnA8W8YzEMBQltO1848fM5y+I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Cq724BbsMcAq8Nc4U8TRLSIYkuUJDa9qPJpMLymj7gDEcJAgj1QnTIR9/nWHkbU56 IrXF58wvzCSKxDDHmD0DNPpgDpUU9AWNmjFwIjCrsi7VC9ls1wOEVA/dDlKC34W5se ZvKRc9NlBdZCzU+FSsSuQ2dzDbRJorf5ytgSuEW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50117: drm/amd: Guard against bad data for ATIF ACPI method Date: Tue, 5 Nov 2024 18:11:06 +0100 Message-ID: <2024110555-CVE-2024-50117-83b1@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3224; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=onJwj7kUkhOiOe9zZuLnA8W8YzEMBQltO1848fM5y+I=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlagfMf/9E/zVkgKDHjBrvPzdmzOhwUOTQjD386M+3GJ UbTc1Pvd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEElsZ5ql/nLmLPXYGv/TG B9v3FGcsMJ5/pY9hwYGQu0896tfNZvsv8m8mz101u+awHgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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 d38ceaf99ed0 and fixed in 5.15.170 with commit 6032287747f8 Issue introduced in 4.2 with commit d38ceaf99ed0 and fixed in 6.1.115 with commit cd67af3c1762 Issue introduced in 4.2 with commit d38ceaf99ed0 and fixed in 6.6.59 with commit 975ede2a7bec Issue introduced in 4.2 with commit d38ceaf99ed0 and fixed in 6.11.6 with commit 1d7175f9c57b Issue introduced in 4.2 with commit d38ceaf99ed0 and fixed in 6.12-rc5 with commit bf58f03931fd 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/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