Skip to content

netfilter: bug fixes for net

Florian Westphal netdev netfilter-devel 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4netfilter: remove nf_conntrack_helper sysctl and modparam togglesinclude/net/netfilter/nf_conntrack.h include/net/netns/conntrack.h net/netfilter/nf_conntrack_core.c +5 more+37 -1073 repliesApplied
2/4netfilter: br_netfilter: Drop dst references before setting.net/bridge/br_netfilter_hooks.c net/bridge/br_netfilter_ipv6.c+3 -00 repliesApplied
3/4netfilter: nf_tables: clean up hook list when offload flags check failsnet/netfilter/nf_tables_api.c+3 -10 repliesApplied
4/4netfilter: nf_conntrack_irc: Fix forged IP logicnet/netfilter/nf_conntrack_irc.c+3 -20 repliesApplied

Reviews trailers per patch

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

PatchAaron ConoleFlorian Westphal
1/4A-b
2/4A-b
3/4
4/4

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 0/4] netfilter: bug fixes for net

Hello,

This patchset contains netfilter related fixes for the net tree.

1. Fix IP address check in irc DCC conntrack helper, this should check the opposite direction rather than the destination address of the packets' direction, from David Leadbeater.

2. bridge netfilter needs to drop dst references, from Harsh Modi. This was fine back in the day the code was originally written, but nowadays various tunnels can pre-set metadata dsts on packets.

3. Remove nf_conntrack_helper sysctl and the modparam toggle, users need to explicitily assign the helpers to use via nftables or iptables. Conntrack helpers, by design, may be used to add dynamic port redirections to internal machines, so its necessary to restrict which hosts/peers are allowed to use them.
The auto-assign-for-everything mechanism has been in "please don't do this" territory since 2012. From Pablo.

4. Fix a memory leak in the netdev hook error unwind path, also from Pablo.

----------------------------------------------------------------
The following changes since commit 13a9d08c296228d18289de60b83792c586e1d073:

net: lan966x: improve error handle in lan966x_fdma_rx_get_frame() (2022-08-30 23:18:17 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git

for you to fetch changes up to 0efe125cfb99e6773a7434f3463f7c2fa28f3a43:

netfilter: nf_conntrack_irc: Fix forged IP logic (2022-09-01 02:01:56 +0200)

----------------------------------------------------------------
David Leadbeater (1):
netfilter: nf_conntrack_irc: Fix forged IP logic

Harsh Modi (1):
netfilter: br_netfilter: Drop dst references before setting.

Pablo Neira Ayuso (2):
netfilter: remove nf_conntrack_helper sysctl and modparam toggles
netfilter: nf_tables: clean up hook list when offload flags check fails

 include/net/netfilter/nf_conntrack.h               |  2 -
 include/net/netns/conntrack.h                      |  1 -
 net/bridge/br_netfilter_hooks.c                    |  2 +
 net/bridge/br_netfilter_ipv6.c                     |  1 +
 net/netfilter/nf_conntrack_core.c                  |  7 +-
 net/netfilter/nf_conntrack_helper.c                | 80 +++-------------------
 net/netfilter/nf_conntrack_irc.c                   |  5 +-
 net/netfilter/nf_conntrack_netlink.c               |  5 --
 net/netfilter/nf_conntrack_standalone.c            | 10 ---
 net/netfilter/nf_tables_api.c                      |  4 +-
 net/netfilter/nft_ct.c                             |  3 -
 .../selftests/netfilter/nft_conntrack_helper.sh    | 36 +++++++---
 12 files changed, 46 insertions(+), 110 deletions(-)
Signature · 1 line
2.35.1