Skip to content

Netfilter for net

Pablo Neira Ayuso netdev netfilter-devel 17 versions – 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 · linked by author and title

  1. v2 posting 14/144 patches 0 repliesApplied 4/4
  2. v2 posting 13/144 patches 0 repliesSuperseded
  3. v2 posting 12/149 patches 0 repliesApplied 9/9
Earlier versions · 14
VersionPostedPatchesRepliesStatus
v2 posting 11/1414 patches1 replyApplied 14/14
v2 posting 10/148 patches0 repliesApplied 8/8
v3 Latest posting 2/212 patches12 repliesApplied 12/12
v2 posting 9/1414 patches0 repliesSuperseded
v2 posting 8/140 of 7 patches4 repliesSuperseded
v2 posting 7/144 patches7 repliesSuperseded
v2 posting 6/1414 patches0 repliesApplied 14/14
v2 posting 5/143 patches0 repliesApplied 3/3
v3 posting 1/26 patches0 repliesApplied 6/6
v2 posting 4/146 patches4 repliesSuperseded
v2 posting 3/143 patches0 repliesApplied 3/3
v2 posting 2/1413 patches1 replyApplied 13/13
v2 posting 1/1413 patches0 repliesApplied 13/13
v114 patches9 repliesSuperseded

Patches in v3 posting 2/2 All 12 applied

#Subject and filesSizeRepliesApplied
1/12netfilter: nft_set_pipapo_avx2: don't return non-matching entry on expirynet/netfilter/nft_set_pipapo_avx2.c+10 -100 repliesApplied
2/12selftests: netfilter: nft_concat_range.sh: add check for flush+reload bugtools/testing/selftests/net/netfilter/nft_concat_range.sh+69 -10 repliesApplied
3/12netfilter: nfnetlink_log: fix uninitialized padding leak in NFULA_PAYLOADnet/netfilter/nfnetlink_log.c+2 -60 repliesApplied
4/12netfilter: ip6t_rt: reject oversized addrnr in rt_mt6_check()net/ipv6/netfilter/ip6t_rt.c+4 -00 repliesApplied
5/12netfilter: nft_set_rbtree: revisit array resize logicnet/netfilter/nft_set_rbtree.c+75 -170 repliesApplied
6/12netfilter: nf_conntrack_expect: honor expectation helper fieldinclude/net/netfilter/nf_conntrack_expect.h net/netfilter/nf_conntrack_broadcast.c net/netfilter/nf_conntrack_expect.c +4 more+29 -128 repliesApplied
7/12netfilter: nf_conntrack_expect: use expect->helpernet/netfilter/nf_conntrack_expect.c net/netfilter/nf_conntrack_helper.c net/netfilter/nf_conntrack_netlink.c +1 more+13 -210 repliesApplied
8/12netfilter: ctnetlink: ensure safe access to master conntrackinclude/net/netfilter/nf_conntrack_core.h net/netfilter/nf_conntrack_ecache.c net/netfilter/nf_conntrack_expect.c +1 more+35 -100 repliesApplied
9/12netfilter: nf_conntrack_expect: store netns and zone in expectationinclude/net/netfilter/nf_conntrack_expect.h net/netfilter/nf_conntrack_broadcast.c net/netfilter/nf_conntrack_expect.c +1 more+34 -40 repliesApplied
10/12netfilter: nf_conntrack_expect: skip expectations in other netns via procnet/netfilter/nf_conntrack_expect.c+4 -00 repliesApplied
11/12netfilter: nf_conntrack_sip: fix use of uninitialized rtp_addr in process_sdpnet/netfilter/nf_conntrack_sip.c+10 -40 repliesApplied
12/12netfilter: ctnetlink: use netlink policy range checksinclude/uapi/linux/netfilter/nf_conntrack_common.h net/netfilter/nf_conntrack_netlink.c net/netfilter/nf_conntrack_proto_tcp.c+12 -180 repliesApplied

Reviews trailers per patch

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

PatchStefano BrivioYuhang ZhengIlya Maximets
1/12R-b
2/12R-b
3/12
4/12T-b
5/12
6/12T-b
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH net,v3 00/12] Netfilter for net

