CVE-2025-68292
JSON

Not scored

mm/memfd: fix information leak in hugetlb folios

Severity
Not scored
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: mm/memfd: fix information leak in hugetlb folios When allocating hugetlb folios for memfd, three initialization steps are missing: 1. Folios are not zeroed, leading to kernel memory disclosure to userspace 2. Folios are not marked uptodate before adding to page cache 3. hugetlb_fault_mutex is not taken before hugetlb_add_to_page_cache() The memfd allocation path bypasses the normal page fault handler (hugetlb_no_page) which would handle all of these initialization steps. This is problematic especially for udmabuf use cases where folios are pinned and directly accessed by userspace via DMA. Fix by matching the initialization pattern used in hugetlb_no_page(): - Zero the folio using folio_zero_user() which is optimized for huge pages - Mark it uptodate with folio_mark_uptodate() - Take hugetlb_fault_mutex before adding to page cache to prevent races The folio_zero_user() change also fixes a potential security issue where uninitialized kernel memory could be disclosed to userspace through read() or mmap() operations on the memfd.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before 50b4c1c28733a536d637d2f0401d60bcfef60ef2, from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before b09d7c4dc642849d9a96753233c6d00364017fd6, from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before de8798965fd0d9a6c47fc2ac57767ec32de12b49, 6.11
Not affected: before 6.11, from 6.12.61 up to 6.12.*, from 6.17.11 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: mm/memfd: fix information leak in hugetlb folios When allocating hugetlb folios for memfd, three initialization steps are missing: 1. Folios are not zeroed, leading to kernel memory disclosure to userspace 2. Folios are not marked uptodate before adding to page cache 3. hugetlb_fault_mutex is not taken before hugetlb_add_to_page_cache() The memfd allocation path bypasses the normal page fault handler (hugetlb_no_page) which would handle all of these initialization steps. This is problematic especially for udmabuf use cases where folios are pinned and directly accessed by userspace via DMA. Fix by matching the initialization pattern used in hugetlb_no_page(): - Zero the folio using folio_zero_user() which is optimized for huge pages - Mark it uptodate with folio_mark_uptodate() - Take hugetlb_fault_mutex before adding to page cache to prevent races The folio_zero_user() change also fixes a potential security issue where uninitialized kernel memory could be disclosed to userspace through read() or mmap() operations on the memfd.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/memfd: corrige una fuga de información en folios hugetlb Al asignar folios hugetlb para memfd, faltan tres pasos de inicialización: 1. Los folios no se ponen a cero, lo que lleva a la divulgación de memoria del kernel al espacio de usuario 2. Los folios no se marcan como actualizados antes de añadirlos a la caché de páginas 3. El mutex hugetlb_fault_mutex no se adquiere antes de hugetlb_add_to_page_cache() La ruta de asignación de memfd omite el gestor normal de fallos de página (hugetlb_no_page) que manejaría todos estos pasos de inicialización. Esto es problemático especialmente para casos de uso de udmabuf donde los folios están anclados y son accedidos directamente por el espacio de usuario a través de DMA. Solución al igualar el patrón de inicialización utilizado en hugetlb_no_page(): - Poner a cero el folio usando folio_zero_user() que está optimizado para páginas enormes - Marcarlo como actualizado con folio_mark_uptodate() - Adquirir el mutex hugetlb_fault_mutex antes de añadirlo a la caché de páginas para prevenir condiciones de carrera El cambio de folio_zero_user() también corrige un problema de seguridad potencial donde memoria del kernel no inicializada podría ser divulgada al espacio de usuario a través de operaciones read() o mmap() en el memfd.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-68292 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-68292 changed 2026-10-14Public domain