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 B62BF2D2384 for ; Tue, 9 Dec 2025 04:11:03 +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=1765253463; cv=none; b=nJRGXbzMfVQTc6/YqwxL4BH68bi11nBUW4PwEUNElwDgmnmEhDHKxpcR5J/VURS4Gdq/pa5ykLoInieIWCM8Ujob9KhKa2YbEQCV96Qv5kfM8MwmwdpczWmgCjNNS1azYxVvH2kBzHJyKEoKlCso3OFIrrJo5NgEJgFuBmnlNJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765253463; c=relaxed/simple; bh=LqgUuNJiLuiPY20H9HadZpjS8s0edA/K+M5bV6YJxY0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rbefprv7mVY26KzpmnCJJ5wrrkeVYEQgFI4RUgjCOpCk+uD2Rnmr8P3zQZf/K9xVgox3wYRGzCPQ7k0Ooo9RsyTCmbGt22sqzs1x+a6TmMOc3DKrTn34A+deFydBobTeAXC2pNxYmOm4r4PzCLtNH3KRX1XVN71LPa3RIa5DQKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZxELdjso; 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="ZxELdjso" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FA43C4CEF5; Tue, 9 Dec 2025 04:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765253463; bh=LqgUuNJiLuiPY20H9HadZpjS8s0edA/K+M5bV6YJxY0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZxELdjsohLQ/4PYU/bqQ1RA7g9Zeta3A6rjjet5Z/UCWdJ+2ejRsSxzQ/TRV6EtJz Km9zE4o/c7MiQc36kpibYACtZx067A9OxJxaqAEoURcyuMJIWim9kpkuJAXeuBftr4 jvqbf2xaaeTI5bQy0PbmO0Y4ArtwGvIHEKN7/P5M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40334: drm/amdgpu: validate userq buffer virtual address and size Date: Tue, 9 Dec 2025 13:10:16 +0900 Message-ID: <2025120910-CVE-2025-40334-82a0@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=1823; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6XcobK2sq+8NnXobyRgnQUKDQjbgBv9zT5P0+xSkzoc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmC5Wd/aeFnV53eK9Eit4+BtX4PWzWmn4uO47/XN2c4 fW6in1SRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkVgLDgiUvLvf/9vvIver+ eesVl2Mine8brGOYK1Oyr//CHbZwcwGB8AUttUqnNt30AgA= 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 buffer virtual address and size It needs to validate the userq object virtual address to determine whether it is residented in a valid vm mapping. The Linux kernel CVE team has assigned CVE-2025-40334 to this issue. Affected and fixed versions =========================== Fixed in 6.17.8 with commit 5a577de86c4a1c67ca405571d6ef84e65c6897d1 Fixed in 6.18 with commit 9e46b8bb0539d7bc9a9e7b3072fa4f6082490392 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-40334 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/amdgpu_userq.h 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/5a577de86c4a1c67ca405571d6ef84e65c6897d1 https://git.kernel.org/stable/c/9e46b8bb0539d7bc9a9e7b3072fa4f6082490392