Netfilter/IPVS fixes
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest12 patches 4 repliesApplied 12/12
- v313 patches 3 repliesSuperseded
- v2 posting 6/615 patches 5 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 5/6 | 10 patches | 0 replies | Applied 10/10 | |
| v2 posting 4/6 | 8 patches | 3 replies | Applied 8/8 | |
| v2 posting 3/6 | 9 patches | 4 replies | Applied 9/9 | |
| v2 posting 2/6 | 13 patches | 0 replies | Applied 13/13 | |
| v2 posting 1/6 | 11 patches | 3 replies | Superseded | |
| v1 | 14 patches | 7 replies | Superseded |
Patches in v4 All 12 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | netfilter: nft_reject: prevent unbounded recursion in output hooksinclude/ include/ include/ +4 more | +71 | 1 reply | Applied |
| 2/12 | ipvs: Defer application parent freeing until after RCU readersnet/ | +1 | 0 replies | Applied |
| 3/12 | ipvs: fix protocol data lifetime during namespace teardownnet/ | +6 | 0 replies | Applied |
| 4/12 | netfilter: nf_dup: preserve guard across NFQUEUE reinjectioninclude/ net/ net/ | +16 | 0 replies | Applied |
| 5/12 | netfilter: flowtable: extend ct timeout of offloaded GRE flowsnet/ | +1 | 0 replies | Applied |
| 6/12 | netfilter: nft_set_rbtree: check catchall_sync return before queue_donenet/ | +2 | 0 replies | Applied |
| 7/12 | netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag()net/ | +1 | 0 replies | Applied |
| 8/12 | netfilter: x_tables: check target name before accessing verdictnet/ net/ net/ | +9 | 0 replies | Applied |
| 9/12 | netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()net/ | +2 | 0 replies | Applied |
| 10/12 | netfilter: nf_tables: fix memleak when rule deletion fails with hardware offloadnet/ net/ | +12 | 0 replies | Applied |
| 11/12 | netfilter: xt_recent: do not call remove_proc_entry() under recent_locknet/ | +4 | 0 replies | Applied |
| 12/12 | netfilter: nat: zero newrange before filling it innet/ net/ | +4 | 0 replies | Applied |
Reviews trailers per patch
3 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Julian Anastasov | Fernando Fernandez Mancera |
|---|---|---|
| 1/12 | ||
| 2/12 | A-b | |
| 3/12 | A-b | |
| 4/12 | ||
| 5/12 | ||
| 6/12 | ||
| 7/12 | ||
| 8/12 | ||
| 9/12 | R-b | |
| 10/12 | ||
| 11/12 | ||
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net,v4 00/12] Netfilter/IPVS fixes
v4: - Drop "ipvs: do not create conns from packets with port 0".
This PR was already reviewed in its v2 by netdev-ai-bots. I have dropped all the patches that LLM flagged as needing more work even since.
But I really think v3 was good enough and a follow up for "ipvs: do not create conns from packets with port 0" was just fine to proceed.
Maybe patchbot will ban this pull request again, v3 was blocklisted for not fulfulling the 24 hours rule, that is why it was not reviewed.
But, as said, this was all reviewed in PR v2 already, this is just keeping back 3 patches included in PR v1 needing more work.
-o-
Hi,
The following batch contains Netfilter/IPVS fixes for net, this batch addresses LLM findings, several of these fixes has been reproduced by syzbot:
1) Add recursion count to nf_reject infrastructure to prevent stack overflow, from Fernando F. Mancera.
2) Use kfree_rcu() to release IPVS parent application to fix UaF, from Chengfeng Ye.
3) Fix UaF in IPVS netns removal path due to releasing per-net protocol data too early, from Chengfeng Ye.
4) Preserve recursion count on nfqueue reinjection, from Zihan Xi.
5) Restore GRE timeout in the flowtable, otherwise, WARN_ON_ONCE() is reachable, from Michail Andreas Michalopoulos.
6) Check non-null gc transaction in nft_rbtree before queuing it for processing, from Xingyuan Mo.
7) Replace WARN_ON_ONCE() by DEBUG_NET_WARN_ON_ONCE() in nf_conntrack_bridge which is reachable if the protocol of the tag of a frame differs from the vlan_protocol of the bridge. From Laveesh Bansal.
8) Check x_tables target name is non-null before accessing it when building a new table, from Fernando F. Mancera.
9) Fix out-of-bound memory read in nf_conntrack_sip, from Joas Antonio Dos Santos.
10) Fix a memleak in nf_tables hardware offload when double deleting the same rule, in the same batch.
11) Use a mutex in xt_recent netns exit path instead of spinlock, since proc unregistration might sleep. From Cen Zhang.
12) Zero the nf_nat_range2 struct before filling it up, to avoid using stale uninitialized stack data to configure NAT with an esoteric NAT flags combination. From Florian Westphal.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-05
Thanks.
----------------------------------------------------------------
The following changes since commit cb284914e749388eef402938bdb3115fe1f6d337:
net: ipa: Fix double free of the interrupt structure on config error (2026-10-30 19:04:37 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-05
for you to fetch changes up to d1bb235aa409a4e5aeba6c748d953d948625b1e9:
netfilter: nat: zero newrange before filling it in (2026-11-05 13:31:11 +0100)
----------------------------------------------------------------
netfilter pull request 26-11-05
----------------------------------------------------------------
Cen Zhang (Microsoft) (1):
netfilter: xt_recent: do not call remove_proc_entry() under recent_lock
Chengfeng Ye (2):
ipvs: Defer application parent freeing until after RCU readers
ipvs: fix protocol data lifetime during namespace teardown
Fernando Fernandez Mancera (2):
netfilter: nft_reject: prevent unbounded recursion in output hooks
netfilter: x_tables: check target name before accessing verdict
Florian Westphal (1):
netfilter: nat: zero newrange before filling it in
Joas Antonio dos Santos (1):
netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()
Laveesh Bansal (1):
netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag()
Michail Andreas Michalopoulos (1):
netfilter: flowtable: extend ct timeout of offloaded GRE flows
Pablo Neira Ayuso (1):
netfilter: nf_tables: fix memleak when rule deletion fails with hardware offload
Xingyuan Mo (1):
netfilter: nft_set_rbtree: check catchall_sync return before queue_done
Zihan Xi (1):
netfilter: nf_dup: preserve guard across NFQUEUE reinjection
include/linux/netdevice_xmit.h | 4 +-- include/net/netfilter/nf_dup_netdev.h | 35 ------------------------- include/net/netfilter/nf_queue.h | 1 + include/net/netfilter/nf_recursion.h | 42 ++++++++++++++++++++++++++++++ net/bridge/netfilter/nf_conntrack_bridge.c | 2 +- net/ipv4/netfilter/arp_tables.c | 5 ++-- net/ipv4/netfilter/ip_tables.c | 5 ++-- net/ipv4/netfilter/nf_reject_ipv4.c | 12 +++++++++ net/ipv6/netfilter/ip6_tables.c | 5 ++-- net/ipv6/netfilter/nf_reject_ipv6.c | 13 +++++++++ net/netfilter/ipvs/ip_vs_app.c | 2 +- net/netfilter/ipvs/ip_vs_core.c | 12 ++++----- net/netfilter/nf_conntrack_sip.c | 4 +-- net/netfilter/nf_dup_netdev.c | 1 + net/netfilter/nf_flow_table_core.c | 1 + net/netfilter/nf_nat_masquerade.c | 4 +-- net/netfilter/nf_queue.c | 1 + net/netfilter/nf_tables_api.c | 21 +++++++-------- net/netfilter/nf_tables_offload.c | 3 +++ net/netfilter/nfnetlink_queue.c | 17 +++++++++--- net/netfilter/nft_fwd_netdev.c | 1 + net/netfilter/nft_set_rbtree.c | 3 ++- net/netfilter/xt_NETMAP.c | 4 +-- net/netfilter/xt_recent.c | 7 ++--- 24 files changed, 129 insertions(+), 76 deletions(-) create mode 100644 include/net/netfilter/nf_recursion.h