* Patch "ipv6: sr: fix out-of-bounds access in SRH validation" has been added to the 4.10-stable tree
@ 2017-04-29 6:23 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-04-29 6:23 UTC (permalink / raw)
To: david.lebrun, andreyknvl, davem, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
ipv6: sr: fix out-of-bounds access in SRH validation
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ipv6-sr-fix-out-of-bounds-access-in-srh-validation.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From foo@baz Sat Apr 29 08:22:40 CEST 2017
From: David Lebrun <david.lebrun@uclouvain.be>
Date: Tue, 18 Apr 2017 17:59:49 +0200
Subject: ipv6: sr: fix out-of-bounds access in SRH validation
From: David Lebrun <david.lebrun@uclouvain.be>
[ Upstream commit 2f3bb64247b5b083d05ccecad9c2e139bbfdc294 ]
This patch fixes an out-of-bounds access in seg6_validate_srh() when the
trailing data is less than sizeof(struct sr6_tlv).
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
net/ipv6/seg6.c | 3 +++
1 file changed, 3 insertions(+)
--- a/net/ipv6/seg6.c
+++ b/net/ipv6/seg6.c
@@ -53,6 +53,9 @@ bool seg6_validate_srh(struct ipv6_sr_hd
struct sr6_tlv *tlv;
unsigned int tlv_len;
+ if (trailing < sizeof(*tlv))
+ return false;
+
tlv = (struct sr6_tlv *)((unsigned char *)srh + tlv_offset);
tlv_len = sizeof(*tlv) + tlv->len;
Patches currently in stable-queue which might be from david.lebrun@uclouvain.be are
queue-4.10/ipv6-sr-fix-double-free-of-skb-after-handling-invalid-srh.patch
queue-4.10/ipv6-sr-fix-out-of-bounds-access-in-srh-validation.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-29 6:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-29 6:23 Patch "ipv6: sr: fix out-of-bounds access in SRH validation" has been added to the 4.10-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).