android_kernel_motorola_sm6375/net/wireless
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anant Thazhemadam 0338fa4af9 nl80211: validate key indexes for cfg80211_registered_device
commit 2d9463083ce92636a1bdd3e30d1236e3e95d859e upstream

syzbot discovered a bug in which an OOB access was being made because
an unsuitable key_idx value was wrongly considered to be acceptable
while deleting a key in nl80211_del_key().

Since we don't know the cipher at the time of deletion, if
cfg80211_validate_key_settings() were to be called directly in
nl80211_del_key(), even valid keys would be wrongly determined invalid,
and deletion wouldn't occur correctly.
For this reason, a new function - cfg80211_valid_key_idx(), has been
created, to determine if the key_idx value provided is valid or not.
cfg80211_valid_key_idx() is directly called in 2 places -
nl80211_del_key(), and cfg80211_validate_key_settings().

Reported-by: [email protected]
Tested-by: [email protected]
Suggested-by: Johannes Berg <[email protected]>
Signed-off-by: Anant Thazhemadam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
[also disallow IGTK key IDs if no IGTK cipher is supported]
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Zubin Mithra <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-06-10 13:37:02 +02:00
..
certs
.gitignore
ap.c
chan.c
core.c cfg80211: initialize wdev data earlier 2020-11-18 19:20:23 +01:00
core.h nl80211: validate key indexes for cfg80211_registered_device 2021-06-10 13:37:02 +02:00
debugfs.c
debugfs.h
ethtool.c
ibss.c
Kconfig lib80211: fix unmet direct dependendices config warning when !CRYPTO 2020-10-01 13:18:20 +02:00
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
Makefile
mesh.c
mlme.c
nl80211.c nl80211: validate key indexes for cfg80211_registered_device 2021-06-10 13:37:02 +02:00
nl80211.h
ocb.c
of.c
pmsr.c
radiotap.c
rdev-ops.h
reg.c cfg80211: regulatory: Fix inconsistent format argument 2020-11-18 19:20:23 +01:00
reg.h
scan.c cfg80211: scan: drop entry from hidden_list on overflow 2021-05-14 09:44:13 +02:00
sme.c cfg80211: remove WARN_ON() in cfg80211_sme_connect 2021-04-14 08:24:18 +02:00
sysfs.c
sysfs.h
trace.c
trace.h
util.c nl80211: validate key indexes for cfg80211_registered_device 2021-06-10 13:37:02 +02:00
wext-compat.c
wext-compat.h
wext-core.c wext: fix NULL-ptr-dereference with cfg80211's lack of commit() 2021-02-03 23:25:56 +01:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c