From mboxrd@z Thu Jan 1 00:00:00 1970 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 4294C3749FB for ; Sat, 15 Aug 2026 06:24: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=1786775060; cv=none; b=stLjH5qtOrkvq0r4XM0zeM93ajHM/DS2IY5B+RgoY+ordWNMixVO94IB03sp3L54pz20funtP4xhpBm4wrwJ62RWdUW1ub4vcod9iEEXhNtVXrsNz1IVKeHiDNyCjb1z0im5ZsD/99hc9sjTwy8hOevRtGKypXuLe55TiWLl7jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775060; c=relaxed/simple; bh=ugKaQJWKUFszxNa4cGWLgHlJ0AtOFyN8lG7zjTtwcR8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j2A5zpd0j8Zk5yEO7zy5g+kEWAg0XSbpPiR9B0u3uGI7+ib4Uzi1kH+KOEKSktM1x3lqkI+Q3XAcf4EBVhpyL6W0z7FQ7rcEkkKnPFSnSsBCYeoX8N6E7Iv+ghZBQ77qcToswPctbb9l7z4Hu53/CcdURsGNlGfmlLQvT+rO8QA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=syGUutw0; 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="syGUutw0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96D391F000E9; Sat, 15 Aug 2026 06:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775059; bh=8b8hzB21ofS1jawhZ6naD14AvL9H+qKldPoEO4ByNSE=; h=From:To:Cc:Subject:Date:Reply-To; b=syGUutw0BirwFf1nKtDe1JH3MFPfq0ko0D0vjRa+lwBxrGXwvk216I84Gj6t+Grx9 3+Ut4jmJxkVaAnh/Ehs6196Tq3VhDU7Z0bcy65tEVYBjeyr3+rj0zbClENWCeOHk3a bZnukZ+m2ukpC394mXFTTdGwVM+zG6Pt0IYK7VyQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72359: drm/xe: fix NPD in bo_meminfo() Date: Sat, 15 Aug 2026 15:07:18 +0900 Message-ID: <2026081513-CVE-2026-72359-c9fb@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=2733; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w+WOZOecuTah245tUWZd6hqlQIebljGvIaF7xb5rb8k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDE/v9Sx/oVh2aJ1AgfqP1uWzvmkq5sa/6l4bcY5n8 ymrfaY+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRF3wM87RFjmyVkfbk36ri 47lnNV/c24VWCxnmh8+dVTHv/5Gkjwmvz0+p6npiL50SCAA= 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: fix NPD in bo_meminfo() When a buffer object is purged, its ttm.resource is set to NULL via the TTM pipeline gutting flow. However, the BO remains in the client's object list until userspace explicitly closes the GEM handle. If memory stats are queried during this time, accessing bo->ttm.resource->mem_type will result in a NULL pointer dereference. Fix this by safely skipping purged BOs in bo_meminfo, as they no longer consume any memory. User is getting NPD on device resume, and possible theory is that in bo_move(), if we need to evict something to SYSTEM to save the CCS state, but the BO is marked as dontneed, this won't trigger a move but will nuke the pages, leaving us with a NULL bo resource. And the meminfo() doesn't look ready to handle a NULL resource. v2 (Sashiko): - There could potentially be other cases where we might end up with a NULL resource, so make this a general NULL check for now. (cherry picked from commit c9a8e7daa0afe3161111e27fd92176e608c7f186) The Linux kernel CVE team has assigned CVE-2026-72359 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit ad9843aac91a1eda12912a4922042ea04cfc29dc and fixed in 7.1.5 with commit 5ff2212f0e0779b0b0cbf91fbf970144107c4257 Issue introduced in 7.1 with commit ad9843aac91a1eda12912a4922042ea04cfc29dc and fixed in 7.2-rc2 with commit b5c55015d4164a0f206bcdcf2985da948b3c7837 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-72359 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_drm_client.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/5ff2212f0e0779b0b0cbf91fbf970144107c4257 https://git.kernel.org/stable/c/b5c55015d4164a0f206bcdcf2985da948b3c7837