Robert Shearman
f8d54afc4c
mpls: Properly validate RTA_VIA payload length
...
If the nla length is less than 2 then the nla data could be accessed
beyond the accessible bounds. So ensure that the nla is big enough to
at least read the via_family before doing so. Replace magic value of
2.
Fixes: 03c0566542f4 ("mpls: Basic support for adding and removing routes")
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Robert Shearman <rshearma@brocade.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-06 15:19:06 -05:00
..
2015-02-14 23:08:44 +01:00
2015-01-21 16:28:45 +10:30
2015-03-02 16:43:41 -05:00
2015-03-03 17:01:37 -05:00
2015-03-03 17:01:37 -05:00
2015-03-03 17:01:37 -05:00
2015-03-05 13:17:39 -05:00
2015-02-22 17:00:08 -05:00
2015-03-03 17:01:37 -05:00
2015-03-05 14:52:23 -05:00
2015-03-03 21:16:48 -05:00
2015-03-02 13:06:31 -05:00
2015-02-19 14:14:42 -08:00
2015-03-04 00:23:23 -05:00
2014-11-16 14:50:52 -05:00
2015-03-02 13:06:31 -05:00
2015-03-06 14:54:22 -05:00
2015-03-06 00:18:20 -05:00
2015-03-03 17:01:38 -05:00
2015-03-01 13:40:23 -05:00
2015-03-02 14:47:12 -05:00
2015-03-06 14:57:42 -05:00
2015-03-04 00:23:23 -05:00
2015-03-02 13:06:31 -05:00
2015-03-03 21:16:48 -05:00
2015-03-02 13:06:31 -05:00
2015-03-02 13:06:31 -05:00
2015-03-03 17:01:38 -05:00
2015-03-02 13:06:31 -05:00
2015-03-03 21:16:48 -05:00
2015-01-03 01:51:51 +01:00
2015-03-06 15:19:06 -05:00
2015-03-03 21:16:48 -05:00
2015-02-11 20:25:11 -08:00
2015-03-03 21:16:48 -05:00
2015-03-02 16:43:41 -05:00
2015-03-02 13:06:31 -05:00
2015-03-03 14:38:57 -05:00
2015-03-03 21:16:48 -05:00
2015-03-02 13:06:31 -05:00
2015-03-02 13:06:31 -05:00
2015-02-04 14:57:45 -08:00
2015-03-02 16:43:41 -05:00
2015-03-03 21:16:48 -05:00
2015-03-05 21:30:44 -05:00
2015-03-02 13:06:31 -05:00
2015-03-03 15:52:50 -08:00
2015-03-06 12:43:54 -05:00
2015-03-05 22:08:42 -05:00
2015-03-02 13:06:31 -05:00
2015-03-02 13:06:31 -05:00
2015-03-03 21:16:48 -05:00
2015-03-02 13:06:31 -05:00
2015-01-18 01:03:45 -05:00
2015-03-03 21:16:48 -05:00
2015-01-07 13:08:04 +01:00
2015-03-04 00:26:06 -05:00
2015-03-02 13:06:31 -05:00