From mboxrd@z Thu Jan 1 00:00:00 1970 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 E4B9B39FD6 for ; Tue, 25 Jun 2024 14:29:15 +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=1719325756; cv=none; b=cmJ8UBblMhIVAIqist+v9NKinP6DKb+waudPZ7KdNm1lP9hBsnCM//G1ZL4PHKf6aQo2Db1HrWhqoAnwWZ96A1RnlDnqKQCgC4qmPgxxw0cP9eiEdlkLetyiRcwU5wqoGUUcFBrn9P/08ZYGsMxjKnlOMGbiH8jxtTSGiny1mcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325756; c=relaxed/simple; bh=0w7kbhm5bcN9Zq1dqjhQduiQnXB6vyqRsvijQ21D/T4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hxEz7tBC/IGK4xEmPPkGn7OTATjZMgw0JVUbcjpbPqht3t/vf7hG3FpdXxm8Va7Kn7djlrjbssSu7X6sjzR34G8yi6XGlBqPsZurxTvxV8RFHDRN/esyMFkllEVuraPlJhH2W/X5JpBOo/drRxQj3Jpsu5eVjaLQ1tunsstoOMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Lb/15TQa; 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="Lb/15TQa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A616C32781; Tue, 25 Jun 2024 14:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719325755; bh=0w7kbhm5bcN9Zq1dqjhQduiQnXB6vyqRsvijQ21D/T4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Lb/15TQaaYjU5rHyTOAgDJ2EowDIGyog+t8IjiB/RpIlWnKVwC4TGha5/nM/Nrbe5 5z59+KseoqGim9yponml/oIyFoRv5ud8K5u0NuKsG+V42Ah2I/jXKEB+9rh40aayjU xUFfg8j1iDyIOORdgb209KpGVy7NdQXhe3e6XBG0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds Date: Tue, 25 Jun 2024 16:29:04 +0200 Message-ID: <2024062501-CVE-2024-39471-3dee@gregkh> X-Mailer: git-send-email 2.45.2 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=2282; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0w7kbhm5bcN9Zq1dqjhQduiQnXB6vyqRsvijQ21D/T4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlVV3Tfn7nc/Mucx6jq7w13PpW3p36dPGTwncVcRInVe +602wwrO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAirTcZZjLe45kRJXpKyiEv aErd3j6xbRsjzBnmu7loTJvt2/b57Le+O3PZOb5sNox0AwA= 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: add error handle to avoid out-of-bounds if the sdma_v4_0_irq_id_to_seq return -EINVAL, the process should be stop to avoid out-of-bounds read, so directly return -EINVAL. The Linux kernel CVE team has assigned CVE-2024-39471 to this issue. Affected and fixed versions =========================== Fixed in 5.4.278 with commit 5594971e0276 Fixed in 5.10.219 with commit 8112fa72b7f1 Fixed in 5.15.161 with commit ea906e9ac61e Fixed in 6.1.94 with commit 011552f29f20 Fixed in 6.6.34 with commit 5b0a3dc3e878 Fixed in 6.9.5 with commit 0964c84b93db Fixed in 6.10-rc1 with commit 8b2faf1a4f3b 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-39471 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/sdma_v4_0.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/5594971e02764aa1c8210ffb838cb4e7897716e8 https://git.kernel.org/stable/c/8112fa72b7f139052843ff484130d6f97e9f052f https://git.kernel.org/stable/c/ea906e9ac61e3152bef63597f2d9f4a812fc346a https://git.kernel.org/stable/c/011552f29f20842c9a7a21bffe1f6a2d6457ba46 https://git.kernel.org/stable/c/5b0a3dc3e87821acb80e841b464d335aff242691 https://git.kernel.org/stable/c/0964c84b93db7fbf74f357c1e20957850e092db3 https://git.kernel.org/stable/c/8b2faf1a4f3b6c748c0da36cda865a226534d520