CVE-2024-49872
JSON

4.7medium

mm/gup: fix memfd_pin_folios alloc race panic

Severity
4.7medium CVSS:3.1 by NVD
Exploit likelihood
0.18% (higher than 4% of CVEs)
Published
Last changed
Assigned by
Linux

Description

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

Product or packageVersionsReported by
Linux Linuxfrom 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before e28f39b359c0cfdcc011603e51187085a5f1e5e3, from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before ce645b9fdc78ec5d28067286e92871ddae6817d5, 6.11
Not affected: before 6.11, from 6.11.3 up to 6.11.*, from 6.12 up to *
CVE List
linux linux_kernelfrom 6.11 before 6.11.3NVD

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/gup: corregir pánico en ejecución de asignación de memfd_pin_folios Si memfd_pin_folios intenta crear una página hugetlb, pero alguien más ya lo hizo, entonces folio obtiene el valor -EEXIST aquí: folio = memfd_alloc_folio(memfd, start_idx); if (IS_ERR(folio)) { ret = PTR_ERR(folio); if (ret != -EEXIST) goto err; luego en el siguiente viaje a través del bucle "while start_idx" entramos en pánico aquí: if (folio) { folio_put(folio); Para corregirlo, configure folio en NULL en caso de error.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-49872 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-49872 changed 2026-06-17Public domain