CVE-2024-36000

mm/hugetlb: fix missing hugetlb_lock for resv uncharge

No CVSS score yet EPSS 0.22%

Published 20 May 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-36000

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36000 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 79aa925bf239c234be8586780e482872dc4690dd, before 4c806333efea1000a2a9620926f560ad2e1ca7cc
affected from 79aa925bf239c234be8586780e482872dc4690dd, before f6c5d21db16a0910152ec8aa9d5a7aed72694505
affected from 79aa925bf239c234be8586780e482872dc4690dd, before 538faabf31e9c53d8c870d114846fda958a0de10
affected from 79aa925bf239c234be8586780e482872dc4690dd, before b76b46902c2d0395488c8412e1116c2486cdfcb2
affected f87004c0b2bdf0f1066b88795d8e6c1dfad6cea0
affected from 5.9.7, before 5.10
Other versions: unaffected
Linux
affected 5.10
unaffected before 5.10
unaffected from 6.1.91 up to and including 6.1.*
unaffected from 6.6.30 up to and including 6.6.*
unaffected from 6.8.9 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36000 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36000

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-36000
trivy image --scanners vuln IMAGE | grep CVE-2024-36000

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-36000 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.