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 D82761E89C for ; Wed, 2 Apr 2025 12:30:20 +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=1743597021; cv=none; b=epBztgMnbMN0BREbw2+lrMrHmc/uNgsaSnO4v0VKCjfhkFEm4CB6obvkg62+2fyUWZMh6nqT4g4pV7xLhsyAskcMgmPGTo9RI0GGBL61oOr3XqfTYqURGeLsoPTqjOliqdgl8TL/aFvMAlpCohUwraxIE5XWjc/cNTW+XZg+9GI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743597021; c=relaxed/simple; bh=Zp8V6eW9+P6r6Aql+ww9ldCwOlhoUYddoI3i+FV9xz8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JWCIk/ibDwK2HOjbGo0TpJ4ttF/BA9KopvX9pJWI+ULQv4ml8veYWXJbKDH38ztUlds8mIFL8lQyib9kuTkQRFffpS7LIy1g39GjUZmWu/tO/H/spbNEWLn7sIid+s6vK1GfXKVkWm6y5abvKDJFD50YxtfwSVlSk5zTX8mkMi0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FI0rJnYg; 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="FI0rJnYg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09A68C4CEDD; Wed, 2 Apr 2025 12:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743597020; bh=Zp8V6eW9+P6r6Aql+ww9ldCwOlhoUYddoI3i+FV9xz8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FI0rJnYgMV6qVFQDFC7KNf+Di31Vn4Pb28iuI1UW3wYTw6qqA/wjx5lD8pwxdVa4G sVztx5M1ivctJjzojmvSPm43qSjYACHAHW9iLFvh+ETLVyhcY5AYHT6qUjRzTwwlBS kJz+HtkNp7C0uUzs26Eqif9BAA24VQgdm675pGJY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21987: drm/amdgpu: init return value in amdgpu_ttm_clear_buffer Date: Wed, 2 Apr 2025 13:28:50 +0100 Message-ID: <2025040249-CVE-2025-21987-de85@gregkh> X-Mailer: git-send-email 2.49.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=2254; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Zp8V6eW9+P6r6Aql+ww9ldCwOlhoUYddoI3i+FV9xz8=; b=kA0DAAIRMUfUDdst+ykByyZiAGftLYGiKi9dWW62RNqUB6A9ikv0BSZLBNbzz9m8SW4MQcYgW IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmftLYEACgkQMUfUDdst+ymj0QCeJPyn kKxOMziCR8kO1wX2JldpXVUAnRjfWBq7kyVQkgGdfBKfMhC/gbR9 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/amdgpu: init return value in amdgpu_ttm_clear_buffer Otherwise an uninitialized value can be returned if amdgpu_res_cleared returns true for all regions. Possibly closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3812 (cherry picked from commit 7c62aacc3b452f73a1284198c81551035fac6d71) The Linux kernel CVE team has assigned CVE-2025-21987 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit a68c7eaa7a8ffdec9287ba1561a668d674c20a13 and fixed in 6.12.18 with commit d2c9625b0ade41f9917875d88173a0cc802b95fc Issue introduced in 6.10 with commit a68c7eaa7a8ffdec9287ba1561a668d674c20a13 and fixed in 6.13.6 with commit 5bd98c2df4a0f2e2dcbdf563feb8d348406377b5 Issue introduced in 6.10 with commit a68c7eaa7a8ffdec9287ba1561a668d674c20a13 and fixed in 6.14 with commit d3c7059b6a8600fc62cd863f1ea203b8675e63e1 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-2025-21987 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_ttm.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/d2c9625b0ade41f9917875d88173a0cc802b95fc https://git.kernel.org/stable/c/5bd98c2df4a0f2e2dcbdf563feb8d348406377b5 https://git.kernel.org/stable/c/d3c7059b6a8600fc62cd863f1ea203b8675e63e1