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 8FE4E3C3BEF for ; Fri, 1 May 2026 14:18:40 +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=1777645120; cv=none; b=LC08GmcdSraWZht0Q5jdRGEsfPdDQTXBRTwjTb1MZhDzZeS7ITwIJZY9jQ4dzKq2imxFoxaGhYYDsQOuvRqUox5qQbamx6cIO79fhy/m6WiQDta2gdzeEJ26PPpwQn7xKnvS3zhuZ2LKCCGpU+5ZswUr7krJdRSCBD69/5hMHJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645120; c=relaxed/simple; bh=rVILA97s9yLs8/Put6l0DXtKweeKckVGB55E62ri4jc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OQezRl6vJHPde4WY9NqL0jvba9LWggwmEqiiz/XCiRTvHd3Foq5EKo7zL+F9vg/NCYsvVn3SrQuejdvj/iYyKVjEKmzyXGP95WMS1pQYP0fnzfKSTlwVSvX8wfDdqOoMYINcdKRer4cNRjvkI+z4qImrVt8mIzrok93ortDNj84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Xvt/qy9l; 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="Xvt/qy9l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29C88C2BCB4; Fri, 1 May 2026 14:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645120; bh=rVILA97s9yLs8/Put6l0DXtKweeKckVGB55E62ri4jc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Xvt/qy9lT/QQYMlMPdYJJfS+iW2T398wq4SjPgR3nklwKixL1/eUetenLUKUSPt1B gnymgcDyz1t/iPkXbHKgvstuP45YlyPeTI5SZqZhJHb7zdaoCADqxO5B+SElAsAQzA NWqRnyfVepi9JP1FbeDm7ISEYqg7Px2Cvs3/q3bM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31766: drm/amdgpu: validate doorbell_offset in user queue creation Date: Fri, 1 May 2026 16:15:17 +0200 Message-ID: <2026050147-CVE-2026-31766-dd6d@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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LaPciPmIrR5GVRE6qdaGzSxtCnMFs1Q4O+3spBoJYL4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftoafzBPzPvaH69S++fdmKebXJTY3JC/Q82b8bz4p5 Q3HSrOvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRy5UMC44ZFgpnfG4UtPRf eO6d4qX6TxL/JRkWnC2UWOBTdnHSwrbYglkBS6/p3lVZCQA= 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: validate doorbell_offset in user queue creation amdgpu_userq_get_doorbell_index() passes the user-provided doorbell_offset to amdgpu_doorbell_index_on_bar() without bounds checking. An arbitrarily large doorbell_offset can cause the calculated doorbell index to fall outside the allocated doorbell BO, potentially corrupting kernel doorbell space. Validate that doorbell_offset falls within the doorbell BO before computing the BAR index, using u64 arithmetic to prevent overflow. (cherry picked from commit de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec) The Linux kernel CVE team has assigned CVE-2026-31766 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 and fixed in 6.18.22 with commit 3543005a42d7e8e12b21897ef6798541bf7cbcd3 Issue introduced in 6.16 with commit f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 and fixed in 6.19.12 with commit 86b732fbc37ce4fb76cdd4af0fb7e30a6acdbce6 Issue introduced in 6.16 with commit f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 and fixed in 7.0 with commit a018d1819f158991b7308e4f74609c6c029b670c 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-31766 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_userq.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/3543005a42d7e8e12b21897ef6798541bf7cbcd3 https://git.kernel.org/stable/c/86b732fbc37ce4fb76cdd4af0fb7e30a6acdbce6 https://git.kernel.org/stable/c/a018d1819f158991b7308e4f74609c6c029b670c