Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794823240; b=rr+Aqb4/pnJ/dVFHW9kmANxZ0MFlywPQwRZTp3TGHNZFoiw44hXJ/xFEpEI6FkIvvkhH qIzjUzivre5ReZNaB3qAw1G4Gf/+3+QQSd6/ANtt9eCC1I+xtLe+YIfc8r5Tpqxdn565k 8pCg2MX+ODLB+n0aIqAasj2C4nZcmOgD2pnUJEbhnbveFUmGH0ATbOZUoNMCXlOiAHZXZ EggTudaAasbZW3MZF+tJGkINllVhxoDwjm7nHYgIarOVuq05fbNZ6Wy/3oGNsItKgrast tq+Q/fOuenijhKbhVxN9SUfBaoRy1Su6Bv8362r5NODWXXSMb5mXhaTOsYdzhk8HvGA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823240; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=kb2ThCS6jTaLy4m/CRPrnvQVMbdf6M+/CO4aVUEvcc4=; b=IEy44QzHkWVp1L9uUmTBF6GAta1H1GuItEnJF1yZcSC0FIlPKA5irv6PtD4R2nFjvoG1 knljnoRU7oOM9l5VcPrzNBKgbr+YDhSXiDuJhzx19xrbqqsCd6ggeLsxgefPPiEUCI1iL /X6GHHSnXnfKYMMjEblYvLpDswKjU95OZSjIyLHxgQaCwY/mvrYYA1ox1lF75ldD+U07q B1mXVerScMEMLG96Fcp+snZiD5ETzq/Cgv49dSKNycVs60hsWg7FeIvHeGdhyihbW3rZP oV0nd00mkt/0CKYfMQ3MPa6QYGxHahfN4G/iZUDQxaOv31vqXhVElbqgaMwUa1FsPDQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=NWtKxeSt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F365606A332 for ; Mon, 16 Nov 2026 10:00:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=NWtKxeSt Received: by smtp.kernel.org (Postfix) with ESMTPSA id E58CE1F000C4; Mon, 16 Nov 2026 10:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794823240; bh=kb2ThCS6jTaLy4m/CRPrnvQVMbdf6M+/CO4aVUEvcc4=; h=From:To:Cc:Subject:Date:Reply-To; b=NWtKxeStKpW1WWcRwykCUVkJ4jKrsLL/4Fk5h1uWEf50lqkhp/555OOOekexwCTka Ct2yi4NTE7lDGsVGz3ePaiP7cRbPFqHo6hif/ZRZ06zkU+r/mGRHYusuNLgjDBiAtk DzVcswua8rPT2b+ykEyKDKrCdcNBhFECKa93HhkY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99294: netfilter: nft_fwd_netdev: use recursion counter in neigh egress path Date: Mon, 16 Nov 2026 10:59:43 +0100 Message-ID: <2026111638-CVE-2026-99294-d8d6@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2526; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Yr1TyvecCIW9qzkkLxMdBzgsRIGfx75VIde7WgJeCxs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm/rnCxVS/U0pTelRzbMsu6PHv+eeH4W41R1+Wv/vz3R sM5Z9uEjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI0+sM84PMlSR1v0WVSm7+ Ipqn+fv1lme/ExnmaTypaNI+2RTm5e+ho36zfEO99IGrAA== 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_fwd_netdev: use recursion counter in neigh egress path nft_fwd_neigh can be used in egress chains (NF_NETDEV_EGRESS). When the forwarding rule targets the same device or two devices forward to each other, neigh_xmit() triggers dev_queue_xmit() which re-enters nf_hook_egress(), causing infinite recursion and stack overflow. Move the nf_get_nf_dup_skb_recursion() accessor and NF_RECURSION_LIMIT to the shared header nf_dup_netdev.h as a static inline, so that nft_fwd_netdev can use the recursion counter directly without exported function call overhead. Guard neigh_xmit() with the same recursion limit already used in nf_do_netdev_egress(). [ Updated to cache the nf_get_nf_dup_skb_recursion pointer. --pablo ] The Linux kernel CVE team has assigned CVE-2026-99294 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit f87b9464d152f7705f1e37288dc48f5af6a2fc0c and fixed in 6.18.57 with commit fcacd948b10a351aa128acd3c2c4cee62d1ea677 Issue introduced in 5.17 with commit f87b9464d152f7705f1e37288dc48f5af6a2fc0c and fixed in 7.1 with commit 1d47b55b36d2ec73fe6901212c8b28a593c3b27c 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-99294 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: include/net/netfilter/nf_dup_netdev.h net/netfilter/nf_dup_netdev.c net/netfilter/nft_fwd_netdev.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/fcacd948b10a351aa128acd3c2c4cee62d1ea677 https://git.kernel.org/stable/c/1d47b55b36d2ec73fe6901212c8b28a593c3b27c