[AF_NETLINK]: Fix DoS in netlink_rcv_skb()
authorMartin Murray <murrayma@citi.umich.edu>
Tue, 10 Jan 2006 21:02:29 +0000 (13:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Jan 2006 21:02:29 +0000 (13:02 -0800)
commitad8e4b75c8a7bed475d72ce09bf5267188621961
treefe9edd967818a744f87c2d1aa51443bae613fbbf
parentbabbdb1a18d37e57acae7e348ef122f2b905df0a
[AF_NETLINK]: Fix DoS in netlink_rcv_skb()

From: Martin Murray <murrayma@citi.umich.edu>

Sanity check nlmsg_len during netlink_rcv_skb.  An nlmsg_len == 0 can
cause infinite loop in kernel, effectively DoSing machine.  Noted by
Matin Murray.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c