Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30FF0329E6A for ; Tue, 16 Dec 2025 15:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765897618; cv=none; b=EPi/JI/YgxfRZ2HPbDqElA4ViQRvq1lWMhzXtfaC+Q+6wIwXemrij4daXsYfwkhHAn2tUGckF/49BYPobzz3uMvdp5tMQSj7v0kzaaN6Q2ofR94bzlC4dBBvUvWphkgXBUC25A1mcAcKlr6x2NcHDOffXHAxbwalKl6BEU2bpok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765897618; c=relaxed/simple; bh=HGHyjMFXFSxYuYXyJ12G3z0wzMcWnFkyj5KoE32JKm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uocwog65251PD55h9D3f1HiPZyDvSaaP7RUbj8+ULxVA3I7/GzhsqZD0+iLVjc6rhA3P1B7LYAz4MkRkIyi7xgeLhfBLbB2PtZFAREVIU0SrZRmIEqzKr4yRw06BXf2Tpau5H+A/RbtjnO8LnuKUDAOShx97wpnY0kSDf5WOSyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LNv9nl8g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LNv9nl8g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 351F4C4CEF1; Tue, 16 Dec 2025 15:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765897617; bh=HGHyjMFXFSxYuYXyJ12G3z0wzMcWnFkyj5KoE32JKm4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=LNv9nl8g2HCIc/trAkBbisLa/NH7ZEWx8d2LZw7NSo4cu0U958nyOhXX3/RQfqq3I sQ3zZV8i1hkw5fLhmKx0ECFgZP/PQrRYlLBqCv51zDFom5oMv6oqp/qyVcwTNXFeid IhIXUq2yUERS9c3Pugpdh93+3h6a7ErPKfI2ihXQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68292: mm/memfd: fix information leak in hugetlb folios Date: Tue, 16 Dec 2025 16:06:46 +0100 Message-ID: <2025121640-CVE-2025-68292-434b@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2989; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/Qr0TC1xfbcapB9SUxNn3pc/ph15GvuhhmnZILfOBqM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOpQ38c45U+LGe3D2bcemeyLfKFReNf/+YrNllKy1s8 Pza4QdVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRT3oMCxY9TuwXeB12qUgh 5NipoJ7VvYdmuDAsWJG77vzHuK1sz0Mm7mQ8wahyteXuDQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-68292 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 6.12.61 with commit 50b4c1c28733a536d637d2f0401d60bcfef60ef2 Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 6.17.11 with commit b09d7c4dc642849d9a96753233c6d00364017fd6 Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 6.18 with commit de8798965fd0d9a6c47fc2ac57767ec32de12b49 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-68292 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: mm/memfd.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/50b4c1c28733a536d637d2f0401d60bcfef60ef2 https://git.kernel.org/stable/c/b09d7c4dc642849d9a96753233c6d00364017fd6 https://git.kernel.org/stable/c/de8798965fd0d9a6c47fc2ac57767ec32de12b49