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 0ABAF28AAE1 for ; Thu, 10 Jul 2025 07:44:16 +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=1752133456; cv=none; b=ITs0BTV3rM7rc/7VBoSV7OPS8FKlhOepJaa+40KZX+tgY2lmZiQTxn890b1xV1cxC8kiC9CaAQwae5kFRSvSOB6a2r3bE4f/12WfLPY1T7nXzkMQVbt4waf+ARUKW2AAt6eZ0Y62wH8RNlY9XY2TOthJKSeZjGdtKyk44AQDyb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133456; c=relaxed/simple; bh=bgzlrAj9GYd1hg2Xp/+FbMEeDlJQYd7+PVQOStprLC0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZmszdUmv28h200oeiY2wfOLUAsL35ymYfPC5L0WpZUf1+Ozn054Sye76SPFEDcwOxLtRIyPeugbm2ov+ap6Izizo6tyatjpnEDHoyFTURkE67219lv4GOL1PPFd0vilto0uov1F9vtjxc+XLl4iFiQUcq+5RSw7YcWaQeqEvOJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HIeMntdH; 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="HIeMntdH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B5FCC4CEE3; Thu, 10 Jul 2025 07:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133455; bh=bgzlrAj9GYd1hg2Xp/+FbMEeDlJQYd7+PVQOStprLC0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HIeMntdHEcUjj9izeul5aGsCGIuwSyqC8hVWXC5MzT2yUAbT2UirgBIqQqKTcG8yi C/UDpJ73zWcpVcRzicQ5GAvB7+wdHJGC2O9b7O6yNZ/nCBd9ljAc021lRVO6/gFypY JA3wcfDad7u12FKtRnHP0Zgi33QW4+TniC2jiuHs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38309: drm/xe/vm: move xe_svm_init() earlier Date: Thu, 10 Jul 2025 09:42:50 +0200 Message-ID: <2025071014-CVE-2025-38309-9638@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2056; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zJfXjlvLk1E6KDHVUvse780CiEw3USU0b1QWL7dIHdU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5edeqF7++d6RBdmka848lwVfTrp68wvQpd9bM8IksF d8Pv136qiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcqeHYcHVzau69TdcW3Gc Z8ES7gVRs2zP3C5hmM3Kwb57z3frR1H8lisuu3mp8l4rXwwA 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/xe/vm: move xe_svm_init() earlier In xe_vm_close_and_put() we need to be able to call xe_svm_fini(), however during vm creation we can call this on the error path, before having actually initialised the svm state, leading to various splats followed by a fatal NPD. (cherry picked from commit 4f296d77cf49fcb5f90b4674123ad7f3a0676165) The Linux kernel CVE team has assigned CVE-2025-38309 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 6fd979c2f33150e8261d87d2946f94f66f22ddaa and fixed in 6.15.3 with commit f5e6a6a8aa46d44ec7a240766cf3b7dd077718b9 Issue introduced in 6.15 with commit 6fd979c2f33150e8261d87d2946f94f66f22ddaa and fixed in 6.16-rc1 with commit 8cf8cde41ad01150afbd1327ad1942387787f7fd 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-38309 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/xe/xe_vm.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/f5e6a6a8aa46d44ec7a240766cf3b7dd077718b9 https://git.kernel.org/stable/c/8cf8cde41ad01150afbd1327ad1942387787f7fd