From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796384499; b=VgzeFsDXh4nH8VdnP6rSOZbWi977hJzcUOYkrCOW6vvNiYtIUjUZt9hrfqZQDfsu4JIZ LvBAvPJvKBX/YIJlbLS5PYDAyWUwCgIJcq6qtLYQwRsnDqQ1g06la0GSQ6bjB+mUrzLbK qwYA1DEBoOB9crQhVQRosawuIe7DuBtnhm4srEZYqRCxRQno5BXXIPmoQ3eaEdhEqo8ek mXW5+LZoJeYsTghju4YDIwdmqesu2V5KD7jc4M8SX+0fBsThMhHa4MxvJOToKq/Tpluyc U6ihZ0/7XtBH/uaiGAJ8ptRYE1vm3kIuWODZ6d9HIFnPc0VoeR5m/wMfm4LAfOrInpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384499; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=TcEA9wUElWc+2GpE7J4+hopGT4BuzWtw1ByGclMytlI=; b=gYJ+rlokHMl/AN6DPAoDkGg+9vB1K1nG4Yy4/ipK2lIBUrQlujp2+0qI9avjFG1lRMkz 9tWcs4vuAI9l3/K8QUkqTRn3wC3f7ErQ16y1TR2izxEIPRzBj+IiXvv67QtEgvVKriLz2 7SdrDYH3VKHsq+bruprBESezu3WTYeI37se/4bYuBz8Cg6waNzHQwGRISHnFw3eR7Cs3x ZuNPQfJSeLItd0khYOc0lq739JoT9lNlfhYTcqB1BqvRRRoWy62iXO750IrNdR3y9FIhu DQALAuT3CRKajYJy8dyihuRMo+utGuTk2iJMDQ9bqnBEXXzHG29FgHrIxE1yMdFSCQg== 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=KQ9Hm3Ug; 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 4C475606A32C; Fri, 4 Dec 2026 11:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=KQ9Hm3Ug Received: by smtp.kernel.org (Postfix) with ESMTPSA id B55081F000C2; Fri, 4 Dec 2026 11:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384499; bh=TcEA9wUElWc+2GpE7J4+hopGT4BuzWtw1ByGclMytlI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KQ9Hm3UgcW1AXkEFWT1lYaURx3JsWPYqi0g/Q02x4I/wLydH5nk62wq2H8QHG1niM guGwh9JjISJFwkdCP+9s7EmZ5oCi0oWaIOtyBJpMj1vOh3ferRwn3GNABwh293Q9fe ExjqnRxytcDDsufKTBURh4I0dLR/votizZxCO1C4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Laveesh Bansal , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 6.6 0176/1167] netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag() Date: Fri, 4 Dec 2026 18:53:23 +0900 Message-ID: <20261204100706.656237447@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laveesh Bansal [ Upstream commit 683ff28ab18accb25268741a724645eee839d41a ] nf_ct_bridge_refrag() warns when skb->protocol is neither IPv4 nor IPv6. A vlan filtering bridge can get there with a vlan ethertype: if the protocol of the tag of a frame differs from the vlan_protocol of the bridge, br_allowed_ingress() moves the tag back into the packet after NF_BR_PRE_ROUTING, where bridge conntrack has already defragmented it. Anyone who can send fragments into a port of such a bridge can trigger the warning, which takes the machine down with panic_on_warn. The packet is dropped either way, so only warn on kernels built with CONFIG_DEBUG_NET. This only avoids the warning. Such fragmented packets are still dropped. syzbot reported the warning. It keeps triggering on CONFIG_DEBUG_NET kernels until the vlan tag is handled, which is left for a follow-up: https://syzkaller.appspot.com/bug?extid=a8ba738fe2db6b4bb27f Fixes: 3c171f496ef5 ("netfilter: bridge: add connection tracking system") Assisted-by: LLM Signed-off-by: Laveesh Bansal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/bridge/netfilter/nf_conntrack_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/netfilter/nf_conntrack_bridge.c b/net/bridge/netfilter/nf_conntrack_bridge.c index 381638ee9ac5f..c339d2406abe6 100644 --- a/net/bridge/netfilter/nf_conntrack_bridge.c +++ b/net/bridge/netfilter/nf_conntrack_bridge.c @@ -359,7 +359,7 @@ nf_ct_bridge_refrag(struct sk_buff *skb, const struct nf_hook_state *state, nf_br_ip6_fragment(state->net, state->sk, skb, &data, output); break; default: - WARN_ON_ONCE(1); + DEBUG_NET_WARN_ON_ONCE(1); return NF_DROP; } -- 2.53.0