# CVE-2024-36000: mm/hugetlb: fix missing hugetlb_lock for resv uncharge

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-20T09:48:02.318Z
- Modified: 2026-06-17T07:35:55.160Z
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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:	lockdep_assert_held(&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: hugetlb_cgroup_uncharge_folio_rsvd()
will update the cgroup pointer, so it requires to be called with the lock
held.

(As written by CVE List.)

## Affected

- Linux Linux: from 79aa925bf239c234be8586780e482872dc4690dd before 4c806333efea1000a2a9620926f560ad2e1ca7cc; from 79aa925bf239c234be8586780e482872dc4690dd before f6c5d21db16a0910152ec8aa9d5a7aed72694505; from 79aa925bf239c234be8586780e482872dc4690dd before 538faabf31e9c53d8c870d114846fda958a0de10; from 79aa925bf239c234be8586780e482872dc4690dd before b76b46902c2d0395488c8412e1116c2486cdfcb2; f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0; from 5.9.7 before 5.10; 5.10 (not affected: before 5.10; from 6.1.91 up to 6.1.*; from 6.6.30 up to 6.6.*; from 6.8.9 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.9.7 before 5.10; from 5.10.1 before 6.1.91; from 6.2 before 6.6.30; from 6.7 before 6.8.9; 5.10; 6.9

## References

- <https://git.kernel.org/stable/c/4c806333efea1000a2a9620926f560ad2e1ca7cc> (patch)
- <https://git.kernel.org/stable/c/f6c5d21db16a0910152ec8aa9d5a7aed72694505> (patch)
- <https://git.kernel.org/stable/c/538faabf31e9c53d8c870d114846fda958a0de10> (patch)
- <https://git.kernel.org/stable/c/b76b46902c2d0395488c8412e1116c2486cdfcb2> (patch)

## Sources

- CVE List: [CVE-2024-36000](https://www.cve.org/CVERecord?id=CVE-2024-36000), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-36000](https://nvd.nist.gov/vuln/detail/CVE-2024-36000), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36000 · Whole record: https://cve.day/CVE-2024-36000.json · Rebuilt by cve.day 2026-11-25T22:58:40.661Z
