CVE-2026-99927: mm/hugetlb: fix endless write fault on a leftover uffd bit

Published Nov 30, 2026
·
Updated

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

mm/hugetlb: fix endless write fault on a leftover uffd bit

hugetlbfault() resolves the uffd bit on a write fault only if the VMA is registered for userfaultfd write protection, and hugetlbwp() bails out for any entry with the uffd bit set assuming hugetlbfault() has already resolved it.

When a read-only hugetlb entry with the uffd bit set is mapped in a VMA that is not registered for uffd-wp, a write fault to it never makes progress. If the access comes from the kernel, e.g. read(2) from /dev/zero into such page, the task spins in the page fault handler, ignores SIGKILL and keeps holding the locks taken by the system call.

Such entries should not exist, but an unprivileged user can create them, for example with MADVDONTNEED of a page protected with UFFDIORWPROTECT or with UFFDIOCOPY in MODEWP racing with UFFDIOUNREGISTER.

Clear the uffd bit when the VMA is not registered for uffd-wp and let the fault proceed to hugetlbwp(), like dowppage() does for regular pages.

Note that a FOLLFORCE write to a page protected with UFFDIORWPROTECT in a private VMA that was made PROTNONE now drops the RWP protection of that page.

Original fix generated by an LLM and sent in private by Josef.

[rppt@kernel.org: massage commit message] [david@kernel.org: convert comment into a TODO]

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:18 PM
Data Sourced
via MITRE·01:18 PM
Description
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

Who can trigger this issue?

An unprivileged user can create the problematic hugetlb entries. The described paths include using MADV_DONTNEED on a page protected with UFFDIO_RWPROTECT, or racing UFFDIO_COPY in MODE_WP with UFFDIO_UNREGISTER.

2

What conditions are needed for the fault loop?

A read-only hugetlb entry must retain its userfaultfd bit while mapped in a VMA that is not registered for userfaultfd write protection. A write fault on that entry then fails to make progress.

3

What is the practical impact of exploitation?

If the write access originates in the kernel, such as a read(2) from /dev/zero into the affected page, the task can spin in the page-fault handler. It ignores SIGKILL and continues holding locks acquired by the system call.

4

Is userfaultfd write protection involved?

Yes. The affected state is associated with a leftover userfaultfd write-protection bit on a hugetlb entry, including entries created through UFFDIO_RWPROTECT or UFFDIO_COPY in MODE_WP.

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