Skip to contentSkip to conversation

netfilter updates for net (3.7-rc7)

PATCH In review [email protected] 2 participants 3 messages Nov 27, 2012 – Nov 28, 2012

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 netfilter updates for net (3.7-rc7)

From: Pablo Neira Ayuso <[email protected]>

Hi David,

This update contains one patch to fix an overflow via the interface name attribute in the ipset infrastructure, from Florian Westphal.

You can pull this change from:

git://1984.lsi.us.es/nf master

Thanks!

Florian Westphal (1):
netfilter: ipset: fix netiface set name overflow

 net/netfilter/ipset/ip_set_hash_netiface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.10.4
author maintainer
#1 lore raw

PATCH 1/1 netfilter: ipset: fix netiface set name overflow

From: Florian Westphal <[email protected]>

attribute is copied to IFNAMSIZ-size stack variable, but IFNAMSIZ is smaller than IPSET_MAXNAMELEN.

Fortunately nfnetlink needs CAP_NET_ADMIN.

---
 net/netfilter/ipset/ip_set_hash_netiface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipset/ip_set_hash_netiface.c +1 -1
index b9a6338..45a1014 100644
@@ -793,7 +793,7 @@ static struct ip_set_type hash_netiface_type __read_mostly = {
 		[IPSET_ATTR_IP]		= { .type = NLA_NESTED },
 		[IPSET_ATTR_IP_TO]	= { .type = NLA_NESTED },
 		[IPSET_ATTR_IFACE]	= { .type = NLA_NUL_STRING,
-					    .len = IPSET_MAXNAMELEN - 1 },
+					    .len  = IFNAMSIZ - 1 },
 		[IPSET_ATTR_CADT_FLAGS]	= { .type = NLA_U32 },
 		[IPSET_ATTR_CIDR]	= { .type = NLA_U8 },
 		[IPSET_ATTR_TIMEOUT]	= { .type = NLA_U32 },
Signature · 1 line
1.7.10.4
maintainer
#2 lore raw
In reply to [email protected]

From: [email protected]
Date: Tue, 27 Nov 2012 02:03:04 +0100

Quoted 10 lines

From: Pablo Neira Ayuso <[email protected]>

Hi David,

This update contains one patch to fix an overflow via the interface name attribute in the ipset infrastructure, from Florian Westphal.

You can pull this change from:

git://1984.lsi.us.es/nf master

Pulled, thanks Pablo.