netlink: validate addr_len on bind
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Sat, 15 Dec 2012 15:42:19 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2012 04:50:51 +0000 (20:50 -0800)
commit4e4b53768f1ddce38b7f6edcad3a063020ef0024
tree2b65ca48277f2600771a56640365ecadd0cbf5e4
parent9f1e0ad0ad3e19fce3df864502e9f419204397d7
netlink: validate addr_len on bind

Otherwise an out of bounds read could happen.

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c