CVE-2026-31575
JSON

5.5medium

mm/userfaultfd: fix hugetlb fault mutex hash calculation

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelbefore 6.12.84, from 6.13 before 6.18.24, from 6.19 before 6.19.14, from 7.0 before 7.0.1NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/userfaultfd: corrige el cálculo del hash del mutex de fallo de hugetlb En mfill_atomic_hugetlb(), se utiliza linear_page_index() para calcular el índice de página para hugetlb_fault_mutex_hash(). Sin embargo, linear_page_index() devuelve el índice en unidades PAGE_SIZE, mientras que hugetlb_fault_mutex_hash() espera el índice en unidades de página enorme. Esta discrepancia significa que diferentes direcciones dentro de la misma página enorme pueden producir diferentes valores hash, lo que lleva al uso de diferentes mutexes para la misma página enorme. Esto puede causar condiciones de carrera entre hilos con fallos, lo que puede corromper el mapa de reserva y activar el BUG_ON en resv_map_release(). Se corrige esto introduciendo hugetlb_linear_page_index(), que devuelve el índice de página con granularidad de página enorme, y usándolo en lugar de linear_page_index().

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31575 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-31575 changed 2026-11-11Public domain