CVE-2024-49872: mm/gup: fix memfd_pin_folios alloc race panic

Published Oct 21, 2024
·
Updated

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

2 affected componentsFixes available
Linux Linux kernel>=6.11<6.11.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Oct 21, 2024
CVE Published
via MITRE·06:01 PM
Data Sourced
via MITRE·06:01 PM
Description
Feb 20, 2025
Data Sourced
via Launchpad·12:47 AM
Description
Apr 1, 2025
Data Sourced
via Ubuntu·12:55 AM
RemedyDescriptionSeverityAffected Software
Apr 13, 2025
Data Sourced
via Debian·12:59 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-49872?

CVE-2024-49872 is categorized as a moderate severity vulnerability.

2

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.

3

Which Linux kernel versions are affected by CVE-2024-49872?

CVE-2024-49872 affects Linux kernel versions from 6.11 to 6.11.3.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203