Patrick McHardy a50436f2cd net: ipmr/ip6mr: fix potential out-of-bounds vif_table access
mfc_parent of cache entries is used to index into the vif_table and is
initialised from mfcctl->mfcc_parent. This can take values of to 2^16-1,
while the vif_table has only MAXVIFS (32) entries. The same problem
affects ip6mr.

Refuse invalid values to fix a potential out-of-bounds access. Unlike
the other validity checks, this is checked in ipmr_mfc_add() instead of
the setsockopt handler since its unused in the delete path and might be
uninitialized.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-03-19 22:47:22 -07:00
..
2010-02-22 16:20:22 -08:00
2009-10-18 18:52:53 -07:00
2010-02-22 16:20:22 -08:00
2009-11-13 20:46:58 -08:00
2009-06-03 02:51:04 -07:00
2009-11-25 15:14:13 -08:00
2009-06-03 02:51:04 -07:00
2010-02-22 16:20:22 -08:00
2009-09-14 17:03:01 -07:00
2010-03-19 21:00:41 -07:00
2010-02-18 15:43:09 -08:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2010-02-18 15:43:09 -08:00
2010-03-05 13:34:03 -08:00
2010-03-08 11:32:01 -08:00
2009-05-25 22:44:59 -07:00
2010-03-18 20:29:24 -07:00
2009-09-14 17:03:01 -07:00
2010-03-05 13:34:03 -08:00
2010-01-17 19:16:02 -08:00
2009-06-03 02:51:04 -07:00
2009-06-03 02:51:04 -07:00
2009-06-03 02:51:04 -07:00
2010-03-03 01:04:37 -08:00