CVE-2024-49872
mm/gup: fix memfd_pin_folios alloc race panic
Reported by linux · Published October 21, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.11.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 89c1905d9c140372b7f50ef48f42378cf85d9bc5, 89c1905d9c140372b7f50ef48f42378cf85d9bc5 |
| Linux | Linux | 6.11, 0, 6.11.3 |
| linux | linux_kernel | 6.11, 6.11 |
| Linux | Linux | 89c1905d9c140372b7f50ef48f42378cf85d9bc5, 6.11, 0 |
Timeline
- Oct 21, 2024 CVE Published
- Oct 22, 2024 EPSS Score (30 in total, the first dated here)
- Oct 22, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 2, 2026 Security Advisory (425 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (358 in total, the first dated here)
- May 11, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-49872
vulnetix vdb fixes CVE-2024-49872
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49872/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart