Sabrina Dubroca
6399f1fae4
ipv6: avoid overflow of offset in ip6_find_1stfragopt
...
In some cases, offset can overflow and can cause an infinite loop in
ip6_find_1stfragopt(). Make it unsigned int to prevent the overflow, and
cap it at IPV6_MAXPLEN, since packets larger than that should be invalid.
This problem has been here since before the beginning of git history.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-19 22:50:14 -07:00
..
2017-06-20 12:18:27 +02:00
2017-06-20 13:30:14 -04:00
2017-06-26 23:13:22 -04:00
2017-06-16 11:48:40 -04:00
2017-07-04 22:35:16 +01:00
2017-07-04 22:35:19 +01:00
2017-06-16 11:48:39 -04:00
2017-07-05 12:31:59 -07:00
2017-05-02 11:46:28 -04:00
2017-07-14 08:19:23 -07:00
2017-07-01 07:39:08 -07:00
2017-06-16 11:48:37 -04:00
2017-07-07 17:25:19 +02:00
2017-07-19 22:29:41 -07:00
2017-05-21 13:42:33 -04:00
2017-07-13 09:24:02 -07:00
2017-07-04 22:35:15 +01:00
2017-06-20 13:30:15 -04:00
2017-06-16 11:48:40 -04:00
2017-06-26 23:13:21 -04:00
2017-06-26 23:13:22 -04:00
2017-07-18 12:01:39 -07:00
2017-07-19 22:50:14 -07:00
2017-07-04 22:35:17 +01:00
2017-07-05 16:05:24 -07:00
2017-07-03 02:31:22 -07:00
2017-07-01 07:39:08 -07:00
2017-07-04 22:35:18 +01:00
2017-07-04 22:35:15 +01:00
2017-07-04 22:35:16 +01:00
2017-07-04 22:35:15 +01:00
2017-06-20 13:30:15 -04:00
2017-06-07 15:53:24 -04:00
2017-07-08 11:26:41 +01:00
2017-06-16 11:48:40 -04:00
2017-07-18 14:50:28 -07:00
2017-07-01 07:39:08 -07:00
2017-07-04 22:35:17 +01:00
2017-06-23 00:38:31 +02:00
2017-07-15 14:40:21 -07:00
2017-07-14 08:20:28 -07:00
2017-07-01 07:39:08 -07:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:39 -04:00
2017-07-08 11:16:16 +01:00
2017-06-13 11:07:51 +02:00
2017-07-01 07:39:08 -07:00
2017-07-14 08:52:33 -07:00
2017-07-14 09:05:10 -07:00
2017-05-16 14:49:43 -04:00
2017-07-04 22:35:17 +01:00
2017-06-08 14:16:24 -04:00
2017-07-01 07:39:08 -07:00
2017-07-06 10:58:19 +01:00
2017-07-05 12:31:59 -07:00
2017-06-20 13:30:15 -04:00
2017-07-07 11:35:55 +01:00
2017-07-04 22:35:18 +01:00
2017-07-04 22:35:18 +01:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00
2017-07-05 13:13:32 -07:00
2017-04-16 23:42:49 -05:00