summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2016-12-28 19:52:15 +0300
committerDavid S. Miller <davem@davemloft.net>2016-12-29 22:05:15 +0300
commit4775cc1f2d5abca894ac32774eefc22c45347d1c (patch)
treeac0f9d20f70784f778aa821c870bb0dcf3ccd6a8 /net/ipv4
parentb2eb09af7370fedc6b9d9f05762f01625438467a (diff)
downloadlinux-4775cc1f2d5abca894ac32774eefc22c45347d1c.tar.xz
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>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions