CVE-2024-49872
MEDIUMLinux Kernel 6.11-6.11.2 - Race Condition in memfd_pin_folios
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: mm/gup: fix memfd_pin_folios alloc race panic If memfd_pin_folios tries to create a hugetlb page, but someone else already did, then folio gets the value -EEXIST here: folio = memfd_alloc_folio(memfd, start_idx); if (IS_ERR(folio)) { ret = PTR_ERR(folio); if (ret != -EEXIST) goto err; then on the next trip through the "while start_idx" loop we panic here: if (folio) { folio_put(folio); To fix, set the folio to NULL on error.
References (2)
Core 2
Scores
CVSS v3
4.7
EPSS
0.0014
EPSS Percentile
4.0%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-362
Status
published
Products (8)
linux/Kernel
6.11.0 - 6.11.3linux
Linux/Linux
< 6.11
Linux/Linux
6.11
Linux/Linux
6.11.3 - 6.11.*
Linux/Linux
6.12
Linux/Linux
89c1905d9c140372b7f50ef48f42378cf85d9bc5 - ce645b9fdc78ec5d28067286e92871ddae6817d5
Linux/Linux
89c1905d9c140372b7f50ef48f42378cf85d9bc5 - e28f39b359c0cfdcc011603e51187085a5f1e5e3
linux/linux_kernel
6.11 - 6.11.3
Published
Oct 21, 2024
Tracked Since
Feb 18, 2026