]> git.baikalelectronics.ru Git - kernel.git/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)
commit59f3d1c488e6c6e9ee7a5b5f149700414cc8f1fa
tree4355aafff80fc9a09597d4990a45b51b30359cf3
parent1888babf3f9b983325d9075d5f0b35b92c0c58ba
[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