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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-04-24T14:42:07.502Z
- Modified: 2026-11-11T23:10:00.263Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

mm/userfaultfd: fix hugetlb fault mutex hash calculation

In mfill_atomic_hugetlb(), linear_page_index() is used to calculate the
page index for hugetlb_fault_mutex_hash().  However, linear_page_index()
returns the index in PAGE_SIZE units, while hugetlb_fault_mutex_hash()
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 BUG_ON in resv_map_release().

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

(As written by CVE List.)

## Affected

- Linux Linux: from a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 before 5a525c43baaba0bf3063f86996ca3623b71e4172; from a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 before 574501ede47ac439afd67ba9812bc66722d500ba; from a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 before 08282b1bf74c69fc8ecd25493e7fdb5460f01290; from a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 before f4689fc089765d36c026063fb22d23533e883eb6; from a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3 before 0217c7fb4de4a40cee667eb21901f3204effe5ac; 6.7 (not affected: before 6.7; from 6.12.84 up to 6.12.*; from 6.18.24 up to 6.18.*; from 6.19.14 up to 6.19.*; from 7.0.1 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: before 6.12.84; from 6.13 before 6.18.24; from 6.19 before 6.19.14; from 7.0 before 7.0.1

## References

- <https://git.kernel.org/stable/c/5a525c43baaba0bf3063f86996ca3623b71e4172> (patch)
- <https://git.kernel.org/stable/c/574501ede47ac439afd67ba9812bc66722d500ba> (patch)
- <https://git.kernel.org/stable/c/08282b1bf74c69fc8ecd25493e7fdb5460f01290> (patch)
- <https://git.kernel.org/stable/c/f4689fc089765d36c026063fb22d23533e883eb6> (patch)
- <https://git.kernel.org/stable/c/0217c7fb4de4a40cee667eb21901f3204effe5ac> (patch)

## Sources

- CVE List: [CVE-2026-31575](https://www.cve.org/CVERecord?id=CVE-2026-31575), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-31575](https://nvd.nist.gov/vuln/detail/CVE-2026-31575), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31575 · Whole record: https://cve.day/CVE-2026-31575.json · Rebuilt by cve.day 2026-11-25T22:59:19.491Z
