diff options
author | Willem de Bruijn <willemb@google.com> | 2016-12-23 02:19:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-15 15:42:52 +0300 |
commit | d36a1cb1e3285ba7eb1bcff5b231b4786deefc5b (patch) | |
tree | 35ee8f40462b31b51af0f9c1af1296ab5bd31700 /net/ipv6/raw.c | |
parent | ed3cc329c7bc82c0f29735d81b26f96287dbe08a (diff) | |
download | linux-d36a1cb1e3285ba7eb1bcff5b231b4786deefc5b.tar.xz |
inet: fix IP(V6)_RECVORIGDSTADDR for udp sockets
[ Upstream commit 39b2dd765e0711e1efd1d1df089473a8dd93ad48 ]
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: e6afc8ace6dd ("udp: remove headers from UDP packets before queueing")
Reported-by: Nisar Jagabar <njagabar@cloudmark.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6/raw.c')
0 files changed, 0 insertions, 0 deletions