Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 066DC3B0ADB for ; Thu, 28 May 2026 09:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961435; cv=none; b=g7ZyHZyVrPYSGBjkKT5e1rUAqv6AXoi9ZRSRGammHDY9f/iy1RCUsT8/5W4x3zy7RBCYRMNWe/myXeym89BcJ5Ua9YaAlAJPatwcJkgkoDkwlB14qnmskJfMs755xyIevJuGh4Jt10iioagdyweOBfjbRC9vmDH5zo3ewHveirU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961435; c=relaxed/simple; bh=yU0HghUmzOG1j3Br7yv1zOysFWjNw3xJME7ZoRLh6Ug=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X0K0A1xO/06FCnPI3vAXnfyyLdWm+TM9GEfm9Xah+3wsAm6GBBPoBYWuzqpjV40/aZng8+46xnfnnEZT0wZFoezM+I/gEJPR5FMIsH/C66TMrr8A3wbHT7hw2NULjDmsqIoBwoPnf3HEhf5op60WIwKBwquyrN83Q3TSc8WUcUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RKAndmgc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RKAndmgc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37D4B1F000E9; Thu, 28 May 2026 09:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961433; bh=DdmXPVPvY7KiApLmHUbKkAOvn1R6IVBXwL4eA8bWSwg=; h=From:To:Cc:Subject:Date:Reply-To; b=RKAndmgcaSlPABdcpkdPSURwZBRJGu8FQmabQ0WrQ9psOfOfS4jZbtfGZhnqx9zfa mh3SO/YZqQ8beGum8K8BiVhY+9mZ9qe5nHG1v0ZdTPWT+UFpNaAgy86UE3DyB3CqFR zrShwEtnEUkRZ24bzDJAboylhh149rNBSmFHuoug= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46218: drm/amdgpu: Add bounds checking to ib_{get,set}_value Date: Thu, 28 May 2026 11:40:53 +0200 Message-ID: <2026052836-CVE-2026-46218-a849@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2351; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qr0u/1bYwCTpcNCMdkW8HqcNyJeF7MaHqZHnnCGSkBg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSvFPyeqbevFM+NXu6jsWhRt+3l4+rBxuJXWeTOvut3 Y1/fbdeRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkximGBRsZn8dvUdT1159Q 57vQ71ot1/7EuwzznSYZbOtbfLzQ/qopi0L/gnsxZxjqAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Add bounds checking to ib_{get,set}_value The uvd/vce/vcn code accesses the IB at predefined offsets without checking that the IB is large enough. Check the bounds here. The caller is responsible for making sure it can handle arbitrary return values. Also make the idx a uint32_t to prevent overflows causing the condition to fail. The Linux kernel CVE team has assigned CVE-2026-46218 to this issue. Affected and fixed versions =========================== Fixed in 6.6.140 with commit 0fb5cb556b249b2b64c0f818136c4c3e838ef53f Fixed in 6.12.90 with commit a853178d23e774adfe3a35073c375b04b3b20f7d Fixed in 6.18.32 with commit fec8b11b55e53ff51a741e56894fe331a516f5c6 Fixed in 7.0.9 with commit ee26fcf7c5cf131f0b6a732faa27d79ec61b8ec7 Fixed in 7.1-rc1 with commit 66085e206431ef88ce36f53c1f53d570790ccc9e 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-2026-46218 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_ring.h 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/0fb5cb556b249b2b64c0f818136c4c3e838ef53f https://git.kernel.org/stable/c/a853178d23e774adfe3a35073c375b04b3b20f7d https://git.kernel.org/stable/c/fec8b11b55e53ff51a741e56894fe331a516f5c6 https://git.kernel.org/stable/c/ee26fcf7c5cf131f0b6a732faa27d79ec61b8ec7 https://git.kernel.org/stable/c/66085e206431ef88ce36f53c1f53d570790ccc9e