Mathias Krause
4775cc1f2d
rtnl: stats - add missing netlink message size checks
...
We miss to check if the netlink message is actually big enough to contain
a struct if_stats_msg.
Add a check to prevent userland from sending us short messages that would
make us access memory beyond the end of the message.
Fixes: 10c9ead9f3c6 ("rtnetlink: add new RTM_GETSTATS message to dump...")
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-29 14:05:15 -05:00
..
2016-09-19 20:19:34 +02:00
2016-09-23 13:47:44 -04:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2016-09-10 21:19:10 -07:00
2016-12-28 15:11:32 -05:00
2016-12-24 11:46:01 -08:00
2016-12-06 21:33:19 -05:00
2016-12-16 10:24:44 -08:00
2016-12-24 11:46:01 -08:00
2016-12-06 21:33:19 -05:00
2016-12-25 17:21:22 +01:00
2016-12-14 22:39:08 +01:00
2016-12-29 14:05:15 -05:00
2016-12-03 23:54:25 -05:00
2016-12-03 12:29:53 -05:00
2016-12-24 11:46:01 -08:00
2016-12-03 12:29:53 -05:00
2016-11-07 20:15:55 -05:00
2016-10-30 12:42:58 -04:00
2016-12-16 00:13:43 +02:00
2016-12-27 16:04:37 -08:00
2016-12-29 11:55:17 -05:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-12-12 19:25:04 -08:00
2016-10-07 15:36:58 -07:00
2016-11-18 10:59:15 -05:00
2016-12-10 23:29:11 -05:00
2016-09-10 23:12:53 -07:00
2016-12-24 11:46:01 -08:00
2016-11-14 13:17:21 -05:00
2016-12-17 20:17:04 -08:00
2016-12-25 17:21:22 +01:00
2016-12-06 21:33:19 -05:00
2016-10-20 11:23:08 -04:00
2016-12-25 17:21:22 +01:00
2016-10-27 16:16:09 -04:00
2016-12-24 11:46:01 -08:00
2016-10-27 16:16:09 -04:00
2016-12-27 12:28:07 -05:00
2016-12-24 11:46:01 -08:00
2016-11-18 10:59:15 -05:00
2016-12-20 14:22:49 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 16:04:10 -08:00
2016-12-28 14:28:13 -05:00
2016-12-25 17:21:22 +01:00
2016-10-12 01:51:49 -04:00
2016-12-25 17:21:22 +01:00
2016-10-30 12:42:58 -04:00
2016-12-23 17:53:47 -05:00
2016-12-24 11:46:01 -08:00
2016-12-17 20:17:04 -08:00
2016-10-27 16:16:09 -04:00
2016-12-16 00:13:43 +02:00
2016-12-24 11:46:01 -08:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-12-02 10:51:49 -05:00
2016-12-25 17:21:22 +01:00
2016-10-06 09:52:23 -07:00