Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 663C33D093F for ; Fri, 28 Aug 2026 06:49:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899760; cv=none; b=Xuv92/qlcmMHhSCOgqS9ewPyT+O5u0PLG9wdEcrGRerPfBhGucxTlZsWVx0iirlOYpqpU/xq+C5CNOnpoMGVNfNpY20CJ/GVpno9ULwu0C7KRS6CTtcGhDlDnaaqUbrwXGgjxODdlzWXpfhYYxa2wyPMB9R2pFKC21+YHq5MOuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899760; c=relaxed/simple; bh=PBfLhIBxZN9lDBlTMYlgpR4CJcOKhJuIk/MXTZ3T4ws=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aCKGf3XFcq9qWbBl/SF/bUdcyrYZ+Uwq05rqsRuU8+5yI1m7iqhkbYIhR7NzQOgYXeYVICvj+q8wPop7dLuNJTG9TSzWK/zaFtiJ8NYHiVB7e3QpN+5LcWhUY7KYVOYenim0Pc8ckCko9cbU+CbLJO6iKRgzyV4yYS0RROKfKcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FqxaIw1D; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FqxaIw1D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71D861F000E9; Fri, 28 Aug 2026 06:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899759; bh=uFhUMeBXgfCi+RGXo8DBa/cI9eUdHTwPrniORccR2F0=; h=From:To:Cc:Subject:Date:Reply-To; b=FqxaIw1DEVvyhcggYcmblWYzxahPUGyTKnP1BUA3wL5fgBnGfKVCoGOVMqQT3AHHc aCizIzk66VWDywJdA8/Z/DEyH8wJVPJhY2KNVu0Fsv9Qd5EEPDlMk7UhgtyZnwBl6G 5B3iJW62MVyePKMkDAyYexebGnkxv6nNUvA06Hkg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80606: drm/xe/userptr: Hold notifier_lock for write on inject test path Date: Fri, 28 Aug 2026 08:48:43 +0200 Message-ID: <2026082833-CVE-2026-80606-9912@gregkh> X-Mailer: git-send-email 2.55.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=3439; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2SjPrwjzIbQW5clHGZ+CNMsAEKQ3haMTLP1W2h2dZFg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9R03aApOeNLbcsHs4eXDzT9aJ7T9uW9X+v2j8GK1S efPs7N87ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJLItiWLCT5dOmP9900mx8 JykIM0oK1TaV+TMsWOK29wDn2VMBs7RsYs+JPlnrdDetCwA= 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/userptr: Hold notifier_lock for write on inject test path When CONFIG_DRM_XE_USERPTR_INVAL_INJECT=y, xe_pt_svm_userptr_pre_commit() runs vma_check_userptr() with the svm notifier_lock taken for read. The test injection causes vma_check_userptr() to call xe_vma_userptr_force_invalidate(), which feeds into xe_vma_userptr_do_inval() with drm_gpusvm_ctx.in_notifier=true. That flag tells drm_gpusvm_unmap_pages() the caller already holds notifier_lock for write and only asserts the mode. Because the caller actually holds it for read, the assertion fires: WARNING: drivers/gpu/drm/drm_gpusvm.c:1669 at \ drm_gpusvm_unmap_pages+0xd4/0x130 [drm_gpusvm_helper] Call Trace: xe_vma_userptr_do_inval+0x40d/0xfd0 [xe] xe_vma_userptr_invalidate_pass1+0x3e6/0x8d0 [xe] xe_vma_userptr_force_invalidate+0xde/0x290 [xe] vma_check_userptr.constprop.0+0x1c6/0x220 [xe] xe_pt_svm_userptr_pre_commit+0x6a3/0xc60 [xe] ... xe_vm_bind_ioctl+0x3a0a/0x4480 [xe] Acquire notifier_lock for write in pre-commit when the inject Kconfig is enabled, via new helpers xe_pt_svm_userptr_notifier_lock()/_unlock(). Rename xe_svm_assert_held_read() to xe_svm_assert_held_read_or_inject_write() so it asserts the correct mode under each build configuration. Production builds (CONFIG_DRM_XE_USERPTR_INVAL_INJECT=n) keep the existing read-mode behavior bit-for-bit. (cherry picked from commit 80ccbd97ffee8ad2e73167d826fe7be548364365) The Linux kernel CVE team has assigned CVE-2026-80606 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 9e978741488261e117bb50e5dfcf8e4080990958 and fixed in 6.18.40 with commit f9a9abd7bbdab3dfe1b1155e1457dc02b5e14ea5 Issue introduced in 6.18 with commit 9e978741488261e117bb50e5dfcf8e4080990958 and fixed in 7.1.5 with commit ab9ea5c943c7e780124e75b7ffad9f1c752b2579 Issue introduced in 6.18 with commit 9e978741488261e117bb50e5dfcf8e4080990958 and fixed in 7.2 with commit dca6e08c923a44d2d66b955e03dd57a3a38c2b94 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-80606 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_pt.c drivers/gpu/drm/xe/xe_svm.h 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/f9a9abd7bbdab3dfe1b1155e1457dc02b5e14ea5 https://git.kernel.org/stable/c/ab9ea5c943c7e780124e75b7ffad9f1c752b2579 https://git.kernel.org/stable/c/dca6e08c923a44d2d66b955e03dd57a3a38c2b94