{"id":"CVE-2026-31575","aliases":["CVE-2026-31575"],"related":[],"kind":"vulnerability","state":"published","title":"mm/userfaultfd: fix hugetlb fault mutex hash calculation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/userfaultfd: fix hugetlb fault mutex hash calculation\n\nIn mfill_atomic_hugetlb(), linear_page_index() is used to calculate the\npage index for hugetlb_fault_mutex_hash().  However, linear_page_index()\nreturns the index in PAGE_SIZE units, while hugetlb_fault_mutex_hash()\nexpects the index in huge page units.  This mismatch means that different\naddresses within the same huge page can produce different hash values,\nleading to the use of different mutexes for the same huge page.  This can\ncause races between faulting threads, which can corrupt the reservation\nmap and trigger the BUG_ON in resv_map_release().\n\nFix this by introducing hugetlb_linear_page_index(), which returns the\npage index in huge page granularity, and using it in place of\nlinear_page_index().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/userfaultfd: fix hugetlb fault mutex hash calculation\n\nIn mfill_atomic_hugetlb(), linear_page_index() is used to calculate the\npage index for hugetlb_fault_mutex_hash().  However, linear_page_index()\nreturns the index in PAGE_SIZE units, while hugetlb_fault_mutex_hash()\nexpects the index in huge page units.  This mismatch means that different\naddresses within the same huge page can produce different hash values,\nleading to the use of different mutexes for the same huge page.  This can\ncause races between faulting threads, which can corrupt the reservation\nmap and trigger the BUG_ON in resv_map_release().\n\nFix this by introducing hugetlb_linear_page_index(), which returns the\npage index in huge page granularity, and using it in place of\nlinear_page_index().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/userfaultfd: corrige el cálculo del hash del mutex de fallo de hugetlb\n\nEn 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().\n\nSe 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().","source":"nvd"}],"published":"2026-04-24T14:42:07.502Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3","fixed":"5a525c43baaba0bf3063f86996ca3623b71e4172","status":"affected"},{"type":"git","introduced":"a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3","fixed":"574501ede47ac439afd67ba9812bc66722d500ba","status":"affected"},{"type":"git","introduced":"a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3","fixed":"08282b1bf74c69fc8ecd25493e7fdb5460f01290","status":"affected"},{"type":"git","introduced":"a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3","fixed":"f4689fc089765d36c026063fb22d23533e883eb6","status":"affected"},{"type":"git","introduced":"a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3","fixed":"0217c7fb4de4a40cee667eb21901f3204effe5ac","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.84","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.12.84"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5a525c43baaba0bf3063f86996ca3623b71e4172","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/574501ede47ac439afd67ba9812bc66722d500ba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08282b1bf74c69fc8ecd25493e7fdb5460f01290","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4689fc089765d36c026063fb22d23533e883eb6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0217c7fb4de4a40cee667eb21901f3204effe5ac","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:39:34.682Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31575","url":"https://www.cve.org/CVERecord?id=CVE-2026-31575","licence":"CVE Terms of Use","modified":"2026-11-05T21:45:08.839Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31575","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31575","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.491Z","epss":{"score":0.00127,"percentile":0.02577,"date":"2026-12-01T12:00:22.000Z"}}