# CVE-2025-68292: mm/memfd: fix information leak in hugetlb folios

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-12-16T15:06:12.772Z
- Modified: 2026-10-14T13:10:00.187Z
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)

## References

- <https://git.kernel.org/stable/c/50b4c1c28733a536d637d2f0401d60bcfef60ef2>
- <https://git.kernel.org/stable/c/b09d7c4dc642849d9a96753233c6d00364017fd6>
- <https://git.kernel.org/stable/c/de8798965fd0d9a6c47fc2ac57767ec32de12b49>

## Sources

- CVE List: [CVE-2025-68292](https://www.cve.org/CVERecord?id=CVE-2025-68292), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-68292](https://nvd.nist.gov/vuln/detail/CVE-2025-68292), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-68292 · Whole record: https://cve.day/CVE-2025-68292.json · Rebuilt by cve.day 2026-11-25T22:59:09.529Z
