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 7CB983D7D6C for ; Fri, 25 Sep 2026 10:23:05 +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=1790331786; cv=none; b=YHTgCuOvGQTRgu62PIAEWw14meLOpaE8+NqDeimc1LP3bkVzN6+5arN+cwruytGpB3AXmgPwNoeNWIjHq5xJQgnc/1D5ug6GFem4RfodsMgl+ZsPQKgRMvT1Euh/7wyRiecotsDkNysOFqnFxr3Z15ZuMzpiw5dC8DVrOLaR7WM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331786; c=relaxed/simple; bh=oZ86DWlTSFalOR3VKEGM2QyuCu4jt3yaaEVlJBLiwhg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K/BRe0FVoG16XkQ+eIwRAKEAdwSFSqY8maCUlXOddduU0Tj7ZWd7bWRfqVJEp2+H9EnT0HrpdfLLkOJc07CUMzHZobNxatir4Vllx+40oIRU+oKXsPqdKHdlkvt+LSNNEbbu8ExPxWARgkKmnWVB8DMo7edKExyLWCG9K/tTLuA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R+6iEcJY; 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="R+6iEcJY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99AE11F000FF; Fri, 25 Sep 2026 10:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331785; bh=GXXSfEVwcdS8qTUBywfh4pQaFIVAlNrWiM67OTG3ToI=; h=From:To:Cc:Subject:Date:Reply-To; b=R+6iEcJYulIhR1rPVBPZ7OBa9FIwqsw0xTxAmsGLjF1YhBAJmBbJsLjr5B2qQb3GA Nax4o+WGVnnrJEfstrpcw09HVOW0pD6Zi8WpAquWv/TT37am8AEB1qW5TuUbZ+eFew njI/0Y7MXU21AyjCGqEbt95eO3SG5SwhRTmzeD0k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97534: f2fs: accurately adjust free_sections during free_segment_range Date: Fri, 25 Sep 2026 12:21:54 +0200 Message-ID: <2026092547-CVE-2026-97534-88fe@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=2887; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6Eb0/fQPHOoSYQGliwRmRFNWGgsB1gOzwCyFCAdYV/s=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvK11Iib+Dq5mvxD/KeraXQanDSZpGxqWC5/ZEVSwK 0pWme1zRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkWRbDgtOCH5KErPgPzH7y SO7gwcKLf4S0rzLMr73pn9vw4N92yVNXvR74ert47V5wCAA= 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: accurately adjust free_sections during free_segment_range In free_segment_range(), MAIN_SECS(sbi) is temporarily reduced by `secs` to restrict block allocation to the safe remaining main area while valid blocks in the truncated range are evacuated by GC. However, FREE_I(sbi)->free_sections tracks the total number of free sections across the whole filesystem. If any sections within the truncated range were already free upon entering free_segment_range(), failing to deduct them from free_sections causes the filesystem to overestimate available free sections in the active, reduced main area. This leads to inconsistent free section accounting during GC data migration and can trigger unexpected allocation failures or assertion errors when space is tight. Fix this by calculating the number of already-free sections in the truncated range, deducting them from free_sections upon entering free_segment_range(), and restoring them on exit. The Linux kernel CVE team has assigned CVE-2026-97534 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit b4b10061ef98c583bcf82a4200703fbaa98c18dc and fixed in 6.18.53 with commit ca31116fad0954c61a0d38163cc51c48e4981b75 Issue introduced in 5.8 with commit b4b10061ef98c583bcf82a4200703fbaa98c18dc and fixed in 7.2.7 with commit 8a123a10770d2132d046748f20f02baa8d5539a1 Issue introduced in 5.8 with commit b4b10061ef98c583bcf82a4200703fbaa98c18dc and fixed in 7.3-rc1 with commit 8c963d1738fdca400082ff5f9d99e083de4f4e70 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-97534 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/ca31116fad0954c61a0d38163cc51c48e4981b75 https://git.kernel.org/stable/c/8a123a10770d2132d046748f20f02baa8d5539a1 https://git.kernel.org/stable/c/8c963d1738fdca400082ff5f9d99e083de4f4e70