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 7979F4E66B9 for ; Wed, 16 Sep 2026 10:34:49 +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=1789554898; cv=none; b=T9dM6DXVe+KOTAFcdNHwkuIyYEYPhn5Ck7GGWUZ/LJJXNKO3RY2tHvVJil1Pz5E+hamLZ5fGP/Di0pYcYa2RwLH8YjYzmWpnurC2ModRBxWYrBVZvTQ2cooy18s4bYf7wxzsDaYBZJC/aM42NXXL19YgtswNJeGcg5CEcNRNDsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554898; c=relaxed/simple; bh=QMjYb6KjvxyIbNm+hOCuQfQ4JLWqmDBueab9BOGmtNM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pz8fCJpBniASwmu5AnFRWQgAGjx+8GJo8nuU2roFzL+yMO4lnk07l9mbThpGVnTioObIxygXCKzFZGHpiGBqDnHbO0dcw3DumWA11UyTilOqItF6GMnjBANNM7JxAN35Qnq8DABPOgFvSW3pspl+pkiQeH9wxtt8/ql8b8fnHgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vDp2t0zV; 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="vDp2t0zV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6725B1F0089B; Wed, 16 Sep 2026 10:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554884; bh=gj1M1IlVZQqx4o9B6OmXpc0ys/z/Kg8sC8ikL3rSiuY=; h=From:To:Cc:Subject:Date:Reply-To; b=vDp2t0zV9GmDvzy5XHPEeYIXg2/F2Yo5ZdE4PpFvgoZsVUpZTFtj2UkBmsboTp/3c QQ4IdlX0ppc5sfx9hs+tAoF8lQ1Hr03brZGKCY6bT+a5XL3YgRRKc9z7RjzjFnFiI3 TwJZiunhB5u/6CHSHHN5Kfor+vdiU2G8b0U0brOE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89834: f2fs: fix to migrate all curseg types during free_segment_range Date: Wed, 16 Sep 2026 11:29:24 +0100 Message-ID: <2026091607-CVE-2026-89834-8692@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=2991; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u23ZV2i86fx2j5TKoxT36JR7sTQqTN60Y2KaCnj52JI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8ovnWslaf7bznxLmcsTF8LjOfSEF6efei3WncP25f Wxx2MyXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR1QkM81Terp20tGHNzhmT 3kswb8v4Z1Pmb8awYKLp8rOxb3foq+/8b89ooTgtWy7zBwA= 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 to migrate all curseg types during free_segment_range In free_segment_range(), the curseg evacuation loop only iterates up to NR_CURSEG_PERSIST_TYPE (0..5), missing non-persistent in-memory curseg types such as CURSEG_COLD_DATA_PINNED and CURSEG_ALL_DATA_ATGC. Even though these in-memory curseg types are not saved in the on-disk checkpoint header, they still occupy active physical segments at runtime. If an active in-memory curseg happens to be allocated within the segment range being truncated during filesystem shrink, failing to evacuate it will cause subsequent writes to the curseg attempting out-of-bounds I/O on the truncated storage range. Fix this by expanding the curseg evacuation loop upper bound to NR_CURSEG_TYPE to ensure all active curseg types are safely migrated out of the target range. The Linux kernel CVE team has assigned CVE-2026-89834 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit d0b9e42ab6155dc05fc83f00af9f45d4dd02264d and fixed in 6.12.110 with commit 3b85edf3391f3e1f624f409a7d2d239885f567b7 Issue introduced in 5.10 with commit d0b9e42ab6155dc05fc83f00af9f45d4dd02264d and fixed in 6.18.51 with commit b8ae1228c153622afa71a179c9d4dc268117e0f0 Issue introduced in 5.10 with commit d0b9e42ab6155dc05fc83f00af9f45d4dd02264d and fixed in 7.2.5 with commit b9776094aa7118e8e5dfdcd791ffc8330c5ca408 Issue introduced in 5.10 with commit d0b9e42ab6155dc05fc83f00af9f45d4dd02264d and fixed in 7.3-rc1 with commit 8ec06f50ddd8d201bd7e55b896ae28ed9d4cb7d1 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-89834 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/gc.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/3b85edf3391f3e1f624f409a7d2d239885f567b7 https://git.kernel.org/stable/c/b8ae1228c153622afa71a179c9d4dc268117e0f0 https://git.kernel.org/stable/c/b9776094aa7118e8e5dfdcd791ffc8330c5ca408 https://git.kernel.org/stable/c/8ec06f50ddd8d201bd7e55b896ae28ed9d4cb7d1