mm/memfd: fix information leak in hugetlb folios
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.61, 6.17.11
- CVEs
- CVE-2025-68292
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 13:01 UTC · Revision 1
Source evidence
mm/memfd: fix information leak in hugetlb folios
core-osv · Original sourcePublished 16 Dec 2025, 15:06 UTC
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.
osv:CVE-2025-68292
Kernel
Fixed versions: 6.12.61, 6.17.11
Complete source record
{
"id": "95f4f799796e3bed983e1c58c7ea57bebf4ff92e42807f1456de39e5eb29c3cc",
"url": "https://osv.dev/vulnerability/CVE-2025-68292",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mm/memfd: fix information leak in hugetlb folios",
"summary": "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.",
"evidence": "osv:CVE-2025-68292",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.61",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.11",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-68292",
"aliases": [
"CVE-2025-68292"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "89c1905d9c140372b7f50ef48f42378cf85d9bc5"
},
{
"fixed": "50b4c1c28733a536d637d2f0401d60bcfef60ef2"
},
{
"fixed": "b09d7c4dc642849d9a96753233c6d00364017fd6"
},
{
"fixed": "de8798965fd0d9a6c47fc2ac57767ec32de12b49"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68292.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.11.0"
},
{
"fixed": "6.12.61"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.11"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68292.json"
}
}
],
"modified": "2026-10-28T02:30:29.163370930Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/50b4c1c28733a536d637d2f0401d60bcfef60ef2",
"https://git.kernel.org/stable/c/b09d7c4dc642849d9a96753233c6d00364017fd6",
"https://git.kernel.org/stable/c/de8798965fd0d9a6c47fc2ac57767ec32de12b49",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68292.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-68292",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68292.json"
}
},
"related_cves": [
{
"value": "CVE-2025-68292",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 495629,
"published_at": "2025-12-16T15:06:12.772+00:00"
}