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 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8netfilter: nft_osf: restrict it to ipv4net/netfilter/nft_osf.c+5 -10 repliesApplied
2/8netfilter: nfnetlink_osf: fix divide-by-zero in OSF_WSS_MODULOnet/netfilter/nfnetlink_osf.c+4 -00 repliesApplied
3/8netfilter: conntrack: remove sprintf usagenet/netfilter/nf_nat_amanda.c net/netfilter/nf_nat_sip.c+19 -160 repliesApplied
4/8netfilter: xtables: restrict several matches to inet familynet/netfilter/xt_mac.c net/netfilter/xt_owner.c net/netfilter/xt_physdev.c +1 more+68 -340 repliesApplied
5/8netfilter: nat: use kfree_rcu to release opsnet/ipv4/netfilter/iptable_nat.c net/ipv6/netfilter/ip6table_nat.c net/netfilter/nf_nat_core.c+10 -80 repliesApplied
6/8ipvs: fix MTU check for GSO packets in tunnel modenet/netfilter/ipvs/ip_vs_xmit.c+15 -40 repliesApplied
7/8netfilter: nfnetlink_osf: fix out-of-bounds read on option matchingnet/netfilter/nfnetlink_osf.c+8 -110 repliesApplied
8/8netfilter: nfnetlink_osf: fix potential NULL dereference in ttl checknet/netfilter/nfnetlink_osf.c+7 -150 repliesApplied

Reviews trailers per patch

5 of 8 patches have a Reviewed-by or Acked-by.

PatchFlorian WestphalFernando Fernandez ManceraJulian AnastasovPablo Neira Ayuso
1/8A-b R-b
2/8R-b
3/8
4/8
5/8
6/8A-b
7/8R-b
8/8R-b

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/8] Netfilter/IPVS fixes for net

Hi,

The following batch contains Netfilter/IPVS fixes for net:

1) nft_osf actually only supports IPv4, restrict it.

2) Address possible division by zero in nfnetlink_osf, from Xiang Mei.

3) Remove unsafe use of sprintf to fix possible buffer overflow in the SIP NAT helper, from Florian Westphal.

4) Restrict xt_mac, xt_owner and xt_physdev to inet families only; xt_realm is only for ipv4, otherwise null-pointer-deref is possible.

5) Use kfree_rcu() in nat core to release hooks, this can be an issue once nfnetlink_hook gets support to dump NAT hook information, not currently a real issue but better fix it now. From Florian Westphal.

6) Fix MTU checks in IPVS, from Yingnan Zhang.

7) Fix possible out-of-bounds when matching TCP options in nfnetlink_osf, from Fernando Fernandez Mancera.

8) Fix potential nul-ptr-deref in ttl check in nfnetlink_osf, remove useless loop to fix this, also from Fernando.

This is a smaller batch, there are more patches pending in the queue to arm another pull request as soon as this is considered good enough.

AI might complain again about one more issue regarding osf and big-endian arches in osf but this batch is targetting crash fixes for osf at this stage.

Please, pull these changes from:

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

Thanks.

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

The following changes since commit a663bac71a2f0b3ac6c373168ca57b2a6e6381aa:

net: mctp: fix don't require received header reserved bits to be zero (2026-04-20 11:46:57 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git tags/nf-26-04-20

for you to fetch changes up to 711987ba281fd806322a7cd244e98e2a81903114:

netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check (2026-04-20 23:45:44 +0200)

----------------------------------------------------------------
netfilter pull request 26-04-20

----------------------------------------------------------------
Fernando Fernandez Mancera (2):
netfilter: nfnetlink_osf: fix out-of-bounds read on option matching
netfilter: nfnetlink_osf: fix potential NULL dereference in ttl check

Florian Westphal (1):
netfilter: conntrack: remove sprintf usage

Pablo Neira Ayuso (3):
netfilter: nft_osf: restrict it to ipv4
netfilter: xtables: restrict several matches to inet family
netfilter: nat: use kfree_rcu to release ops

Xiang Mei (1):
netfilter: nfnetlink_osf: fix divide-by-zero in OSF_WSS_MODULO

Yingnan Zhang (1):
ipvs: fix MTU check for GSO packets in tunnel mode

 net/ipv4/netfilter/iptable_nat.c  |  4 ++--
 net/ipv6/netfilter/ip6table_nat.c |  4 ++--
 net/netfilter/ipvs/ip_vs_xmit.c   | 19 +++++++++++++----
 net/netfilter/nf_nat_amanda.c     |  2 +-
 net/netfilter/nf_nat_core.c       | 10 +++++----
 net/netfilter/nf_nat_sip.c        | 33 +++++++++++++++-------------
 net/netfilter/nfnetlink_osf.c     | 45 +++++++++++++++++----------------------
 net/netfilter/nft_osf.c           |  6 +++++-
 net/netfilter/xt_mac.c            | 34 +++++++++++++++++++----------
 net/netfilter/xt_owner.c          | 37 +++++++++++++++++++++-----------
 net/netfilter/xt_physdev.c        | 29 ++++++++++++++++---------
 net/netfilter/xt_realm.c          |  2 +-
 12 files changed, 136 insertions(+), 89 deletions(-)