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 264283DB653 for ; Fri, 8 May 2026 14:23:56 +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=1778250236; cv=none; b=Ar3fzm/ggxo7AUkrHQoqgX9rlRT/b2QNdbsA+4YJxYzFU1kT3tW4h4SF15KRzDZnfKIl3hREUeSv50RDjelna85Aa9L1WhzKnxJdkJCQQqiTZfGgFo8FBzXr4HD5itMA8pspbPdAsQVU+26mGMhmMAPfc9naQLPjTiCLZXHGhts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250236; c=relaxed/simple; bh=LiBeuMaUyHad0DyZx7exqe8DfxTQm37Hs5M/rTSNLYs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CWcz98lNLs3zWKRrS9oDBGK0u0JwKk7F7rUE9Q/zImicwr+eHWuDQViGRzMk7h2LAr4SpXzTN7R28+Ue4o8WJrx/LejEO0fIi1FWYSZAtEx4zH/iOGCbscO6LSEAn/d3T4Q8lgO7kxv8RFwMVZZ78UuwKqPKM02bnpL/a4g0Lv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bLjmLCDp; 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="bLjmLCDp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B035AC2BCB0; Fri, 8 May 2026 14:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778250236; bh=LiBeuMaUyHad0DyZx7exqe8DfxTQm37Hs5M/rTSNLYs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=bLjmLCDpl7g0wEW8jEC3bWIAG+ws2bFNFHn7T+urtWbtZfyAX9aDI7rHwDpNkVw9a PUZ/RfJtHIbvnqk+FP9ZSgyJ/85PI/NV223vP1OO9FCZCFAZ8nUaPSWSEzHBWfRCzw pFIWwyWhnJsceDWFLpkqtTCsvxJ9zlC78eSFFH0M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43398: drm/amdgpu: add upper bound check on user inputs in wait ioctl Date: Fri, 8 May 2026 16:22:07 +0200 Message-ID: <2026050839-CVE-2026-43398-9106@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=2109; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cS0Hj4NASkFSoxA2kEaVya5lk4RV2+q22ngW93KrQdw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/Pxa/FPWc/ZVVR+K9uGB6WnC++t+f6V9sNJYfPRm4d PnXU3OKOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi1s8ZFpxQX3nY12Heys0r Z7t2pzw9+sOq5BPD/IoCrWnMhcVRU7eXTZg8tcQ1MbgiHgA= 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 upper bound check on user inputs in wait ioctl Huge input values in amdgpu_userq_wait_ioctl can lead to a OOM and could be exploited. So check these input value against AMDGPU_USERQ_MAX_HANDLES which is big enough value for genuine use cases and could potentially avoid OOM. v2: squash in Srini's fix (cherry picked from commit fcec012c664247531aed3e662f4280ff804d1476) The Linux kernel CVE team has assigned CVE-2026-43398 to this issue. Affected and fixed versions =========================== Fixed in 6.18.19 with commit b1d10508da559da2e0ca9cca6505094a7df948e1 Fixed in 6.19.9 with commit 3cd93bc695b3456f26f5ed52753d9071da26202a Fixed in 7.0 with commit 64ac7c09fc44985ec9bb6a9db740899fa40ca613 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-43398 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_fence.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/b1d10508da559da2e0ca9cca6505094a7df948e1 https://git.kernel.org/stable/c/3cd93bc695b3456f26f5ed52753d9071da26202a https://git.kernel.org/stable/c/64ac7c09fc44985ec9bb6a9db740899fa40ca613