CVE-2024-47676

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

State
Published
Severity
7.8 High
Published
Oct 21, 2024
Updated
Aug 5, 2026
Reserved
Sep 30, 2024

Read the record on cve.org

Description

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 hugetlb_fault(). This happens because vmf_anon_prepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlb_vma_unlock_read() is called.

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

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9acad7ba3e25d11f4c96df1b7312ae89e6faca5c to before e897d184a8dd4a4e1f39c8c495598e4d9472776cAffected
  • 9acad7ba3e25d11f4c96df1b7312ae89e6faca5c to before d59ebc99dee0a2687a26df94b901eb8216dbf876Affected
  • 9acad7ba3e25d11f4c96df1b7312ae89e6faca5c to before 98b74bb4d7e96b4da5ef3126511febe55b76b807Affected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.10.13 through 6.10.*Not affected
  • 6.11.2 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.