CVE-2024-49872: mm/gup: fix memfd_pin_folios alloc race panic
In the Linux kernel, the following vulnerability has been resolved:
mm/gup: fix memfdpinfolios alloc race panic
If memfdpinfolios tries to create a hugetlb page, but someone else already did, then folio gets the value -EEXIST here:
folio = memfdallocfolio(memfd, startidx); if (ISERR(folio)) { ret = PTRERR(folio); if (ret != -EEXIST) goto err;
then on the next trip through the "while startidx" loop we panic here:
if (folio) { folioput(folio);
To fix, set the folio to NULL on error.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49872?
CVE-2024-49872 is categorized as a moderate severity vulnerability.
How do I fix CVE-2024-49872?
To resolve CVE-2024-49872, ensure your Linux kernel version is updated to at least 6.11.4 or later.
Which Linux kernel versions are affected by CVE-2024-49872?
CVE-2024-49872 affects Linux kernel versions from 6.11 to 6.11.3.
What systems are impacted by CVE-2024-49872?
CVE-2024-49872 impacts systems running specific versions of the Linux kernel, especially those using Debian distributions.
Is CVE-2024-49872 a zero-day vulnerability?
CVE-2024-49872 is not a zero-day vulnerability as it has been publicly disclosed and patched.