{"id":"CVE-2025-68292","aliases":["CVE-2025-68292"],"related":[],"kind":"vulnerability","state":"published","title":"mm/memfd: fix information leak in hugetlb folios","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memfd: fix information leak in hugetlb folios\n\nWhen allocating hugetlb folios for memfd, three initialization steps are\nmissing:\n\n1. Folios are not zeroed, leading to kernel memory disclosure to userspace\n2. Folios are not marked uptodate before adding to page cache\n3. hugetlb_fault_mutex is not taken before hugetlb_add_to_page_cache()\n\nThe memfd allocation path bypasses the normal page fault handler\n(hugetlb_no_page) which would handle all of these initialization steps. \nThis is problematic especially for udmabuf use cases where folios are\npinned and directly accessed by userspace via DMA.\n\nFix by matching the initialization pattern used in hugetlb_no_page():\n- Zero the folio using folio_zero_user() which is optimized for huge pages\n- Mark it uptodate with folio_mark_uptodate()\n- Take hugetlb_fault_mutex before adding to page cache to prevent races\n\nThe folio_zero_user() change also fixes a potential security issue where\nuninitialized kernel memory could be disclosed to userspace through read()\nor mmap() operations on the memfd.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memfd: fix information leak in hugetlb folios\n\nWhen allocating hugetlb folios for memfd, three initialization steps are\nmissing:\n\n1. Folios are not zeroed, leading to kernel memory disclosure to userspace\n2. Folios are not marked uptodate before adding to page cache\n3. hugetlb_fault_mutex is not taken before hugetlb_add_to_page_cache()\n\nThe memfd allocation path bypasses the normal page fault handler\n(hugetlb_no_page) which would handle all of these initialization steps. \nThis is problematic especially for udmabuf use cases where folios are\npinned and directly accessed by userspace via DMA.\n\nFix by matching the initialization pattern used in hugetlb_no_page():\n- Zero the folio using folio_zero_user() which is optimized for huge pages\n- Mark it uptodate with folio_mark_uptodate()\n- Take hugetlb_fault_mutex before adding to page cache to prevent races\n\nThe folio_zero_user() change also fixes a potential security issue where\nuninitialized kernel memory could be disclosed to userspace through read()\nor mmap() operations on the memfd.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/memfd: corrige una fuga de información en folios hugetlb\n\nAl asignar folios hugetlb para memfd, faltan tres pasos de inicialización:\n\n1. Los folios no se ponen a cero, lo que lleva a la divulgación de memoria del kernel al espacio de usuario\n2. Los folios no se marcan como actualizados antes de añadirlos a la caché de páginas\n3. El mutex hugetlb_fault_mutex no se adquiere antes de hugetlb_add_to_page_cache()\n\nLa 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.\n\nSolución al igualar el patrón de inicialización utilizado en hugetlb_no_page():\n- Poner a cero el folio usando folio_zero_user() que está optimizado para páginas enormes\n- Marcarlo como actualizado con folio_mark_uptodate()\n- Adquirir el mutex hugetlb_fault_mutex antes de añadirlo a la caché de páginas para prevenir condiciones de carrera\n\nEl 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.","source":"nvd"}],"published":"2025-12-16T15:06:12.772Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","fixed":"50b4c1c28733a536d637d2f0401d60bcfef60ef2","status":"affected"},{"type":"git","introduced":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","fixed":"b09d7c4dc642849d9a96753233c6d00364017fd6","status":"affected"},{"type":"git","introduced":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","fixed":"de8798965fd0d9a6c47fc2ac57767ec32de12b49","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.61","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.11","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/50b4c1c28733a536d637d2f0401d60bcfef60ef2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b09d7c4dc642849d9a96753233c6d00364017fd6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de8798965fd0d9a6c47fc2ac57767ec32de12b49","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68292","url":"https://www.cve.org/CVERecord?id=CVE-2025-68292","licence":"CVE Terms of Use","modified":"2026-05-11T21:50:20.450Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68292","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68292","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.529Z","epss":{"score":0.00224,"percentile":0.13963,"date":"2026-12-01T12:00:22.000Z"}}