{"id":"CVE-2024-49872","published":"2024-10-21T18:01:13Z","modified":"2026-05-11T20:40:52Z","title":"mm/gup: fix memfd_pin_folios alloc race panic","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: fix memfd_pin_folios alloc race panic\n\nIf memfd_pin_folios tries to create a hugetlb page, but someone else\nalready did, then folio gets the value -EEXIST here:\n\n        folio = memfd_alloc_folio(memfd, start_idx);\n        if (IS_ERR(folio)) {\n                ret = PTR_ERR(folio);\n                if (ret != -EEXIST)\n                        goto err;\n\nthen on the next trip through the \"while start_idx\" loop we panic here:\n\n        if (folio) {\n                folio_put(folio);\n\nTo fix, set the folio to NULL on error.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00145,"percentile":0.0383,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e28f39b359c0cfdcc011603e51187085a5f1e5e3","tags":[]},{"url":"https://git.kernel.org/stable/c/ce645b9fdc78ec5d28067286e92871ddae6817d5","tags":[]}],"priority":{"score":0.8,"factors":[{"name":"EPSS percentile","points":0.77}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, < e28f39b359c0cfdcc011603e51187085a5f1e5e3",">= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, < ce645b9fdc78ec5d28067286e92871ddae6817d5"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:46:48.511178Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43824","exploited":false,"provenance":"source"}}