CVE-2026-99700: mm/hugetlb_vmemmap: map the shared tail page writable

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/hugetlbvmemmap: map the shared tail page writable

pagerefaddunlesszero() 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 = atomicread(&page->refcount) page freed page allocated as a hugetlb tail HVO remaps the struct page RO trycmpxchg(&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/hugetlbvmemmap: 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 rcureadlock() back around every get and synchronizercu() 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.

Affected Software

4 affected componentsFixes available
linux/kernel>=6.18.51<6.18.64
6.18.64
linux/kernel>=7.1.0<7.3.5
7.3.5
debian/linux*
debian/linux<=7.3.4-1
6.1.176-16.1.192-26.12.107-16.12.117-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.5-1
  4. Compensating control

    In hugetlb_vmemmap, map the shared tail page writable instead of restoring RCU.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:50 AM
Data Sourced
via MITRE·05:50 AM
Description
Data Sourced
via OSV·05:50 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux kernel systems are exposed when hugetlb pages are allocated at runtime with hugetlb vmemmap optimization (HVO) enabled. The failure requires a concurrent lockless page-reference acquisition, such as a page-cache lookup or PFN scanner.

2

What is the practical impact if the race occurs?

The kernel can oops when a compare-and-swap operation attempts to update a refcount through a read-only remapped vmemmap page. This is a kernel stability and availability issue.

3

What conditions are needed to trigger the fault?

A page must be freed and reused as a hugetlb tail page while a lockless getter has observed a nonzero prior refcount. HVO must then remap that struct page to the shared tail page before the getter performs its compare-and-swap.

4

What change resolves the issue?

The fix maps the shared tail page writable, so the compare-and-swap can safely access the refcount even when its comparison ultimately fails. Referenced stable kernel commits include f96a68bab26183433ea542dfb29ec41125f9fe39, e570f2c29fc07a1040c3736bf1a1dfa8065d5099, and 0120a603afadba8ab4954bb1ce60f8195f80efc8.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203