{"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-10-29T11:12:11.277351741Z","published":"2024-05-20T09:48:02.318Z","related":["ALSA-2024:5101","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":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36000.json"},"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":"5.9.7"},{"fixed":"5.10"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0"}]}],"versions":["v5.9.16","v5.9.15","v5.9.14","v5.9.13","v5.9.12","v5.9.11","v5.9.10","v5.9.9","v5.9.8","v5.9.7"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36000.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36000.json"}}],"schema_version":"1.9.2"}