Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758287; b=QvpExSxUyT5kqOKVeuSnnJ0hGmHgwCNIpeO3gDSwVF+rgE1WIQ1/C5hHCRLc1AxcmUMi 8ceX/yKnViARLLHjTW58YAXTXkMIBpxsh1U+2+/i2HRUJZ2qq5IVaWBpnH6V3htFxPByX SUE4h8MMN4OVDvJEbKKbxhuLyluq/o54OL2z4dp/IHfOILN8lQ9SamlCkvga7OnM9qZ5v mJunTji3EwhYoOmsINZD5pGiWHJfNToxSdBV6/yCvdbxJk4iARipIvcrElctjKb5UjCTj jyVGq4U2SwGfuVUMoFJ/sxkiNLmcsSkMlfvbNZ7ujqy3dkbKiV7QXFkXWlWR6Ye7jUA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758287; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=7YP9TQfQTpCziDNMSJP7Yb4l3ad2eMCG7FnWmFVzvrM=; b=GP2HUoUsM7rBdPdo84UhEi7oh0KbaySHZk4f/bzqO2MKZKWvcuPbarfLFgf9nfAvst40 BBnCJeSuZMO3uvx6EdOSDtcGGZ+jhQCTcFupl0yBQ5s4E9tb7MdCXliC5qt66G+bes1KW 7wOu0b57GKF1fvWf6mZZ3GIzomWp+KF802Pv6Jjuq6RfFi3FBTiqqOQkzbjyZJrxlU0gJ geM3MsKlqpAehkWwyApqkRQb0JLSiIqsOo+sY8kZkaIux5pOKUpzxrwB+YjA+zhPOXVkE o2hi+DiKrZiD9k8KU7Z5dysjUdm0VugxI9MIvQKa6sL35DOT/xbk4VPFFXjid2d86wQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tMPGTfW9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33822606A31A for ; Fri, 23 Oct 2026 12:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tMPGTfW9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3E751F01828; Fri, 23 Oct 2026 12:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758287; bh=7YP9TQfQTpCziDNMSJP7Yb4l3ad2eMCG7FnWmFVzvrM=; h=From:To:Cc:Subject:Date:Reply-To; b=tMPGTfW9V9ZQCwtRC3xkjamVecvdD2rgWbSQEzHKyPS2GHUjSp0NUSjrszcoRV6s5 0Nc2MlTQJO8b7wR/CtIEFi9k/omSZ1NkMyR+ON65DIHBLpWRplCJueb2PQsaY4A0su w6wBiZzsXqlBN2QHmrX6UqKf2yhbDXzYk4kX5xqI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98939: x86/mm: Drop unnecessary PMD page copy when freeing Date: Fri, 23 Oct 2026 14:11:46 +0200 Message-ID: <2026102339-CVE-2026-98939-8b16@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4043; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+RtBtZ+lc+5sUJuElBPTJbcQWLjQOKl2lu5AdqTok/0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3/X5H+94qUSopYkmbOeeScbGekG6BbxOn2LfZ+xbYv rXYqOvfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPhnM6wYNnyywFFO2ZUqOvv Yrhxzk/z5jLdAIb5Kas+7e2fuWyN2I3YDdsELHxz93ysBwA= 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: x86/mm: Drop unnecessary PMD page copy when freeing On a box with a discrete GPU, lockdep reports a possible deadlock as soon as kswapd shrinks the TTM page pool. The immediate cause is an x86 commit that added an mmap_read_lock() to kernel page protection munging code. The huge vmap code holds the same lock over a GFP_KERNEL allocation, which is a no-no now that reclaim can take it. That allocation is in a page table *free* path and ends up being for dubious purposes[1]. Basically, it tries to avoid hardware setting Accessed=1 in page table entries that are unreachable by the hardware, a non-issue. Remove the PMD copy. Detach the original PMD page at the PUD, flush the mid-level caches, and free the PTE tables straight from the detached PMD page. With no allocation left, the locking issue is gone. Lockdep splat/analysis: WARNING: possible circular locking dependency detected 7.3.0-rc3-f6e7b42bf05b+ #183 Tainted: G U ------------------------------------------------------ kswapd0/269 is trying to acquire lock: ((init_mm).mmap_lock){++++}-{4:4}, at: change_page_attr_set_clr+0x29a/0x4a0 but task is already holding lock: (pool_shrink_rwsem){.+.+}-{4:4}, at: ttm_pool_shrink+0xb2/0x330 [ttm] Chain exists of: (init_mm).mmap_lock --> fs_reclaim --> pool_shrink_rwsem The cycle is built from three edges: 1) pool_shrink_rwsem -> (init_mm).mmap_lock The TTM shrinker restores the caching attribute of every page it frees, while holding pool_shrink_rwsem: ttm_pool_shrink() -> ttm_pool_dispose_list() -> ttm_pool_free_page() -> set_pages_wb() -> change_page_attr_set_clr() [ init_mm mmap read lock ] 2) fs_reclaim -> pool_shrink_rwsem The same shrinker, called from reclaim. 3) (init_mm).mmap_lock -> fs_reclaim ioremap() installing a huge PUD mapping over an existing PMD table: ioremap_page_range() -> vmap_range_noflush() -> vmap_try_huge_pud() [ init_mm mmap read lock ] -> pud_free_pmd_page() -> __get_free_page(GFP_KERNEL) [ enters reclaim ] [ dhansen: Lots of changelog munging/trimming and merged comments from my version of the fix. ] The Linux kernel CVE team has assigned CVE-2026-98939 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.53 with commit e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab and fixed in 6.18.56 with commit d3c2d2692bdf4af94bb27bc7a3aa0a348a567606 Issue introduced in 7.2.7 with commit cc73b2043d106b467accd38e9b1fc09e0607c056 and fixed in 7.2.10 with commit f38c57a28ebbd057471573e39555d5aa11ab03cf 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-98939 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: arch/x86/mm/pgtable.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/d3c2d2692bdf4af94bb27bc7a3aa0a348a567606 https://git.kernel.org/stable/c/f38c57a28ebbd057471573e39555d5aa11ab03cf https://git.kernel.org/stable/c/e3ee38c1bc0b11a8d3e63dce7050759b61864286