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 107142D97AF for ; Tue, 9 Dec 2025 04:11:06 +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=1765253466; cv=none; b=lg2XwSnHyEz5FBLH1uzgAGjB4BFz3fZudo1OgIXSdTtLBswjAECMv8yaAxnuBWQHdv07qbZ4QTAAH6tPCyzO8cO+cw17QIjwKUg/jHKVIXRFAwuiMdDAp0eKCNLLSqX5r/eEnxvuzbtKqzHBGS0ok2CnkTu1AN7OZQnmCg+qUa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253466; c=relaxed/simple; bh=VzlVNMz6l9QW05mo4jc2xmtw3OeRpSx1Kj7R595PTLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R02zT4eayvh+HR549pz+Rs6b2BshJz8fdtB/aojCno82cSiPTZXcWrnat4Oz0HTSGyuOkiBJKY9qYR1/2inc4qPt0Tfk2Bj/7L3Kf0R1SkNHrUJvyQw09fE9S505sMcvYJsl/imhObAdLYh+bcCv3Dn5H+UzVC0ggiTydZnexp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FJPxkzaL; 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="FJPxkzaL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73BA2C4CEF5; Tue, 9 Dec 2025 04:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253465; bh=VzlVNMz6l9QW05mo4jc2xmtw3OeRpSx1Kj7R595PTLs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=FJPxkzaLN9rEU2Br6711MxrIenxMMc3UhumkmjrL8VtOWlsqLAzIPlGWyD9mpud/W v/vAMx5PN7A2iat1g7tzzYD+DjqLu1FoCeS8HbuRML3wljFJ5A2S0oh/INEmiY5tqU EEhOb0f3XvY0vgecg4iu+kgDL+PIcyhOK3Ym4VEE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40335: drm/amdgpu: validate userq input args Date: Tue, 9 Dec 2025 13:10:17 +0900 Message-ID: <2025120911-CVE-2025-40335-8c1e@gregkh> X-Mailer: git-send-email 2.52.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=1766; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t2V1p3tgTfihi7qt7b4fo7QPwHGGT/KNCuieIKXxIJg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5V7HgsfFnr293fn28/hX0u2c79/HHZ7xXzXHcv1H 2sw6C651hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT+VDDMN/r0v7IQwo7pz84 +j3prPXxGgXfl/8ZFuwvy2rZrzup6C5LaSSbe4fI1/c6OgA= 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 userq input args This will help on validating the userq input args, and rejecting for the invalid userq request at the IOCTLs first place. The Linux kernel CVE team has assigned CVE-2025-40335 to this issue. Affected and fixed versions =========================== Fixed in 6.17.8 with commit bdaa7ad3a5bb606d7dbd5c8627dc7efcb2392eb9 Fixed in 6.18 with commit 219be4711a1ba788bc2a9fafc117139d133e5fea 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-2025-40335 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 drivers/gpu/drm/amd/amdgpu/mes_userqueue.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/bdaa7ad3a5bb606d7dbd5c8627dc7efcb2392eb9 https://git.kernel.org/stable/c/219be4711a1ba788bc2a9fafc117139d133e5fea