{"id":"CVE-2024-36000","summary":"mm/hugetlb: fix missing hugetlb_lock for resv uncharge","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: fix missing hugetlb_lock for resv uncharge\n\nThere is a recent report on UFFDIO_COPY over hugetlb:\n\nhttps://lore.kernel.org/all/000000000000ee06de0616177560@google.com/\n\n350:\tlockdep_assert_held(&hugetlb_lock);\n\nShould be an issue in hugetlb but triggered in an userfault context, where\nit goes into the unlikely path where two threads modifying the resv map\ntogether.  Mike has a fix in that path for resv uncharge but it looks like\nthe locking criteria was overlooked: hugetlb_cgroup_uncharge_folio_rsvd()\nwill update the cgroup pointer, so it requires to be called with the lock\nheld.","modified":"2026-04-16T04:35:50.579869507Z","published":"2024-05-20T09:48:02.318Z","related":["ALSA-2024:5102","ALSA-2024:6567","SUSE-SU-2024:2894-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2947-1","SUSE-SU-2024:4314-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36000.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4c806333efea1000a2a9620926f560ad2e1ca7cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/538faabf31e9c53d8c870d114846fda958a0de10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b76b46902c2d0395488c8412e1116c2486cdfcb2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f6c5d21db16a0910152ec8aa9d5a7aed72694505"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36000.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36000"},{"type":"PACKAGE","url":"https://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"},{"last_affected":"f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36000.json"}}],"schema_version":"1.7.5"}