CVE-2024-36000

Source
https://cve.org/CVERecord?id=CVE-2024-36000
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36000.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-36000
Downstream
AZL (1)
BELL (1)
DEBIAN (1)
MGASA (2)
OESA (2)
RHSA (7)
RLSA (3)
ROOT (2)
RXSA (2)
SUSE (11)
UBUNTU (1)
Related
Published
2024-05-20T09:48:02Z
Modified
2026-10-20T10:30:32Z
Summary
mm/hugetlb: fix missing hugetlb_lock for resv uncharge
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36000.json"
}
References

Affected packages

Git / 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

Affected versions

v5.*
v5.9.10
v5.9.11
v5.9.12
v5.9.13
v5.9.14
v5.9.15
v5.9.16
v5.9.7
v5.9.8
v5.9.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36000.json"

Linux / Kernel

Package

Name
Kernel

Affected 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"