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 1AE8C34A3CF for ; Thu, 30 Oct 2025 09:48:25 +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=1761817706; cv=none; b=mBn8wudz9f8i2GfNV/A+q45dnO4dCFs057hgejjScR9T79JmYd2EmgUQ5K/1gGJwm78Y1VxkVZ940KdRLAwjy6PNUX+akHy2eMWdm8wTlfBYp65pGNfOJxu6EPfkfWdthS1SE7NSUwYYafoFCzC7y6/SaQe03ldF+GxS+CX5jUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761817706; c=relaxed/simple; bh=uHpA4sh+b+H2ZfAC23gz2KBbPFs0++/D6Ft7TfCvVpU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uNi9mW5LGGVqY1Yi/725iDuNyMCOts4VDTO39uEtagEqP+DkAUcuk3VGVlWkyByDoWVvFpQnCDingsAzytJSdb4+BH8TfFr2NWLYKzX3bjQwmRLHXxR1B5mpQyxrMjCkBDxVPUFXo+gqbc/vL1j9DsZQsg+yCgfAxV4WXOEX5P8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y1gMxcVA; 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="Y1gMxcVA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77662C113D0; Thu, 30 Oct 2025 09:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761817704; bh=uHpA4sh+b+H2ZfAC23gz2KBbPFs0++/D6Ft7TfCvVpU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y1gMxcVAb5nBZE1xgx5aX6n5YRXjSDZSPX25eHIDANiytAF/GaDVQMewPjMDwT06o YlI6LZpJRuwZxDUAH08DDXmGty4+Nnct4sPTu/x4QkAwp30ow4f0buggYqUGX8DfSq cAhQMNW89V7oHsTNEGq3gMafBHiedDX6DVdRVujM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40086: drm/xe: Don't allow evicting of BOs in same VM in array of VM binds Date: Thu, 30 Oct 2025 10:48:13 +0100 Message-ID: <2025103013-CVE-2025-40086-f0f7@gregkh> X-Mailer: git-send-email 2.51.2 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=2253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LBeTpiG+hD24yPz8Rwct0m0qQQ/M3Grcp8+BSSsu5Gs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnMJrGzZhZLbcu2qBEPFv2tHZrt/3BNW9GRw9wKfzRuN KUcOFnTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPx4GRYcMt82sHsjMdlBwrq JxTvWNCSvfzZDob50cdVOuO9TC/vbliybtkiW6+3x2LvAAA= 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: Don't allow evicting of BOs in same VM in array of VM binds An array of VM binds can potentially evict other buffer objects (BOs) within the same VM under certain conditions, which may lead to NULL pointer dereferences later in the bind pipeline. To prevent this, clear the allow_res_evict flag in the xe_bo_validate call. v2: - Invert polarity of no_res_evict (Thomas) - Add comment in code explaining issue (Thomas) (cherry picked from commit 8b9ba8d6d95fe75fed6b0480bb03da4b321bea08) The Linux kernel CVE team has assigned CVE-2025-40086 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.17.5 with commit 5aa0ab0ba7d94549cfe17d6ef7a4f33ba1de8384 Issue introduced in 6.8 with commit dd08ebf6c3525a7ea2186e636df064ea47281987 and fixed in 6.18-rc2 with commit 7ac74613e5f2ef3450f44fd2127198662c2563a9 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-40086 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 drivers/gpu/drm/xe/xe_vm_types.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/5aa0ab0ba7d94549cfe17d6ef7a4f33ba1de8384 https://git.kernel.org/stable/c/7ac74613e5f2ef3450f44fd2127198662c2563a9