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=1795154314; b=I17nmWQydM055uZuWIAT8H2PllaNFKlpC6Z5lUJ21tI2HpAL4kIC1Y68rahKiScUo0P+ x4yh+9PfijetVODSb5m+vrVrcTM5BRviCSy7mjDfYVBRmQy2riCK+AwkUBv9IhzEhAi7s 1ub9lpIJWgjBBzDVSqR5Hvmw55tznxowPpvUg2lCAnq/d8kE5scnRO9pOc7SC/6e5Tjue IySZfSTDPJVOTDRiy+rbqhbvN5eOHOPnipnGn4KCPKPfcoXG1BoB38CedjxpLyLjCVl30 c8laQydd2N9VGFu533jqx7mp/hJheg1APjIx/q1/C+orziXVErlvglGU/kxvHhN5v2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154314; 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=k0EZB9iMLd+p/Kkv0wd1HVI1h5YA2vpdOl8ltE65ATo=; b=fDhZjkizjWrUijMeB2R4R2c+A6RDab/UqfO5Y97AaLQULIr67gdEWH7p/kpbyUpuVO6K 1FTw1DW9GfXjdxMCJJhW/sEUJp9AIz6RFKmknrPyZPUz1Ad5bLBVY1o3Im3Ql9Dira+9f NU91k2uZgocWYbGEKOA6XyyGkqnlOLn99dwQAApElNs0wq/gUK8YtIkE64/3P3hH8V9vR B1673Cmr5u1/hk07yxRlHdEGag/JoGdCCMydKLpaAaQsCpLsGQXxMEyJ+KnhD3ETpP35o fDBethbTMZJ/4y2xK6sQVr4o0o8JnGmrEyhiencdIRAKfRNHBxpKQOFgdkMm64+qzhw== 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=0xwEkapN; 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 D2E6760A5BC9 for ; Fri, 20 Nov 2026 05:58:34 +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=0xwEkapN Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2F551F000E0; Fri, 20 Nov 2026 05:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154314; bh=k0EZB9iMLd+p/Kkv0wd1HVI1h5YA2vpdOl8ltE65ATo=; h=From:To:Cc:Subject:Date:Reply-To; b=0xwEkapNPj9RBtI401FTlhy0d/Py3jxbU4gX+HH3AGmVnA3OgLm3+ZrjDiIUOEakD ZX7XbaJM1jVu33kx3KDp2pLn4weX3oq36UTQ9Jo9BLwGmyrTQLnbM5/YXLSTBtLaAg tj+QydXQEaFZ6KiYz2axM8MyjO3OakAiAq4C5H+E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99700: mm/hugetlb_vmemmap: map the shared tail page writable Date: Fri, 20 Nov 2026 06:51:26 +0100 Message-ID: <2026112002-CVE-2026-99700-634d@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=3898; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0pxG5245+LEUOMEC5lWBWQHEC9Fe6SZZjwY1i69J7Yg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/73d9kG6Xl9Tqls8s8DyQush16cl6g3BBPrsf66c8l 5yx4kF+RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEQo1hwVbDvndZlnWSTS0S 923PbL99SV7qMsN8X68XN5/q+9rN7rnowvPY/mx+4JrHAA== 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_vmemmap: map the shared tail page writable page_ref_add_unless_zero() reads the refcount and then updates it with a cmpxchg. A lockless get, such as a page cache lookup or a PFN scanner, can read a non-zero refcount from a page that is then freed and reused as a hugetlb tail page. If HVO remaps its struct page to the shared tail page in between, the cmpxchg writes to read-only vmemmap: CPU0 (lockless get) CPU1 c = atomic_read(&page->_refcount) page freed page allocated as a hugetlb tail HVO remaps the struct page RO try_cmpxchg(&page->_refcount, &c, c + 1) -> write fault on read-only vmemmap The refcount is zero by then and the compare fails, but a compare-and-swap instruction needs write access whether or not it succeeds. The kernel oopses when hugetlb pages are allocated at runtime with HVO enabled while a lockless get races with it. Commit bd225530a4c7 ("mm/hugetlb_vmemmap: fix race with speculative PFN walkers") closed the window with RCU on both sides. The RCU was removed together with fake heads, on the wrong belief that it was only needed for them. Map the shared tail page writable instead of restoring the RCU. Every struct page on it is a tail with a zero refcount, so a late cmpxchg fails and leaves the page unchanged. RCU would put rcu_read_lock() back around every get and synchronize_rcu() back into hugetlb allocation and freeing. The cost is the protection against stray writes to tail struct pages. The shared page is shared by all hugetlb folios of the same order in the zone, so such a write now corrupts all of them instead of oopsing. Bootmem folios optimized when the memmap is set up keep their tails read-only. Nothing does a lockless get on them before hugetlb takes them over. The Linux kernel CVE team has assigned CVE-2026-99700 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18.51 with commit dba93b8cceb0048071389352fc29dcb0a7fe666f and fixed in 6.18.64 with commit f96a68bab26183433ea542dfb29ec41125f9fe39 Issue introduced in 7.1 with commit 32c440d67e6cd96a715007d0e62eb970b0c49abc and fixed in 7.3.5 with commit e570f2c29fc07a1040c3736bf1a1dfa8065d5099 Issue introduced in 7.1 with commit 32c440d67e6cd96a715007d0e62eb970b0c49abc and fixed in 7.4-rc2 with commit 0120a603afadba8ab4954bb1ce60f8195f80efc8 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-99700 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: Documentation/mm/vmemmap_dedup.rst mm/hugetlb_vmemmap.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/f96a68bab26183433ea542dfb29ec41125f9fe39 https://git.kernel.org/stable/c/e570f2c29fc07a1040c3736bf1a1dfa8065d5099 https://git.kernel.org/stable/c/0120a603afadba8ab4954bb1ce60f8195f80efc8