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 574163CF20A for ; Sun, 18 Oct 2026 16:24:42 +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=1792340683; cv=none; b=GAOMW+OJHqiFRpexLnHg/6xspYNE9f3qp5q3TZiRdQZX6KgOK5xjlPeYOViqnNOHIeOrf+6HCEzM0NG3FLJXdh4OYZNbcu9HHtMbfFGTyFkXDgJfVM1e4LkhYieSHH0tWtsUp2l8XC5zJ7oZBxc3O9i5jPraqN5J3Na1F7OykKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340683; c=relaxed/simple; bh=a689/DyXuGtKHvyhzVq+PQgwOfQuo2HbqLBvzk4mFlE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dq2gt7mdgzNd0aHhO5pfLhBLZgRy95fppLklU1ar4ge3XFud57eJ5YQVR4R0hy6Sy2a8WqEtoVfo/FamjeQnhMsViE8a8w0F3gydNIP+9oLGkky28LpZUxm8gcaYH03zfKvO7vokxTDlwi/ZPkM6NxbmCKNxIUQ7BTuJ0Z5JM10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PnOQT7hE; 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="PnOQT7hE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98F841F000C4; Sun, 18 Oct 2026 16:24:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340682; bh=HDmhc0QWTRjm//MoJMJ5XeLJ+0rG0jVoCnl8v3VpV90=; h=From:To:Cc:Subject:Date:Reply-To; b=PnOQT7hEOiHCH4o4HUUFPorBrF4JusOJ0ykphxNj1udpTHrXJySyCFbzn4hoYQA2t wrHeSTInB70bffXa5yAC2J1FLGo8nKfOHj0MG22/g0Rsp9KhWsZJwKk3dN8oR5xKnx XBgVxaAgof0s31gd1nK1t/ocwAfRmxkKeTrPzw6A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98851: netfilter: nft_flow_offload: drop flowtable reference on init error path Date: Sun, 18 Oct 2026 17:47:06 +0200 Message-ID: <2026101834-CVE-2026-98851-4103@gregkh> X-Mailer: git-send-email 2.56.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=3123; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vlGavelub/lZ98wYgSbAzh/MeSOIpdbjLZ2KRNeXHa4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXia1XDvz1+Sl5rZTjLfFhC78m64hLfmrZOnH3+lPl jAvn36xqiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmwnyNYa5Ev06OwspDHZ4v fDfpsl/sW1Q68Q3D/HKmSuGowPgDlxxuidp4fvH8uE5/CgA= 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: netfilter: nft_flow_offload: drop flowtable reference on init error path nft_flow_offload_init() bumps the flowtable use count with nft_use_inc() before calling nf_ct_netns_get(). When the latter fails, the error is returned as-is and the reference is leaked. The upper layers do not balance it either: nf_tables_newexpr() clears expr->ops when the expression init callback fails, so the nft_expr_more() iteration in nft_rule_expr_deactivate() and nf_tables_rule_destroy() stops right before the failed expression and its ->destroy callback, which would drop the reference, never runs. Each failed rule addition therefore leaks one flowtable reference and the flowtable can no longer be removed: NFT_MSG_DELFLOWTABLE keeps reporting -EBUSY even though no rule references it. Save the nf_ct_netns_get() return value and undo the nft_use_inc() when it fails, restoring the inc/dec pairing within nft_flow_offload_init() itself. The Linux kernel CVE team has assigned CVE-2026-98851 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit a3c90f7a2323b331ae816d5b0633e68148e25d04 and fixed in 6.12.113 with commit 64ac0cb574c740bf723affb79b646eeba920db6b Issue introduced in 4.16 with commit a3c90f7a2323b331ae816d5b0633e68148e25d04 and fixed in 6.18.56 with commit c5f91098edee98c015f78488460a0609e62582a5 Issue introduced in 4.16 with commit a3c90f7a2323b331ae816d5b0633e68148e25d04 and fixed in 7.2.10 with commit 4cd378423a33194a773c267fc58606d28fce95cf Issue introduced in 4.16 with commit a3c90f7a2323b331ae816d5b0633e68148e25d04 and fixed in 7.3-rc6 with commit 747928b5d4ff8c8de55138a54c13980e4bb88578 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-98851 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: net/netfilter/nft_flow_offload.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/64ac0cb574c740bf723affb79b646eeba920db6b https://git.kernel.org/stable/c/c5f91098edee98c015f78488460a0609e62582a5 https://git.kernel.org/stable/c/4cd378423a33194a773c267fc58606d28fce95cf https://git.kernel.org/stable/c/747928b5d4ff8c8de55138a54c13980e4bb88578