mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
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 <[email protected]> Signed-off-by: Johannes Berg <[email protected]>