CVE-2024-47676

Source
https://cve.org/CVERecord?id=CVE-2024-47676
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-47676.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-47676
Downstream
Related
Published
2024-10-21T11:53:20.482Z
Modified
2026-03-20T12:39:10.281701Z
Summary
mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway
Details

In the Linux kernel, the following vulnerability has been resolved:

mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway

Syzbot reports a UAF in hugetlbfault(). This happens because vmfanonprepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlbvmaunlockread() is called.

We can fix this by using a modified version of vmfanonprepare() that doesn't release the VMA lock on failure, and then release it ourselves after hugetlbvmaunlock_read().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47676.json",
    "cna_assigner": "Linux"
}
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
9acad7ba3e25d11f4c96df1b7312ae89e6faca5c
Fixed
e897d184a8dd4a4e1f39c8c495598e4d9472776c
Fixed
d59ebc99dee0a2687a26df94b901eb8216dbf876
Fixed
98b74bb4d7e96b4da5ef3126511febe55b76b807

Database specific

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