From mboxrd@z Thu Jan 1 00:00:00 1970 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=1795154219; b=ooZdoLhS2bHNMRTlUJsN2bhYKQWaqKb7p7nuapdfz1uvs58qOZckXsoKmE6PBfP0yaiQ Bo0Oz5ulrMOxThfRlkd6OCtIFec4hcHIlMSwhW1LV9CvjmOIvCOZO5e+9K79nco8aOgvI R1ZuB9mQlg/eVv+IxHCp8WcrPnNxLdKL7+oNzWmf0y/RxyYRLHVscMQkFtY+yFfyge8M3 gMwuYsK13dlez4zKei6KiBBZKiTTKOyXRlHjrWm+OPi7fSiezDnN3Jq+bj0ejiXBWBk1n B7CpcJTolXZObpg9m0m8cwOd+iPshbue3/yenHQflkKEM03zWrcnE0ZgPTqWa2KdKQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154219; 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=gqlNdcmmTDmlzUHal81EsxT7dKXRqzsaH/k7OAO6b1Q=; b=aD3J+f/8xJFsfGyUJYKQYWGqKlRfsrMYOt2lKjPTaIFBopbtODf8v04LgBDiVz8kkmZB 2VelgL3drD4QOAlXbGsIqAAIPP7AP6xj/bxodf3V97n37DGqCWNzjbh1OYJUS6ZZjy5Sk LIZEGICJU3SIrXdAdcmyXyc9uTMTZ965jkJ9D7UBRB8DDXg4rbrbwscAgcacGPaC942Rp rI/A3nVoeBWF4LqKBTieJe3gk1AlRgjNH/pBChx4f8IHOw/y1gSc0Fieu3HxxzhCmuhwa T9jJ1BixrQ2VcdgADPfvR92gcoIomZUF6ejcZG5T0V+VTVtvDvXoYEo4DikE5npu44w== 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=oaoMiBpm; 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 57FAA606A335 for ; Fri, 20 Nov 2026 05:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=oaoMiBpm Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FA7A1F000E0; Fri, 20 Nov 2026 05:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154219; bh=gqlNdcmmTDmlzUHal81EsxT7dKXRqzsaH/k7OAO6b1Q=; h=From:To:Cc:Subject:Date:Reply-To; b=oaoMiBpmRUuUUcQwm9/h9LluHCQQjBA9+pMpjdbIpLW9zPj//Wc/Wt0hsS1iHoroI /dchIXGMkDz+cGcq18pwim85FoddM5OyNNmI/v2t+2RSYq/xn7MEhK64b6nBPOTVGW 1zYDYqE6mPp28wgCuSCiC5arBc1lY+OPCKdgjZGA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99666: mm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp() Date: Fri, 20 Nov 2026 06:50:52 +0100 Message-ID: <2026112049-CVE-2026-99666-bdb0@gregkh> X-Mailer: git-send-email 2.56.1 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=2797; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xm9HxPwkQNm4x4ZZ6ozEIoxJ0veQ6awdRa9+g7qPIrs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/79e+aFs3Wbgq92qUzpU7jDW5k9yE1055uNZyFlv/h n2Jj7bc6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ3LjFsKBLWjuiN+lD27YH F5Iy5yaoOlTUT2SYH3D2Y8PqQ9/sVphrLuY5/zOHIWrvUgA= 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: mm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp() For a private mapping with userfaultfd, try_collapse_pte_mapped_thp() takes the PMD table lock before it maps the page table for the second time. If that (pte_offset_map_rw_nolock) fails, because the page table vanished in the meantime due to concurrent page table reclaim, it leaves through the abort label, where the PMD table lock is unlocked if it differs from PTE table lock. In case the PMD table lock and the PTE table lock match, which is the case without CONFIG_SPLIT_PTE_PTLOCKS after pte_offset_map_rw_nolock() failed, we miss to unlock the PMD table. To fix it, forget the PTE table lock when we unmap+unlock the PTE table. Fix generated by an LLM and sent by Josef Bacik in private. [ david: move the ptl = NULL handling; rewrite description, drop wrong comments ] The Linux kernel CVE team has assigned CVE-2026-99666 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 6375e95f381e3dc85065b6f74263a61522736203 and fixed in 6.18.64 with commit 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16 Issue introduced in 6.14 with commit 6375e95f381e3dc85065b6f74263a61522736203 and fixed in 7.3.5 with commit ad5e5800ce560759c8d3c10aac15b48a06cd21c1 Issue introduced in 6.14 with commit 6375e95f381e3dc85065b6f74263a61522736203 and fixed in 7.4-rc2 with commit db38b902307e687219ec765ef51a6ef459746c87 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-99666 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: mm/khugepaged.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/7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16 https://git.kernel.org/stable/c/ad5e5800ce560759c8d3c10aac15b48a06cd21c1 https://git.kernel.org/stable/c/db38b902307e687219ec765ef51a6ef459746c87