[PATCH 4.10 24/62] ipv6: sr: fix out-of-bounds access in SRH validation

2017-05-01 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: David Lebrun [ Upstream commit 2f3bb64247b5b083d05ccecad9c2e139bbfdc294 ] This patch fixes an out-of-bounds access in seg6_validate_srh() when the trailing data is

[PATCH 4.10 24/62] ipv6: sr: fix out-of-bounds access in SRH validation

2017-05-01 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: David Lebrun [ Upstream commit 2f3bb64247b5b083d05ccecad9c2e139bbfdc294 ] This patch fixes an out-of-bounds access in seg6_validate_srh() when the trailing data is less than sizeof(struct