netfilter updates for net
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 7 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ipvs: fix NULL deref in ip_vs_add_service error pathnet/ | +0 | 0 replies | Applied |
| 2/7 | netfilter: nfnetlink_log: initialize nfgenmsg in NLMSG_DONE terminatornet/ | +4 | 0 replies | Applied |
| 3/7 | netfilter: xt_multiport: validate range encoding in checkentrynet/ | +30 | 0 replies | Applied |
| 4/7 | netfilter: ip6t_eui64: reject invalid MAC header for all packetsnet/ | +1 | 0 replies | Applied |
| 5/7 | netfilter: nft_ct: fix use-after-free in timeout object destroyinclude/ net/ | +2 | 0 replies | Applied |
| 6/7 | netfilter: nfnetlink_queue: make hash table per queueinclude/ net/ | +49 | 0 replies | Applied |
| 7/7 | selftests: nft_queue.sh: add a parallel stress testtools/ tools/ | +115 | 0 replies | Applied |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Simon Horman | Julian Anastasov | Yuhang Zheng | Ren Wei |
|---|---|---|---|---|
| 1/7 | A-b | A-b | ||
| 2/7 | ||||
| 3/7 | T-b | |||
| 4/7 | T-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.
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