Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 17E6039099B for ; Sun, 19 Jul 2026 12:03:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462609; cv=none; b=b6ZlqlDOmbT/FOxPQSFMF/gkvZ/8iWJQ0yQ09DWLtVf2tv0Gy+tGq3Wjx/U+aUb8UUDJ2J/9F/2oCwYDEiNiMn4AxDEJjhx96JAjrQMmIerKRrEi2PRvQULsXlDxDNCHkrM2Pr1rgE5hSKT2d9tk31yC7WgqzWSu+b9yBrtu5Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462609; c=relaxed/simple; bh=qNizfDGOYvR+mdW/F6BtkbS0HDqBrx+IjeTKIi9M4k8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O68HIItSOe6AYTbb6AJMFx/PoJzXKrx53NSDax9ymR2V1nvEjoEaeIk42Vf1y9Fkj3oqGJB7NUCCbAXQezOqkuVgRgxNhMEOlCqVpMLRY/9Z0bTlMhI6DfmFKG1lg84dzyj2R1MD6vkzmqZDPd17bQqIgZDkGn5plOIiCBSnDLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v2+LdAK+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="v2+LdAK+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C0211F000E9; Sun, 19 Jul 2026 12:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462608; bh=aWLJ6LCyQylZxpepSaYIMXde4/bcolnhl3aFAUEaV5w=; h=From:To:Cc:Subject:Date:Reply-To; b=v2+LdAK+vlw9kfYbnj9Pw7IypROIBDHU1oPIeRZhK5PszwSsl7P0H5JYLf8dNnQL9 Hyz0BbzI1e+DNuGkULpTrQd9Gg4F992W771e031xappsBcoWiJ6EEA4LcV7Z1pxbG5 RABKknekMTecTENxUzAFOH3m0H3iKG9U6Qa2XmSo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63812: f2fs: fix incorrect FI_NO_EXTENT handling in __destroy_extent_node() Date: Sun, 19 Jul 2026 14:02:29 +0200 Message-ID: <2026071903-CVE-2026-63812-93b5@gregkh> X-Mailer: git-send-email 2.55.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=3376; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9Jnhvx853/tixgR21pG7dPZsXMocearR0yBrM/7i+Cg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe/ZMyDq+g3f3kWUFirOMnV4fLbmVmr0sNW6a1vcJR 1kV91yT7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7BVjWLCBuXyxn1hfgV22 3sY5YeKt0ZdcYhgWtHxQE9/y+f+nyywGby9/NH6w8jn/QwA= 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: f2fs: fix incorrect FI_NO_EXTENT handling in __destroy_extent_node() When __destroy_extent_node() sets the inode flag FI_NO_EXTENT, it does not reset the length of the largest extent to 0 and update the inode folio. Since modifications to the extent tree are disallowed afterward, the cached largest extent may become stale. This can trigger the following error in xfstests generic/388: F2FS-fs (dm-0): sanity_check_extent_cache: inode (ino=1761) extent info [220057, 57, 6] is incorrect, run fsck to fix In the f2fs_drop_inode path, __destroy_extent_node() does not need to guarantee that et->node_cnt is 0, because concurrency with writeback is expected in this path, and writeback may update the extent cache. This patch reverts commit ed78aeebef05 ("f2fs: fix node_cnt race between extent node destroy and writeback"), and remove the unnecessary zero check of et->node_cnt. The Linux kernel CVE team has assigned CVE-2026-63812 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.140 with commit 42dd1c91f993431d0b399502479d00e6ad1bca71 and fixed in 6.6.144 with commit 7e4d8f98be63f98856a5176b9188dada6e7ba9ee Issue introduced in 6.12.88 with commit ab1eaf9d5c99042f5b0243bf67a06283a4c0757f and fixed in 6.12.95 with commit 58a5deb220bcac4c73bf58954c0845644c997487 Issue introduced in 6.18.30 with commit b0e4395870eb3441ddc959f6710b5f6ca61aff26 and fixed in 6.18.38 with commit 20190e498057997532c7f186d081011f18e0a462 Issue introduced in 7.1 with commit ed78aeebef05212ef7dca93bd931e4eff67c113f and fixed in 7.1.3 with commit edf12cbeeeabe799bd2ee21fdb5c336cce6fbad7 Issue introduced in 7.1 with commit ed78aeebef05212ef7dca93bd931e4eff67c113f and fixed in 7.2-rc1 with commit 1f70ddb28a3c71df124da5fa4040c808116d6bb9 Issue introduced in 7.0.7 with commit 0559a0e962aacbb47519e26ee663be04b72dcb92 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-63812 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: fs/f2fs/extent_cache.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/7e4d8f98be63f98856a5176b9188dada6e7ba9ee https://git.kernel.org/stable/c/58a5deb220bcac4c73bf58954c0845644c997487 https://git.kernel.org/stable/c/20190e498057997532c7f186d081011f18e0a462 https://git.kernel.org/stable/c/edf12cbeeeabe799bd2ee21fdb5c336cce6fbad7 https://git.kernel.org/stable/c/1f70ddb28a3c71df124da5fa4040c808116d6bb9