This is v3, I kept back an ipset fix and another to tigthen the xtables interface to reject invalid combinations with the NFPROTO_ARP family. They need a bit more discussion. I fixed the issues reported by AI on patch 9 (add #ifdef to access ct zone, update nf_conntrack_broadcast and patch 10 (use better Fixes: tag). Thanks!

-o-

Hi,

The following patchset contains Netfilter fixes for *net*.

Note that most bugs fixed here stem from 2.6 days, the large PR is not due to an increase in regressions.

1) Fix incorrect reject of set updates with nf_tables pipapo set avx2 backend. This comes with a regression test in patch 2. From Florian Westphal.

2) nfnetlink_log needs to zero padding to prevent infoleak to userspace, from Weiming Shi.

3) xtables ip6t_rt module never validated that addrnr length is within the allowed array boundary. Reject bogus values. From Ren Wei.

4) Fix high memory usage in rbtree set backend that was unwanted side-effect of the recently added binary search blob. From Pablo Neira Ayuso.

5) Patches 5 to 10, also from Pablo, address long-standing RCU safety bugs in conntracks handling of expectations: We can never safely defer a conntrack extension area without holding a reference. Yet expectation handling does so in multiple places. Fix this by avoiding the need to look into the master conntrack to begin with and by extending locked sections in a few places.

11) Fix use of uninitialized rtp_addr in the sip conntrack helper, also from Weiming Shi.

12) Add stricter netlink policy checks in ctnetlink, from David Carlier. This avoids undefined behaviour when userspace provides huge wscale value.

Please, pull these changes from:

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

Thanks.

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

The following changes since commit c4ea7d8907cf72b259bf70bd8c2e791e1c4ff70f:

net: mana: fix use-after-free in add_adev() error path (2026-03-24 21:07:58 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 8f15b5071b4548b0aafc03b366eb45c9c6566704:

netfilter: ctnetlink: use netlink policy range checks (2026-03-26 13:28:17 +0100)

----------------------------------------------------------------
netfilter pull request 26-03-26

----------------------------------------------------------------
David Carlier (1):
netfilter: ctnetlink: use netlink policy range checks

Florian Westphal (2):
netfilter: nft_set_pipapo_avx2: don't return non-matching entry on expiry
selftests: netfilter: nft_concat_range.sh: add check for flush+reload bug

Pablo Neira Ayuso (6):
netfilter: nft_set_rbtree: revisit array resize logic
netfilter: nf_conntrack_expect: honor expectation helper field
netfilter: nf_conntrack_expect: use expect->helper
netfilter: ctnetlink: ensure safe access to master conntrack
netfilter: nf_conntrack_expect: store netns and zone in expectation
netfilter: nf_conntrack_expect: skip expectations in other netns via proc

Ren Wei (1):
netfilter: ip6t_rt: reject oversized addrnr in rt_mt6_check()

Weiming Shi (2):
netfilter: nfnetlink_log: fix uninitialized padding leak in NFULA_PAYLOAD
netfilter: nf_conntrack_sip: fix use of uninitialized rtp_addr in process_sdp

 include/net/netfilter/nf_conntrack_core.h          |  5 ++
 include/net/netfilter/nf_conntrack_expect.h        | 20 ++++-
 include/uapi/linux/netfilter/nf_conntrack_common.h |  4 +
 net/ipv6/netfilter/ip6t_rt.c                       |  4 +
 net/netfilter/nf_conntrack_broadcast.c             |  8 +-
 net/netfilter/nf_conntrack_ecache.c                |  2 +
 net/netfilter/nf_conntrack_expect.c                | 39 +++++++--
 net/netfilter/nf_conntrack_h323_main.c             | 12 +--
 net/netfilter/nf_conntrack_helper.c                | 11 +--
 net/netfilter/nf_conntrack_netlink.c               | 75 ++++++++++--------
 net/netfilter/nf_conntrack_proto_tcp.c             | 10 +--
 net/netfilter/nf_conntrack_sip.c                   | 18 +++--
 net/netfilter/nfnetlink_log.c                      |  8 +-
 net/netfilter/nft_set_pipapo_avx2.c                | 20 ++---
 net/netfilter/nft_set_rbtree.c                     | 92 ++++++++++++++++++----
 .../selftests/net/netfilter/nft_concat_range.sh    | 70 +++++++++++++++-
 16 files changed, 296 insertions(+), 102 deletions(-)