1
0
Fork 0
alistair23-linux/net/mpls
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: 03c0566542 ("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
..
Kconfig mpls: Basic routing support 2015-03-04 00:26:06 -05:00
Makefile mpls: Basic routing support 2015-03-04 00:26:06 -05:00
af_mpls.c mpls: Properly validate RTA_VIA payload length 2015-03-06 15:19:06 -05:00
internal.h mpls: Functions for reading and wrinting mpls labels over netlink 2015-03-04 00:26:06 -05:00
mpls_gso.c net: mark some potential candidates __read_mostly 2015-01-30 17:58:39 -08:00