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 00E384279E0 for ; Wed, 4 Feb 2026 16:20:59 +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=1770222060; cv=none; b=i1UDWjwf/YmYASRAeT6hrbl5clI6mjs1/QQbBn0LsLPwaSrsy0jMGJBqDx/I8DHni5t9sBGhDOAZJZuaFuK+bOoQPBl6Dlz9PkVnK4dtC3LysUlJLTqCyg6JKYoztNl1FF8dNkKCExnloEtVPn4vaNjQYOW11/iYn3OtyDb6l+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770222060; c=relaxed/simple; bh=lz6ignIcqHeJfRHV0ZGCZiaENVfXC/iJn/ahcgR8+Vg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NNUxPBS3WqR/T558gWAFBM5rRATDDF2VRtitCi/JVTGJS0DJawCf2Yae+48ZT+QZptb27nxzrbM9YVIoKNgH5jzooeCyOnS4Owza6BzHZ8uH8OCFPFZrao7HmpSybq5nilddhhaK0KDeJLlfpV/dSevzrStzUFD9vHAHAZott+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sAzurBVV; 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="sAzurBVV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65430C4CEF7; Wed, 4 Feb 2026 16:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770222059; bh=lz6ignIcqHeJfRHV0ZGCZiaENVfXC/iJn/ahcgR8+Vg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=sAzurBVVCoL0ZfZ7PofVBehCTezqcQnG4Fi6AZIUHyqO+SCGVNYBtn1NaClicCASw gNjekOpyjfjo5cx5zKXjREWrcZZtTrckwMSDaiRsfucofewm3tg2IuI+AzNQbxzndP Dd4CC2aXYN0x3e5S8tZqcAzoNNvB4+qW093iV3OI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23100: mm/hugetlb: fix hugetlb_pmd_shared() Date: Wed, 4 Feb 2026 17:14:59 +0100 Message-ID: <2026020428-CVE-2026-23100-b482@gregkh> X-Mailer: git-send-email 2.53.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=4057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/xKjSvAcVBCV6JuJE+E1SY2/6CVyCRLpgEX+BVBExps=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnNBSn2AtsNXule8ZPeash2kHW6deTejOnXNr1ubOl9U 2DH9te2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaS7M4wi7nX50iMROBnuXsL 713dqXNhUVz4V4b5kZ+cBDa+k25J0wjzldx8lm359ghOAA== 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/hugetlb: fix hugetlb_pmd_shared() Patch series "mm/hugetlb: fixes for PMD table sharing (incl. using mmu_gather)", v3. One functional fix, one performance regression fix, and two related comment fixes. I cleaned up my prototype I recently shared [1] for the performance fix, deferring most of the cleanups I had in the prototype to a later point. While doing that I identified the other things. The goal of this patch set is to be backported to stable trees "fairly" easily. At least patch #1 and #4. Patch #1 fixes hugetlb_pmd_shared() not detecting any sharing Patch #2 + #3 are simple comment fixes that patch #4 interacts with. Patch #4 is a fix for the reported performance regression due to excessive IPI broadcasts during fork()+exit(). The last patch is all about TLB flushes, IPIs and mmu_gather. Read: complicated There are plenty of cleanups in the future to be had + one reasonable optimization on x86. But that's all out of scope for this series. Runtime tested, with a focus on fixing the performance regression using the original reproducer [2] on x86. This patch (of 4): We switched from (wrongly) using the page count to an independent shared count. Now, shared page tables have a refcount of 1 (excluding speculative references) and instead use ptdesc->pt_share_count to identify sharing. We didn't convert hugetlb_pmd_shared(), so right now, we would never detect a shared PMD table as such, because sharing/unsharing no longer touches the refcount of a PMD table. Page migration, like mbind() or migrate_pages() would allow for migrating folios mapped into such shared PMD tables, even though the folios are not exclusive. In smaps we would account them as "private" although they are "shared", and we would be wrongly setting the PM_MMAP_EXCLUSIVE in the pagemap interface. Fix it by properly using ptdesc_pmd_is_shared() in hugetlb_pmd_shared(). The Linux kernel CVE team has assigned CVE-2026-23100 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 59d9094df3d79443937add8700b2ef1a866b1081 and fixed in 6.18.8 with commit 69c4e241ff13545d410a8b2a688c932182a858bf Issue introduced in 6.13 with commit 59d9094df3d79443937add8700b2ef1a866b1081 and fixed in 6.19-rc7 with commit ca1a47cd3f5f4c46ca188b1c9a27af87d1ab2216 Issue introduced in 5.10.239 with commit 94b4b41d0cdf5cfd4d4325bc0e6e9e0d0e996133 Issue introduced in 5.15.186 with commit 8410996eb6fea116fe1483ed977aacf580eee7b4 Issue introduced in 6.1.142 with commit 02333ac1c35370517a19a4a131332a9690c6a5c7 Issue introduced in 6.6.72 with commit 56b274473d6e7e7375f2d0a2b4aca11d67c6b52f Issue introduced in 6.12.9 with commit 2e31443a0d18ae43b9d29e02bf0563f07772193d 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-23100 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: include/linux/hugetlb.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/69c4e241ff13545d410a8b2a688c932182a858bf https://git.kernel.org/stable/c/ca1a47cd3f5f4c46ca188b1c9a27af87d1ab2216