OSDN Git Service

nl80211: Check for the required netlink attribute presence
authorHao Chen <flank3rsky@gmail.com>
Wed, 3 Jan 2018 03:00:31 +0000 (11:00 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jan 2018 14:22:02 +0000 (15:22 +0100)
commit3ea15452ee85754f70f3b9fa1f23165ef2e77ba7
tree6b845a2ef0a25201fc05cfc0fe6a6a72f664bfc0
parent820d1d5eba5e0db88432f4b19149d87523ee193c
nl80211: Check for the required netlink attribute presence

nl80211_nan_add_func() does not check if the required attribute
NL80211_NAN_FUNC_FOLLOW_UP_DEST is present when processing
NL80211_CMD_ADD_NAN_FUNCTION request. This request can be issued
by users with CAP_NET_ADMIN privilege and may result in NULL dereference
and a system crash. Add a check for the required attribute presence.

Signed-off-by: Hao Chen <flank3rsky@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c