Re: [PATCH net] rtnl: stats - add missing netlink message size checks

2016-12-29 Thread David Miller
From: Mathias Krause Date: Wed, 28 Dec 2016 17:52:15 +0100 > 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. >

[PATCH net] rtnl: stats - add missing netlink message size checks

2016-12-28 Thread Mathias Krause
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..."