Skip to content
Commit 39b2dd76 authored by Willem de Bruijn's avatar Willem de Bruijn Committed by David S. Miller
Browse files

inet: fix IP(V6)_RECVORIGDSTADDR for udp sockets



Socket cmsg IP(V6)_RECVORIGDSTADDR checks that port range lies within
the packet. For sockets that have transport headers pulled, transport
offset can be negative. Use signed comparison to avoid overflow.

Fixes: e6afc8ac ("udp: remove headers from UDP packets before queueing")
Reported-by: default avatarNisar Jagabar <njagabar@cloudmark.com>
Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9aa340a5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment