Skip to content

Netfilter/IPVS fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 2 repliesApplied 12/12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12netfilter: nf_conntrack_helper: fix possible null deref during error lognet/netfilter/nf_conntrack_helper.c+8 -50 repliesApplied
2/12ipvs: avoid possible loop in ip_vs_dst_event on resizinginclude/net/ip_vs.h net/netfilter/ipvs/ip_vs_ctl.c+124 -660 repliesApplied
3/12netfilter: ipset: fix a potential dump-destroy racenet/netfilter/ipset/ip_set_core.c+1 -00 repliesApplied
4/12netfilter: nft_inner: Fix IPv6 inner_thoff desyncnet/netfilter/nft_inner.c+0 -10 repliesApplied
5/12netfilter: ipset: stop hash:* range iteration at endnet/netfilter/ipset/ip_set_hash_ipmark.c net/netfilter/ipset/ip_set_hash_ipport.c net/netfilter/ipset/ip_set_hash_ipportip.c +1 more+17 -40 repliesApplied
6/12netfilter: nft_inner: release local_lock before re-enabling softirqsnet/netfilter/nft_inner.c+1 -10 repliesApplied
7/12netfilter: ip6t_hbh: reject oversized option listsnet/ipv6/netfilter/ip6t_hbh.c+4 -00 repliesApplied
8/12netfilter: ipset: Fix data race between add and list header in all hash typesnet/netfilter/ipset/ip_set_core.c+2 -20 repliesApplied
9/12netfilter: ipset: Fix data race between add and dump in all hash typesnet/netfilter/ipset/ip_set_hash_gen.h+5 -20 repliesApplied
10/12netfilter: ipset: annotate "pos" for concurrent readers/writersnet/netfilter/ipset/ip_set_hash_gen.h+38 -240 repliesApplied
11/12netfilter: br_netfilter: Reallocate headroom if necessary in neigh_hh_bridge()include/net/neighbour.h net/bridge/br_netfilter_hooks.c+11 -30 repliesApplied
12/12netfilter: nf_queue: hold bridge skb->dev while queuedinclude/net/netfilter/nf_queue.h net/netfilter/nf_queue.c net/netfilter/nfnetlink_queue.c+6 -12 repliesApplied

Reviews trailers per patch

3 of 12 patches have a Reviewed-by or Acked-by.

PatchFernando Fernandez ManceraIdo Schimmel
1/12
2/12
3/12
4/12R-b
5/12
6/12R-b
7/12
8/12
9/12
10/12
11/12R-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 00/12] Netfilter/IPVS fixes for net

Hi,

The following patchset contains Netfilter/IPVS fixes for net:

1) Fix small race windows in nf_ct_helper_log() when accessing helper, from Florian Westphal.

2) Fix potential infinite loop and race conditions in IPVS caused by frequent user-triggered service table changes, from Julia Anastasov.

3) Fix a race condition when dumping ipsets for restore, from Jozsef Kadlecsik.

4) Fix inner transport offset in IPv6 in nft_inner when extension headers come before the layer 4 transport header, from Yizhou Zhao.

5) Fix incorrect iteration over IPv4 ranges in several hash set types, from Nan Li.

6) Fix incorrect order when restoring BH in nft_inner_restore_tun_ctx(), from Florian Westphal.

7) Validate option array from ip6t_hbh checkpath() to fix an off-by-one access, from Zhengchuan Liang.

8) Fix race condition between ipset list -terse and concurrent updates, from Jozsef Kadlecisk.

9) Fix race condition when inserting elements into a hash bucket, also from Jozsef.

10) Annotate access to first free slot in hashtable, from Jozsef Kadlecsik.

11) Ensure sufficient headroom in br_netfilter neigh transmission, from Lorenzo Bianconi.

12) Hold reference on skb->dev in nfqueue exit path, bridge local input is speciall since skb->dev != state->indev, allowing for net_device to go away while packet is sitting in nfqueue. From Haoze Xie.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-05-16

Thanks.

----------------------------------------------------------------

The following changes since commit 93d809adc13001e9d3a3ceb8d1e60fae2fb740d6:

Merge branch 'vsock-virtio-fix-vsockmon-tap-skb-construction' (2026-05-12 12:52:18 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git tags/nf-26-05-16

for you to fetch changes up to e196115ec330a18de415bdb9f5071aa9f08e53ce:

netfilter: nf_queue: hold bridge skb->dev while queued (2026-05-16 13:23:01 +0200)

----------------------------------------------------------------
netfilter pull request 26-05-16

----------------------------------------------------------------
Florian Westphal (2):
netfilter: nf_conntrack_helper: fix possible null deref during error log
netfilter: nft_inner: release local_lock before re-enabling softirqs

Haoze Xie (1):

      netfilter: nf_queue: hold bridge skb->dev while queued

Jozsef Kadlecsik (4):
netfilter: ipset: fix a potential dump-destroy race
netfilter: ipset: Fix data race between add and list header in all hash types
netfilter: ipset: Fix data race between add and dump in all hash types
netfilter: ipset: annotate "pos" for concurrent readers/writers

Julian Anastasov (1):
ipvs: avoid possible loop in ip_vs_dst_event on resizing

Lorenzo Bianconi (1):
netfilter: br_netfilter: Reallocate headroom if necessary in neigh_hh_bridge()

Nan Li (1):
netfilter: ipset: stop hash:* range iteration at end

Yizhou Zhao (1):
netfilter: nft_inner: Fix IPv6 inner_thoff desync

Zhengchuan Liang (1):
netfilter: ip6t_hbh: reject oversized option lists

 include/net/ip_vs.h                         |   3 +-
 include/net/neighbour.h                     |   8 +-
 include/net/netfilter/nf_queue.h            |   1 +
 net/bridge/br_netfilter_hooks.c             |   6 +-
 net/ipv6/netfilter/ip6t_hbh.c               |   4 +
 net/netfilter/ipset/ip_set_core.c           |   5 +-
 net/netfilter/ipset/ip_set_hash_gen.h       |  57 ++++++---
 net/netfilter/ipset/ip_set_hash_ipmark.c    |   6 +-
 net/netfilter/ipset/ip_set_hash_ipport.c    |   5 +-
 net/netfilter/ipset/ip_set_hash_ipportip.c  |   5 +-
 net/netfilter/ipset/ip_set_hash_ipportnet.c |   5 +-
 net/netfilter/ipvs/ip_vs_ctl.c              | 187 ++++++++++++++++++----------
 net/netfilter/nf_conntrack_helper.c         |  13 +-
 net/netfilter/nf_queue.c                    |   4 +-
 net/netfilter/nfnetlink_queue.c             |   2 +
 net/netfilter/nft_inner.c                   |   3 +-
 16 files changed, 211 insertions(+), 103 deletions(-)