CVE-2026-31575: mm/userfaultfd: fix hugetlb fault mutex hash calculation

Published Apr 24, 2026
·
Updated

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

mm/userfaultfd: fix hugetlb fault mutex hash calculation

In mfillatomichugetlb(), linearpageindex() is used to calculate the page index for hugetlbfaultmutexhash(). However, linearpageindex() returns the index in PAGESIZE units, while hugetlbfaultmutexhash() expects the index in huge page units. This mismatch means that different addresses within the same huge page can produce different hash values, leading to the use of different mutexes for the same huge page. This can cause races between faulting threads, which can corrupt the reservation map and trigger the BUGON in resvmaprelease().

Fix this by introducing hugetlblinearpageindex(), which returns the page index in huge page granularity, and using it in place of linearpageindex().

Affected Software

6 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel<6.12.84
Linux Linux kernel>=6.13<6.18.24
Linux Linux kernel>=6.19<6.19.14
Linux Linux kernel>=7.0<7.0.1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  2. Compensating control

    Introduce hugetlb_linear_page_index(), which returns the page index in huge-page granularity, and use it in place of linear_page_index() when calculating the index for hugetlb_fault_mutex_hash().

Event History

Apr 24, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-31575?

CVE-2026-31575 has a medium severity rating due to its impact on hugetlb fault mutex hash calculations.

2

How do I fix CVE-2026-31575?

To fix CVE-2026-31575, you should update your Linux kernel to the latest stable version where this vulnerability has been patched.

3

What software is affected by CVE-2026-31575?

CVE-2026-31575 affects the Linux kernel specifically in its management of hugetlb memory.

4

Can CVE-2026-31575 lead to system crashes?

While CVE-2026-31575 is a vulnerability, it may not directly lead to system crashes but can affect system stability under certain conditions.

5

Is CVE-2026-31575 a remote or local vulnerability?

CVE-2026-31575 is considered a local vulnerability as it requires local access to exploit.

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