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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-617
- **Published:** 2024-05-20T09:48:02.318Z
- **Modified:** 2026-06-17T07:35:55.160Z

## Who should check

- Anyone running Linux \>= 79aa925bf239c234be8586780e482872dc4690dd, \< 4c806333efea1000a2a9620926f560ad2e1ca7cc; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< f6c5d21db16a0910152ec8aa9d5a7aed72694505; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< 538faabf31e9c53d8c870d114846fda958a0de10; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< b76b46902c2d0395488c8412e1116c2486cdfcb2; f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0; \>= 5.9.7, \< 5.10
- Anyone running Linux 5.10

## 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.

## Affected and fixed versions

- Linux: \>= 79aa925bf239c234be8586780e482872dc4690dd, \< 4c806333efea1000a2a9620926f560ad2e1ca7cc; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< f6c5d21db16a0910152ec8aa9d5a7aed72694505; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< 538faabf31e9c53d8c870d114846fda958a0de10; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< b76b46902c2d0395488c8412e1116c2486cdfcb2; f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0; \>= 5.9.7, \< 5.10 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 5.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36000. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36000.md
Affected: Linux >= 79aa925bf239c234be8586780e482872dc4690dd, < 4c806333efea1000a2a9620926f560ad2e1ca7cc; >= 79aa925bf239c234be8586780e482872dc4690dd, < f6c5d21db16a0910152ec8aa9d5a7aed72694505; >= 79aa925bf239c234be8586780e482872dc4690dd, < 538faabf31e9c53d8c870d114846fda958a0de10; >= 79aa925bf239c234be85867…
Fixed in: Linux 4c806333efea1000a2a9620926f560ad2e1ca7cc, Linux 538faabf31e9c53d8c870d114846fda958a0de10, Linux 5.10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36000 being exploited?

There is no confirmed exploitation: CVE-2024-36000 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36000?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36000?

Linux \>= 79aa925bf239c234be8586780e482872dc4690dd, \< 4c806333efea1000a2a9620926f560ad2e1ca7cc; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< f6c5d21db16a0910152ec8aa9d5a7aed72694505; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< 538faabf31e9c53d8c870d114846fda958a0de10; \>= 79aa925bf239c234be8586780e482872dc4690dd, \< b76b46902c2d0395488c8412e1116c2486cdfcb2; f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0; \>= 5.9.7, \< 5.10; Linux 5.10.

### Is there a fix for CVE-2024-36000?

Yes. Fixed in Linux 4c806333efea1000a2a9620926f560ad2e1ca7cc, Linux 538faabf31e9c53d8c870d114846fda958a0de10, Linux 5.10. Upgrade Linux to 5.10 or later.

### How do I check if I'm affected by CVE-2024-36000?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36000>

HTML: <https://flawdb.com/CVE-2024-36000> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36000>
