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 676655B685 for ; Wed, 6 Mar 2024 06:46:26 +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=1709707586; cv=none; b=qs/tfAOsX7fhUCmZkntJwD3rGU3IomZ1S0E1JPczLTL/03frpr2LFOAUMIT5IYREBD9s45zY3MJY4KLStWT37Pv6boyhhWTZrOSJq7grQgMyp0hq7PpZDz9gRuHsZh4ZhNZUAoGa1a/EFBYcVVo/04lBB229D5r44pLXhAe13tA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709707586; c=relaxed/simple; bh=fa01ZOykihvzCemZSxcs9qp8j07YWK7JMWNOzObpkQk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JoUP5B2nV6qvNMjb7mTnRE7aO+dWWZkMvPBmZZ2Yf9OrYTwxgxSMQwlAikf4MulOw7N5JvQUw0QKnXkgzX1zqLQZZBEEKt7gC28rcHjblqbx2FUO8pxvfUII5DXnFWJWpF6fib1DCVmwHjFnD6LeLFYtQuGBsbSEfOuAzC7T6D4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KeLD1NWm; 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="KeLD1NWm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E27B9C43390; Wed, 6 Mar 2024 06:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709707586; bh=fa01ZOykihvzCemZSxcs9qp8j07YWK7JMWNOzObpkQk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KeLD1NWmQeMWVo/kGgiXdYn4vs3A7Yldozww4ZBjPxsYktPQ7dTXSDM0xuUx/uPIw hoXdqxOvF5RDFkPDKajIL14yTbVJg8ICLAA7UEFzdNQFUhyMbAu59N6fzHBF/znqQY Ltxt/r5Ggy/Xcwp+KJ4+dIaDgGut4FqEj3Q0BBDA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52585: drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper() Date: Wed, 6 Mar 2024 06:45:43 +0000 Message-ID: <2024030643-CVE-2023-52585-7dbc@gregkh> X-Mailer: git-send-email 2.44.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=1815; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fa01ZOykihvzCemZSxcs9qp8j07YWK7JMWNOzObpkQk=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkvBMU1X4UdiQoyznknfGmquN2X4thdZisKL8yLuB20z +SW237xjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIShfDLOaEb+dm8y+Qnr+X 17N0i92T/0kpxgwLjnuun9O6jPnAujXcN6NMuu+Kuh3eBgA= 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: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper() Return invalid error code -EINVAL for invalid block id. Fixes the below: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1183 amdgpu_ras_query_error_status_helper() error: we previously assumed 'info' could be null (see line 1176) The Linux kernel CVE team has assigned CVE-2023-52585 to this issue. Affected and fixed versions =========================== Fixed in 6.7.4 with commit 195a6289282e Fixed in 6.8-rc1 with commit b8d55a90fd55 Please see https://www.kernel.org or 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-2023-52585 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_ras.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/195a6289282e039024ad30ba66e6f94a4d0fbe49 https://git.kernel.org/stable/c/b8d55a90fd55b767c25687747e2b24abd1ef8680