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 D7AEF208C4 for ; Mon, 26 Aug 2024 10:23:34 +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=1724667814; cv=none; b=qX1G8muIyz25/TSd9AtQYxVponCs9SKHOCnX1lbrJ9B+Pv0lorbEAj2Sd2n1esjHk3M/FQmDDkJ/swpV3AK6v4VGV89TTVrHySFXKrdCpFci475XrWBalPVOz0Uk51pl9CBi9MqHPK7CLKCkFkj6x0DUb7uaeM1O2Z2YlNxk6OU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724667814; c=relaxed/simple; bh=l/qhRvFswByoQpYFxarHmMvTE3IxAhr4jYITXxk3naY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iUfRxqyIx/XU7AZZaX0HlwInFwRCKECOX1DHC+k0Zz4ha6SG9XLTGRryU5RiOOLbXKC51ihcFxGfjXM9T8aB0G+w4w8hDs/p7/C7PPJOYezpIxHhwwORBY1Uy6QIna1KTSTU1ZX28tTXHLla07c2MliyLVVoj9otbvtV0WIn/5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zzcNooFu; 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="zzcNooFu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60E28C582B2; Mon, 26 Aug 2024 10:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724667814; bh=l/qhRvFswByoQpYFxarHmMvTE3IxAhr4jYITXxk3naY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zzcNooFuqdmKKC5fafBIrmpj3JCxD3myr3vuzgl9LEXQ8E39bxaa0SK2JAEbLt+6s vSujojQaColo1vfuB381uT1R5+ngxa/kDNdYcjGOTIc8pqJ2a5lvmJu8ZiOJ7EMGcC PY/ARe4CUrkKQUyCOs7T4PHVW/4FB+HTgq1Mlnuw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43903: drm/amd/display: Add NULL check for 'afb' before dereferencing in amdgpu_dm_plane_handle_cursor_update Date: Mon, 26 Aug 2024 12:17:11 +0200 Message-ID: <2024082620-CVE-2024-43903-3644@gregkh> X-Mailer: git-send-email 2.46.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=2321; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=l/qhRvFswByoQpYFxarHmMvTE3IxAhr4jYITXxk3naY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlnwgwUSiJfOSvuOvmi5zSb4p47fxRada98mZS+b46rj afEHAOVjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/WMMCy5+dWdbXrJrc3B6 wG3HjA2lD75UxzPMj1fzfvtIfX7uwS324v/VuqQsD0hdBgA= 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/display: Add NULL check for 'afb' before dereferencing in amdgpu_dm_plane_handle_cursor_update This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252) The Linux kernel CVE team has assigned CVE-2024-43903 to this issue. Affected and fixed versions =========================== Fixed in 6.1.105 with commit ce5d090af683 Fixed in 6.6.46 with commit 94220b35aeba Fixed in 6.10.5 with commit 31a679a88010 Fixed in 6.11-rc1 with commit 38e6f715b02b 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-43903 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/display/amdgpu_dm/amdgpu_dm_plane.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/ce5d090af683137cb779ed7e3683839f9c778b35 https://git.kernel.org/stable/c/94220b35aeba2b68da81deeefbb784d94eeb5c04 https://git.kernel.org/stable/c/31a679a880102dee6e10985a7b1789af8dc328cc https://git.kernel.org/stable/c/38e6f715b02b572f74677eb2f29d3b4bc6f1ddff