diff options
author | Anant Thazhemadam <[email protected]> | 2020-10-07 09:24:01 +0530 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2020-10-08 12:37:25 +0200 |
commit | 3dc289f8f139997f4e9d3cfccf8738f20d23e47b (patch) | |
tree | 878859c1619029ae7c6ccb291cb941257f243a81 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d91dc434f2baa592e9793597421231174d57bbbf (diff) |
net: wireless: nl80211: fix out-of-bounds access in nl80211_del_key()
In nl80211_parse_key(), key.idx is first initialized as -1.
If this value of key.idx remains unmodified and gets returned, and
nl80211_key_allowed() also returns 0, then rdev_del_key() gets called
with key.idx = -1.
This causes an out-of-bounds array access.
Handle this issue by checking if the value of key.idx after
nl80211_parse_key() is called and return -EINVAL if key.idx < 0.
Cc: [email protected]
Reported-by: [email protected]
Tested-by: [email protected]
Signed-off-by: Anant Thazhemadam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions