Skip to content
Commit bbf31bf1 authored by David Ford's avatar David Ford Committed by David S. Miller
Browse files

ipv4: additional update of dev_net(dev) to struct *net in ip_fragment.c, NULL ptr OOPS



ipv4 ip_frag_reasm(), fully replace 'dev_net(dev)' with 'net', defined
previously patched into 2.6.29.

Between 2.6.28.10 and 2.6.29, net/ipv4/ip_fragment.c was patched,
changing from dev_net(dev) to container_of(...).  Unfortunately the goto
section (out_fail) on oversized packets inside ip_frag_reasm() didn't
get touched up as well.  Oversized IP packets cause a NULL pointer
dereference and immediate hang.

I discovered this running openvasd and my previous email on this is
titled:  NULL pointer dereference at 2.6.32-rc8:net/ipv4/ip_fragment.c:566

Signed-off-by: default avatarDavid Ford <david@blue-labs.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 98468efd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment