diff options
author | Mathias Krause <minipli@googlemail.com> | 2016-12-28 16:52:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-15 12:42:54 (GMT) |
commit | 2ffc694b572729d5f3e450a3b7d953eb88f4d550 (patch) | |
tree | 147894cc606615d765aaddf615267583078102a2 /net/phonet | |
parent | 8cb7d6277f01327d0503cd679afa9b09e76f2c97 (diff) | |
download | linux-2ffc694b572729d5f3e450a3b7d953eb88f4d550.tar.xz |
rtnl: stats - add missing netlink message size checks
[ Upstream commit 4775cc1f2d5abca894ac32774eefc22c45347d1c ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/phonet')
0 files changed, 0 insertions, 0 deletions