CVE-2024-49872

published 21 Oct 2024 · updated 11 May 2026

mm/gup: fix memfd_pin_folios alloc race panic

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ce645b9fdc78ec5d28067286e92871ddae6817d5 and Kernel e28f39b359c0cfdcc011603e51187085a5f1e5e3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.11, >=89c1905d9c140372b7f50ef48f42378cf85d9bc5 <ce645b9fdc78ec5d28067286e92871ddae6817d5, >=89c1905d9c140372b7f50ef48f42378cf85d9bc5 <e28f39b359c0cfdcc011603e51187085a5f1e5e3ce645b9fdc78ec5d28067286e92871ddae6817d5, e28f39b359c0cfdcc011603e51187085a5f1e5e3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-49872 severity on Zeptric[![CVE-2024-49872](https://zeptric.io/badge/cve/CVE-2024-49872.svg)](https://zeptric.io/cve/CVE-2024-49872)