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 9350C3BB699 for ; Mon, 8 Jun 2026 15:41:52 +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=1780933313; cv=none; b=ClDUrkb1Ev0BXm0qP33oEyuEn9GtIvp2kf2J1K31SWaBxVf+KqC6k1CQ1JaJdCGY+LSVrwnIARVph3xMREdXaKGoQFyxQwLEmsk66M/HRos0ukx/I15/633gTN/hki3BzY6LpydLuXJxfM7wsDJDjg/8K13UqMI4eta1e8tmA0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780933313; c=relaxed/simple; bh=s131w8YUdaLBxQYHxHjX1P3Ti9FBfIIUaKGgEUCUUHI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GZKLwCVJ5IDOt8QQYqeOsLMtz3fknWoGnBr7zoG59KKomwhyK+3eO3YhniHGCzwrx+PdWpyY+VZx6CLDHkabwDTCP8ZKXo/APl0PgZz6bkuJoEPHMu5i54HqFST+weLb9QxPiG8A71a3N2BX6uER1X5Ry0tvxP5meHKvGcki8V8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZCYI2BZI; 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="ZCYI2BZI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D80D31F00893; Mon, 8 Jun 2026 15:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780933312; bh=WRXWMH4YqR7QNmE4A9gPKca03Omv9+hlIpuJ5Wtkysk=; h=From:To:Cc:Subject:Date:Reply-To; b=ZCYI2BZIj9lY+Mn4UyRRh2ISSyvs2yBRbIKykRJ/x+jmpc7MqG24fIjlhdrgSgTrZ Nbsjq94o1V0GxSppBWn19+1qlJfOqJaiC0bdLy+zp7RzifQ1z2uZ1v55w8cRUGzr3D 2eicLrBpw9R7LbpsmkLSoxVQAdjSOpidTwSEbrbE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46276: drm/amdgpu: fix zero-size GDS range init on RDNA4 Date: Mon, 8 Jun 2026 17:40:40 +0200 Message-ID: <2026060839-CVE-2026-46276-1e60@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=3732; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2XYlBYpOLKJXDaC0hLy7fyUp1JxeAh/nswMewlni6HI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlqj8rr/x9Xvb7f8ediv/bluVN6TCcxzS7pvv7DkMnBw +QG17MTHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR4KkM87S4dzvciLj9rWen nubix3smvZQMaWWY78BaXaLX8O3ddmu7L3qsc+efaufhBQA= 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: fix zero-size GDS range init on RDNA4 RDNA4 (GFX 12) hardware removes the GDS, GWS, and OA on-chip memory resources. The gfx_v12_0 initialisation code correctly leaves adev->gds.gds_size, adev->gds.gws_size, and adev->gds.oa_size at zero to reflect this. amdgpu_ttm_init() unconditionally calls amdgpu_ttm_init_on_chip() for each of these resources regardless of size. When the size is zero, amdgpu_ttm_init_on_chip() forwards the call to ttm_range_man_init(), which calls drm_mm_init(mm, 0, 0). drm_mm_init() immediately fires DRM_MM_BUG_ON(start + size <= start) -- trivially true when size is zero -- crashing the kernel during modprobe of amdgpu on an RX 9070 XT. Guard against this by returning 0 early from amdgpu_ttm_init_on_chip() when size_in_page is zero. This skips TTM resource manager registration for hardware resources that are absent, without affecting any other GPU type. DRM_MM_BUG_ON() only asserts if CONFIG_DRM_DEBUG_MM is enabled in the kernel config. This is apparently rarely enabled as these chips have been in the market for over a year and this issue was only reported now. Oops-Analysis: http://oops.fenrus.org/reports/bugzilla.korg/221376/report.html (cherry picked from commit 5719ce5865279cad4fd5f01011fe037168503f2d) The Linux kernel CVE team has assigned CVE-2026-46276 to this issue. Affected and fixed versions =========================== Fixed in 5.10.258 with commit 1f5d33e7b0a9a2a140f46e22fb52eede323c5946 Fixed in 5.15.209 with commit 9bc925759c05feae7dfa9570e77131d54729c8ea Fixed in 6.1.175 with commit 36f9602fb22ede69fcc8b422be0cf8105bf655ad Fixed in 6.6.140 with commit be0376affcafa0bbb371bb501579a825eae32281 Fixed in 6.12.86 with commit 0e21db1a77967bc15df662efdca8ea8a61d124ea Fixed in 6.18.27 with commit 30c000a49094ec568c9b51b7421f7a4a3f0b0298 Fixed in 7.0.4 with commit 3e26c76891ab99fa173e9c501119fbb5c9f4600f Fixed in 7.1-rc2 with commit 095a8b0ad3c3b5cdc3850d961adb8a8f735220bb 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-46276 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/1f5d33e7b0a9a2a140f46e22fb52eede323c5946 https://git.kernel.org/stable/c/9bc925759c05feae7dfa9570e77131d54729c8ea https://git.kernel.org/stable/c/36f9602fb22ede69fcc8b422be0cf8105bf655ad https://git.kernel.org/stable/c/be0376affcafa0bbb371bb501579a825eae32281 https://git.kernel.org/stable/c/0e21db1a77967bc15df662efdca8ea8a61d124ea https://git.kernel.org/stable/c/30c000a49094ec568c9b51b7421f7a4a3f0b0298 https://git.kernel.org/stable/c/3e26c76891ab99fa173e9c501119fbb5c9f4600f https://git.kernel.org/stable/c/095a8b0ad3c3b5cdc3850d961adb8a8f735220bb