CVE-2026-31575

Source
https://cve.org/CVERecord?id=CVE-2026-31575
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31575.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31575
Downstream
Related
Published
2026-04-24T14:42:07.502Z
Modified
2026-05-18T05:59:51.302888988Z
Summary
mm/userfaultfd: fix hugetlb fault mutex hash calculation
Details

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31575.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a08c7193e4f18dc8508f2d07d0de2c5b94cb39a3
Fixed
5a525c43baaba0bf3063f86996ca3623b71e4172
Fixed
574501ede47ac439afd67ba9812bc66722d500ba
Fixed
08282b1bf74c69fc8ecd25493e7fdb5460f01290
Fixed
f4689fc089765d36c026063fb22d23533e883eb6
Fixed
0217c7fb4de4a40cee667eb21901f3204effe5ac

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31575.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.84
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.24
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.14
Type
ECOSYSTEM
Events
Introduced
6.20.0
Fixed
7.0.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31575.json"