CVE-2026-99664: mm/gup: recheck the PUD under PTL in follow_pud_mask()

Published Nov 20, 2026
·
Updated

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

mm/gup: recheck the PUD under PTL in followpudmask()

followpudmask() reads the PUD without a lock. If it is a leaf, it takes the lock and calls followhugepud(), which reads the entry again, but only tests whether it is present.

A leaf can be zapped concurrently and a page fault can fill the empty entry with a page table.

This currently only applies when device-dax makes use of PUD entries, and the fault after e.g., MADVDONTNEED would find THPs to be disabled.

That requires a sequence like

1) Fault in the PUD 2) Disable THP 3) Have GUP race against concurrent MADVDONTNEED + refault

Which is rather unlikely to happen in practice, which is why we never received a report about such a problem.

Before commit 1b1676180246 ("mm/gup: handle huge pud for followpudmask()"), we performed that check in followdevmappud() by testing for puddevmap().

Let's fix it by just structuring followpudmask() similar to followpmdmask(), minus protnone stuff that does not apply and minus FOLLSPLITPMD handling. That makes it much easier to spot any such inconsistencies.

Perform the pudbad() check early in followpmdmask() and just forward the PUD value. We can drop the pudpresent() check in followhugepud(), just like we have in followhugepmd().

Even though we are performing more changes than strictly necessary, the fix should be easy to backport.

Affected Software

5 affected componentsFixes available
linux/kernel>=6.10.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux<=6.12.107-1, <=6.12.117-1, <=7.3.4-1
6.1.176-16.1.192-27.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 7.3.5-1

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 realistically exposed to this race?

The issue currently applies when device-dax uses PUD entries. Exploitation also depends on a specific sequence involving a PUD fault, disabling THP, and a GUP race with concurrent MADV_DONTNEED followed by a refault, which the description characterizes as unlikely in practice.

2

What concurrent activity is required to trigger the issue?

A PUD leaf must be zapped concurrently while GUP is operating, and a page fault must refill the emptied entry with a page table. The described scenario requires GUP to race with MADV_DONTNEED and a subsequent refault after THP has been disabled.

3

Is there evidence that this issue has been observed in the wild?

No report of the problem had been received according to the description. The required sequence is described as sufficiently unlikely that the issue had not previously been reported.

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