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=1795154403; b=P3B2/NQlsZBFpgSmKu3gik6K3TwkZdBURMQ7EoPZERj6R7oEM/LHOkF+hNS8xyjxC7l3 Wjm3ay7S/06YzlCbEsqmr/a3OzXjW1oGY6/fUIrQYAudK+pwr4WjDYT7trldgtp3GJFeQ ELSLBU4tfw4IpTUm7jb9Nau/BZQfsUXoRjeVtdUdQB/TJjIPEBxkME6vcoeb6j5ao7qeZ 7RQMpA1cin3whtqDY0l19xz86PU5d7X76cqeTzbUtV5gAC0ZSqzzEmu3/wRx7n2i35LOi oDCf3Iju4QA0A7sY2r/CjcspQM83CdcHo8/a7Yp3tO39uzyvoAELxArjAe2ZEOThIvw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154403; 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=Gd92UjTi/599nOepXgCBDORj5FPUPzPowtaTIB4zPb4=; b=lbLp2jC129Ei7ozcq8uVZ09p7RrtXyw2aw/CLAwH1G/aYal3DxJJ0dZuJfqvuz8R8gxo vzpV8HcHFnlFZJNS6PfOIpKbze4HckFJxE+5+kTHBZmEdAjxCNHHJX/8O6cRYxPsNLaWL VmLLRFmm8wp/kSo/Et8NHbzeTrbGYGksEX6KBC+7Ccj4pzIDkNE4SUK4C3zcGKczd9FBD 1ZJsYt9jxszOomNUbeRGt8L/fNEocbVTDAUGGuKgzVY65WyKy/dp+V0XZ+HYMVl1el3Ki ZdU+7ipfHDiOopNrF59pRyCA/DmLtlMZDhc8yqBFOvzbwuqJV7C3s9TlelK7oLhFsyw== 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=Y9tWYllB; 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 25A09606A33E for ; Fri, 20 Nov 2026 06:00:03 +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=Y9tWYllB Received: by smtp.kernel.org (Postfix) with ESMTPSA id 748951F000C6; Fri, 20 Nov 2026 06:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154403; bh=Gd92UjTi/599nOepXgCBDORj5FPUPzPowtaTIB4zPb4=; h=From:To:Cc:Subject:Date:Reply-To; b=Y9tWYllBYSnhMzH8G4uh0jl4WVvgJzPfNUI1611ApZu5dP7yLjPopWlQfXoESm1Ib ZTlxtMdBBUA4aAXYshlq62CEsgqFpUGyYOcrpsqnX/rAnNwln9R1l0FST/LwZC6Qyh wqER3665S2soTgjyQZjvFMqTKmjZQqoaR3W6S484= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99732: mm/filemap: read mapping->a_ops->free_folio under i_lock Date: Fri, 20 Nov 2026 06:51:58 +0100 Message-ID: <2026112014-CVE-2026-99732-487c@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=2774; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KEfXGilDpxZlbT+cXlrKoyMFu8do5gsjRtEVbUYEpJk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/708LE196WUSQ48P09Fn5K+sNTTnmiGwxuPLurcvR9 teLbsrs7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHO1mmO/DW3z+e1T2scsZ EVaSEjHiR1ZNC2aYp9ui5X73d72Ny6spIv2b1s3fILjtAAA= 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/filemap: read mapping->a_ops->free_folio under i_lock memory_failure() -> ... -> filemap_remove_folio() can read mapping->a_ops after the inode has been freed. Once the folio is deleted from the pagecache it no longer pins the mapping, so after i_lock is dropped e.g., a concurrent final iput() can evict and free the inode before filemap_free_folio() looks up mapping->a_ops->free_folio. Most callers hold a reference on the inode, but not all. Documentation/filesystems/vfs.rst explicitly states that ->free_folio() must not assume the original address_space mapping still exists. Fix it by loading ->free_folio while i_lock is still held, similar to what folio_unmap_invalidate() does. Inline filemap_free_folio() into its remaining caller such that delete_from_page_cache_batch() also just loads the callback before dropping the i_lock. The bug was found by code inspection and has not been reproduced. Fix generated by an LLM and sent by Josef Bacik in private. [ david: get rid of filemap_free_folio() entirely; improve patch description ] The Linux kernel CVE team has assigned CVE-2026-99732 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 59c66c5f8c4fb823240d70553c1686ce4e4dd331 and fixed in 7.3.5 with commit 842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e Issue introduced in 4.15 with commit 59c66c5f8c4fb823240d70553c1686ce4e4dd331 and fixed in 7.4-rc2 with commit dc24e273244e9d712257d5a6c20a32c7f5ca84e6 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-99732 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/filemap.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/842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e https://git.kernel.org/stable/c/dc24e273244e9d712257d5a6c20a32c7f5ca84e6