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 80C2D4DA541 for ; Wed, 16 Sep 2026 10:34:29 +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=1789554895; cv=none; b=P4UdlQC6kj2Lk4GTXa6IC7aKazQ6ZkAI4j1FwiRvz37qYaqrCz/f2+0GX1hc+r9qErNbjEcQWS/XGpgGOOXB2NR+F43ceNXLeKSQXaIrUm5osxv7eajkS7KcUYFkkgGdECyEtmmgijrUyy2yH6NZMG2QtKZkXDk7vSkIHdKdh0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554895; c=relaxed/simple; bh=wNsjI9BHcXRtH5YJYsshbLaot1iqCpvwY/Z6nonw6oc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PsWrk3Lg3B7oKjcbmvJMl7jkbzHNj4l0ntsgJ58O3p5tVWV1lZ+n4UTJWdQI2WATMdxlpBy1rhgWjjvM1K9Q6hEkHxu3WFnrvOPVvOhSEnyNPjUMi86rIwGseFyJxOljG0MvWetejVXp6z40Xql9YdyaAmcUCzuKzgklAzM8zMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jlckSxUC; 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="jlckSxUC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 302FE1F0089A; Wed, 16 Sep 2026 10:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554868; bh=Lz/51ju9vmKon43T0QZYHOG+/fRJKFcwRWowlk9qGF0=; h=From:To:Cc:Subject:Date:Reply-To; b=jlckSxUCgnkXFpy8Z0/zi9sZmNqGB2UF2GzNB5+6ZrwIEyK0wVDZUaoIxrq10V8Xu guaAFV7WDlUM3Z11y5Kks5jPZZPSt/7EjOioBOo9Y567eJSvu9P5MYRfjEPjX/8RAl qgV9vqr5YfyFECPLjD2DAiDHrrD0YmevL6MtY4/g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89830: f2fs: fix valid block count leak on data block allocation failure Date: Wed, 16 Sep 2026 11:29:20 +0100 Message-ID: <2026091605-CVE-2026-89830-2605@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=2797; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ooPsIm94SHj4Lbhk6pul61/YZEKPi4h3OMJeFmoQmxY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8gs9L4qfn/Jy40eD3X/crPecPJxhv2TKqzXOCx6tO nefScFYsCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8oKZYSbjpZoFHjf7vvXN q2Y2b0s32GmotJBhwdzDC48fz2xufTnt7HV5wToG1nNiLQA= 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 valid block count leak on data block allocation failure In __allocate_data_block(), when allocating a new data block (dn->data_blkaddr == NULL_ADDR), inc_valid_block_count() is called first to increment total_valid_block_count and i_blocks. If the subsequent f2fs_allocate_data_block() fails, the function returns the error directly without rolling back the already-incremented block counts, causing a permanent leak. Fix this by calling dec_valid_block_count() to undo the increment before returning the error. The condition old_blkaddr == NULL_ADDR precisely identifies the case where inc_valid_block_count() was called. The Linux kernel CVE team has assigned CVE-2026-89830 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 7d009e048d7cfcc21d400f2aba4c8bacbdebbd47 and fixed in 6.12.110 with commit 2d50b6d47e5671ff6a25834c5906d443356191f0 Issue introduced in 6.9 with commit 7d009e048d7cfcc21d400f2aba4c8bacbdebbd47 and fixed in 6.18.51 with commit dde99df5a9d3b0ca6ac0a86f98799685f7399432 Issue introduced in 6.9 with commit 7d009e048d7cfcc21d400f2aba4c8bacbdebbd47 and fixed in 7.2.5 with commit 931e1aa4d44c52ff8e0feb38420a8827c62e886b Issue introduced in 6.9 with commit 7d009e048d7cfcc21d400f2aba4c8bacbdebbd47 and fixed in 7.3-rc1 with commit 0f9af07ecc1ab486038373db6ae0436c5d674b19 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-89830 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/data.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/2d50b6d47e5671ff6a25834c5906d443356191f0 https://git.kernel.org/stable/c/dde99df5a9d3b0ca6ac0a86f98799685f7399432 https://git.kernel.org/stable/c/931e1aa4d44c52ff8e0feb38420a8827c62e886b https://git.kernel.org/stable/c/0f9af07ecc1ab486038373db6ae0436c5d674b19