Skip to content

Netfilter fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5netfilter: ipt_CLUSTERIP: fix use-after-free of proc entrynet/ipv4/netfilter/ipt_CLUSTERIP.c+3 -10 replies
2/5netfilter: nft_compat: check extension hook mask only if setnet/netfilter/nft_compat.c+2 -20 replies
3/5netfilter: x_tables: Fix use-after-free in ipt_do_table.net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/ip_tables.c+10 -90 replies
4/5netfilter: check for seqadj ext existence before adding it in nf_nat_setup_infonet/netfilter/nf_nat_core.c+1 -10 replies
5/5netfilter: nf_tables: Fix nft limit burst handlingnet/netfilter/nft_limit.c+14 -110 replies

Reviews trailers per patch

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

PatchXin LongFlorian WestphalJoe Stringer
1/5R-b
2/5
3/5
4/5A-b
5/5A-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 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] Netfilter fixes for net

Hi David,

The following patchset contains Netfilter fixes for your net tree, they are:

1) Fix use after free of struct proc_dir_entry in ipt_CLUSTERIP, patch from Sabrina Dubroca.

2) Fix spurious EINVAL errors from iptables over nft compatibility layer.

3) Reload pointer to ip header only if there is non-terminal verdict, ie. XT_CONTINUE, otherwise invalid memory access may happen, patch from Taehee Yoo.

4) Fix interaction between SYNPROXY and NAT, SYNPROXY adds sequence adjustment already, however from nf_nat_setup() assumes there's not. Patch from Xin Long.

5) Fix burst arithmetics in nft_limit as Joe Stringer mentioned during NFWS in Faro. Patch from Andy Zhou.

You can pull these changes from:

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

Thanks a lot!

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

The following changes since commit 073dd5ad34b1d3aaadaa7e5e8cbe576d9545f163:

netfilter: fix netfilter_net_init() return (2017-07-18 14:50:28 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git HEAD

for you to fetch changes up to c26844eda9d4fdbd266660e3b3de2d0270e3a1ed:

netfilter: nf_tables: Fix nft limit burst handling (2017-08-24 16:23:17 +0200)

----------------------------------------------------------------
Pablo Neira Ayuso (1):
netfilter: nft_compat: check extension hook mask only if set

Sabrina Dubroca (1):
netfilter: ipt_CLUSTERIP: fix use-after-free of proc entry

Taehee Yoo (1):
netfilter: x_tables: Fix use-after-free in ipt_do_table.

Xin Long (1):
netfilter: check for seqadj ext existence before adding it in nf_nat_setup_info

andy zhou (1):
netfilter: nf_tables: Fix nft limit burst handling

 net/ipv4/netfilter/arp_tables.c    | 10 +++++-----
 net/ipv4/netfilter/ip_tables.c     |  9 +++++----
 net/ipv4/netfilter/ipt_CLUSTERIP.c |  4 +++-
 net/netfilter/nf_nat_core.c        |  2 +-
 net/netfilter/nft_compat.c         |  4 ++--
 net/netfilter/nft_limit.c          | 25 ++++++++++++++-----------
 6 files changed, 30 insertions(+), 24 deletions(-)