Skip to content

netfilter updates for net

Florian Westphal 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 Latest7 patches 0 repliesApplied 7/7

Patches in v1 All 7 applied

#Subject and filesSizeRepliesApplied
1/7ipvs: fix NULL deref in ip_vs_add_service error pathnet/netfilter/ipvs/ip_vs_ctl.c+0 -10 repliesApplied
2/7netfilter: nfnetlink_log: initialize nfgenmsg in NLMSG_DONE terminatornet/netfilter/nfnetlink_log.c+4 -40 repliesApplied
3/7netfilter: xt_multiport: validate range encoding in checkentrynet/netfilter/xt_multiport.c+30 -40 repliesApplied
4/7netfilter: ip6t_eui64: reject invalid MAC header for all packetsnet/ipv6/netfilter/ip6t_eui64.c+1 -20 repliesApplied
5/7netfilter: nft_ct: fix use-after-free in timeout object destroyinclude/net/netfilter/nf_conntrack_timeout.h net/netfilter/nft_ct.c+2 -10 repliesApplied
6/7netfilter: nfnetlink_queue: make hash table per queueinclude/net/netfilter/nf_queue.h net/netfilter/nfnetlink_queue.c+49 -910 repliesApplied
7/7selftests: nft_queue.sh: add a parallel stress testtools/testing/selftests/net/netfilter/nf_queue.c tools/testing/selftests/net/netfilter/nft_queue.sh+115 -180 repliesApplied

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchSimon HormanJulian AnastasovYuhang ZhengRen Wei
1/7A-b A-b
2/7
3/7T-b
4/7T-b
5/7
6/7
7/7

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

Read the v1 thread

Cover letter [PATCH net 0/7] netfilter updates for net

Hi.

This pull requests contain netfilter fixes for the *net* tree. I only included crash fixes, as we're closer to a release, rest will be handled via -next.

1) Fix a NULL pointer dereference in ip_vs_add_service error path, from Weiming Shi, bug added in 6.2 development cycle.

2) Don't leak kernel data bytes from allocator to userspace: nfnetlink_log needs to init the trailing NLMSG_DONE terminator. From Xiang Mei.

3) xt_multiport match lacks range validation, bogus userspace request will cause out-of-bounds read. From Ren Wei.

4) ip6t_eui64 match must reject packets with invalid mac header before calling eth_hdr. Make existing check unconditional. From Zhengchuan Liang.

5) nft_ct timeout policies are free'd via kfree() while they may still be reachable by other cpus that process a conntrack object that uses such a timeout policy. Existing reaping of entries is not sufficient because it doesn't wait for a grace period. Use kfree_rcu(). From Tuan Do.

6/7) Make nfnetlink_queue hash table per queue. As-is we can hit a page
fault in case underlying page of removed element was free'd. Per-queue hash prevents parallel lookups. This comes with a test case that demonstrates the bug, from Fernando Fernandez Mancera.

Please, pull these changes from:
The following changes since commit f821664dde29302e8450aa0597bf1e4c7c5b0a22:

Merge branch 'seg6-fix-dst_cache-sharing-in-seg6-lwtunnel' (2026-04-07 20:21:00 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-04-08

for you to fetch changes up to dde1a6084c5ca9d143a562540d5453454d79ea15:

selftests: nft_queue.sh: add a parallel stress test (2026-04-08 13:34:51 +0200)

----------------------------------------------------------------
netfilter pull request nf-26-04-08

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

Fernando Fernandez Mancera (1):
selftests: nft_queue.sh: add a parallel stress test

Florian Westphal (1):
netfilter: nfnetlink_queue: make hash table per queue

Ren Wei (1):
netfilter: xt_multiport: validate range encoding in checkentry

Tuan Do (1):
netfilter: nft_ct: fix use-after-free in timeout object destroy

Weiming Shi (1):
ipvs: fix NULL deref in ip_vs_add_service error path

Xiang Mei (1):
netfilter: nfnetlink_log: initialize nfgenmsg in NLMSG_DONE terminator

Zhengchuan Liang (1):
netfilter: ip6t_eui64: reject invalid MAC header for all packets

 include/net/netfilter/nf_conntrack_timeout.h  |   1 +
 include/net/netfilter/nf_queue.h              |   1 -
 net/ipv6/netfilter/ip6t_eui64.c               |   3 +-
 net/netfilter/ipvs/ip_vs_ctl.c                |   1 -
 net/netfilter/nfnetlink_log.c                 |   8 +-
 net/netfilter/nfnetlink_queue.c               | 139 ++++++------------
 net/netfilter/nft_ct.c                        |   2 +-
 net/netfilter/xt_multiport.c                  |  34 ++++-
 .../selftests/net/netfilter/nf_queue.c        |  50 ++++++-
 .../selftests/net/netfilter/nft_queue.sh      |  83 +++++++++--
 10 files changed, 201 insertions(+), 121 deletions(-)
Signature · 1 line
2.52.0