Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154211; b=WoNpMlLISskKU95KXhhoOdOc8eK2Rj2nZYYt8JAJ5pOhbANZ5cORcLYL534Q4MP3/m85 BP+1R7v01Dir6H+o4vSSVg4qxY8zYQ/FMf8RdmzWAvZvoA/GF5ejbme5DPCeO1NjTTNzl j1E+niNQ5IwB7gA8Ik0oKIbGmSeroO/irDXVldZz0uDWHRcbmoOlbXH+xPjGCnpAUobky MUtMfbxbb4RVdxmo6JKn7+HyXgkEl12YZRAAWyPfp2tRyA735gz5JhW+pVq2uOcFgVvfb vOq8hHdxPS8eNJzQhjDYjQhVfbWEr0FV8FXSykIgAeI8H87LUQZBTRQ9UTcPajvnbpA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154211; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=8EcPCoHAXczfMqL1IfgnayCUzymiFzUzCgEEZIinIsM=; b=mOZFKi9XPmmGcLEyjH9B2T+geYvOXOA9iUibGR+qJvdoxunUHJkajCNa0oNo34qIXa6W jJn/tUa5kgik79clq1M3W6N3VZcOP2FfjMMcu2nXehEDhH03rPnPzCntxeIsqkIbUEcCi XEE50xSRtopaitUKJQWdFGR31RbtwssZG9x8pseY+9Pq2+D1HWHS+N5ggkMxUifF5Sq5o Z5sKh/qRFefnOEnAs115rxhemuTsvpO3A/Yb7eNAjZP4YNvf7gpXDQwG36u/D2JfMBGmI GT7V0mOsi+CQ7xY401R9IJfw2JThWdfs3+5u9nQYXWea67ZSZqua4K2vzJ+O3pglkbQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=GSnTWOh1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9ED160A261C for ; Fri, 20 Nov 2026 05:56:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=GSnTWOh1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B4D21F0093C; Fri, 20 Nov 2026 05:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154210; bh=8EcPCoHAXczfMqL1IfgnayCUzymiFzUzCgEEZIinIsM=; h=From:To:Cc:Subject:Date:Reply-To; b=GSnTWOh1hNvu5zT4LOeSLxHCfrN2WEZxizE4M4rChv89HdHNdgqx1mtMvIVHBUEL7 YL5B/HHnu5FiOsqlCkWTEEdmGOa3PUQ/LoEk2vOcJ7RS3yh50fCPAusMLSSg5EmEGe wHGhQkDxxHZgsXV4Qt94idfC/+AuwJh7yEEI5B00= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99663: mm/gup: fix clearing folios in memfd_pin_folios() Date: Fri, 20 Nov 2026 06:50:49 +0100 Message-ID: <2026112048-CVE-2026-99663-974d@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2701; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aawp1bm+GpAp+BUY2GtCtixis7VgJVnGINURmldszOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/79dY5QskqPM3MUZuaS+9cmB6THN1Uv/rzT8266cfm 597eeKpjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIzz8MC3ZJmh1PdEnmF9xw 10LviOuDH+dDLzPM4XmsnJ7EI2Zd0Xhqan1i3Vrezf4HAA== 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/gup: fix clearing folios in memfd_pin_folios() memfd_pin_folios() pins folios obtained directly from the page cache without checking whether they are uptodate. However, shmem fallocate() can leave newly allocated folios uncleared and not uptodate. Callers such as udmabuf can then expose uninitialized memory to userspace. Clear non-uptodate folios and mark them uptodate under the folio lock before returning them to the caller. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description and comment ] The Linux kernel CVE team has assigned CVE-2026-99663 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 6.12.118 with commit 9b9c506018859bb33f01e4b9df213d41b9ca4cc2 Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 6.18.64 with commit d56f6835532c59b1b5e2d43f373f31586e7e457f Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 7.3.5 with commit 65f4a8ef0adf18601c6ddbfd0e3918afffaeb890 Issue introduced in 6.11 with commit 89c1905d9c140372b7f50ef48f42378cf85d9bc5 and fixed in 7.4-rc2 with commit c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932 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-2026-99663 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/gup.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/9b9c506018859bb33f01e4b9df213d41b9ca4cc2 https://git.kernel.org/stable/c/d56f6835532c59b1b5e2d43f373f31586e7e457f https://git.kernel.org/stable/c/65f4a8ef0adf18601c6ddbfd0e3918afffaeb890 https://git.kernel.org/stable/c/c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932