CVE-2024-36000

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-36000
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36000.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-36000
Downstream
Related
Published
2024-05-20T09:48:02.318Z
Modified
2025-11-28T02:35:08.779302Z
Summary
mm/hugetlb: fix missing hugetlb_lock for resv uncharge
Details

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

mm/hugetlb: fix missing hugetlb_lock for resv uncharge

There is a recent report on UFFDIO_COPY over hugetlb:

https://lore.kernel.org/all/000000000000ee06de0616177560@google.com/

350: lockdepassertheld(&hugetlb_lock);

Should be an issue in hugetlb but triggered in an userfault context, where it goes into the unlikely path where two threads modifying the resv map together. Mike has a fix in that path for resv uncharge but it looks like the locking criteria was overlooked: hugetlbcgroupunchargefoliorsvd() will update the cgroup pointer, so it requires to be called with the lock held.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36000.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
79aa925bf239c234be8586780e482872dc4690dd
Fixed
4c806333efea1000a2a9620926f560ad2e1ca7cc
Fixed
f6c5d21db16a0910152ec8aa9d5a7aed72694505
Fixed
538faabf31e9c53d8c870d114846fda958a0de10
Fixed
b76b46902c2d0395488c8412e1116c2486cdfcb2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
6.1.91
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.30
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.9