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 1A0943B19A5 for ; Thu, 28 May 2026 09:43:59 +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=1779961441; cv=none; b=WkSlAMqWDx0BMfMA9ATB/BzZ8DRq3iqzKKilQMQH5RIDm/z0zWA+bb0o1nmuVuQvJLLYMK99rnrnnj1F+FfgGEsEd7VE2Zqm9FniK0cfoz0GRX1zLoYqhqIv7R6lPsHoCuv16n4ggHWV6yW4ffy2GqTMhHLM06jdNJx6Gq/Hi5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961441; c=relaxed/simple; bh=dNDsKcpY13WaxJjwf3N5TPya0YLWHbmXMFWmahxL1Gg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ETwGzWTeC/d7xmH4hD3ActwvlmC1JHyyvV5ug5yurq8fGJiX6Lvx1skTgxWjvk/lHFPKkCy1fxAwTU+H38sRy+1hGhOIHWB80G44fCuIJPVmVfUhOZUO/N4+f12/bfRVGSyrF/1mz6SrJmCMGuO4mnKmhMzthaodQ4MNkh0h1aE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GUmrb1aL; 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="GUmrb1aL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44A9F1F000E9; Thu, 28 May 2026 09:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961439; bh=iUoUOTuQyyfnhJOVKZ+aPronkC3Mqp9wO5UKEDRGmSk=; h=From:To:Cc:Subject:Date:Reply-To; b=GUmrb1aL6C68VCb/eh3Ik2wfgqfcpXhFeG/yh+tKUkOSnoye+lBjth8qgpJisM3IP y5MPqgKlofS5YQvR55chPATMiDMVTVOlOFwbPYBrcMGTGlYiDwLNw+5rrywdB5F1h+ UD37+BnXDPJtkryLfN1M1kv+WwPIugrWAf44m7yA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46220: drm/amdgpu/sdma4: replace BUG_ON with WARN_ON in fence emission Date: Thu, 28 May 2026 11:40:55 +0200 Message-ID: <2026052837-CVE-2026-46220-457f@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=3247; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g9Pc9KHDekJqp5kOC99HX6/HTnNqBOWz7sp1FTyxVLs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSvFPVW1/4mypN/Lt+yx07p/eHpZSm9RZu+Zl1xJXJt bxwg4xoRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkYRzD/PSJtWze79d4yHec cnV50PNsUmkoD8NcIdaipmThBcu/O3y0aLjqn/rwR+hbAA== 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/sdma4: replace BUG_ON with WARN_ON in fence emission sdma_v4_0_ring_emit_fence() contains two BUG_ON(addr & 0x3) assertions that verify fence writeback addresses are dword-aligned. These assertions can be reached from unprivileged userspace via crafted DRM_IOCTL_AMDGPU_CS submissions, causing a fatal kernel panic in a scheduler worker thread. Replace both BUG_ON() calls with WARN_ON() to log the condition without crashing the kernel. A misaligned fence address at this point indicates a driver bug, but crashing the kernel is never the correct response when the assertion is reachable from userspace. The CS IOCTL path is the correct place to filter invalid submissions; the ring emission callback is too late to do anything about it. (cherry picked from commit b90250bd933afd1ba94d86d6b13821997b22b18e) The Linux kernel CVE team has assigned CVE-2026-46220 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 2130f89ced2cc0f5113bb427c1cbc7a4ca7729c7 and fixed in 6.6.140 with commit 4f7ca00fa91daf0795ec6b3b130c5ebba1f155fe Issue introduced in 4.12 with commit 2130f89ced2cc0f5113bb427c1cbc7a4ca7729c7 and fixed in 6.12.90 with commit d331fb241a4602253976ddd65144a8ba2b05665d Issue introduced in 4.12 with commit 2130f89ced2cc0f5113bb427c1cbc7a4ca7729c7 and fixed in 6.18.32 with commit 0b91ea46bb68abf98a082bf239092253bbd6aaa2 Issue introduced in 4.12 with commit 2130f89ced2cc0f5113bb427c1cbc7a4ca7729c7 and fixed in 7.0.9 with commit a4fd82fb0757c180bf622907397c528b89a827b2 Issue introduced in 4.12 with commit 2130f89ced2cc0f5113bb427c1cbc7a4ca7729c7 and fixed in 7.1-rc3 with commit 78d2e624fa073c14970aa097adcf3ea31c157a66 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-46220 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/4f7ca00fa91daf0795ec6b3b130c5ebba1f155fe https://git.kernel.org/stable/c/d331fb241a4602253976ddd65144a8ba2b05665d https://git.kernel.org/stable/c/0b91ea46bb68abf98a082bf239092253bbd6aaa2 https://git.kernel.org/stable/c/a4fd82fb0757c180bf622907397c528b89a827b2 https://git.kernel.org/stable/c/78d2e624fa073c14970aa097adcf3ea31c157a66