]> err.no Git - linux-2.6/commit
[NETFILTER]: Fix potential memory corruption in NAT code (aka memory NAT)
authorPatrick McHardy <kaber@trash.net>
Fri, 22 Jul 2005 19:50:29 +0000 (12:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2005 19:50:29 +0000 (12:50 -0700)
commitd04b4f8c1c9766e49fad6a141fc61cb30db69a5c
tree4355aafff80fc9a09597d4990a45b51b30359cf3
parent4c1217deeb148ff8ab838ba4f1875d0f52dea343
[NETFILTER]: Fix potential memory corruption in NAT code (aka memory NAT)

The portptr pointing to the port in the conntrack tuple is declared static,
which could result in memory corruption when two packets of the same
protocol are NATed at the same time and one conntrack goes away.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_nat_proto_tcp.c
net/ipv4/netfilter/ip_nat_proto_udp.c