aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-01-27 16:43:45 +0530
committerJoey Rizzoli <joey@lineageos.org>2017-06-14 23:00:20 +0200
commit31696b03153c08324e4c4623be82deeb5161b737 (patch)
tree831896f9d5a2e2f0bfc7b40a1fc5c91aa4275bce /net/lapb/lapb_timer.c
parentf3da5c19bdd2b20846be6c19107e68bf5556b6a8 (diff)
prima: Avoid overflow of "set_bssid_hotlist" params
The wlan driver supports the following vendor command: QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST This command supplies a "number of APs" attribute as well as a list of per-AP attributes. However there is no validation that the number of APs provided won't overflow the destination buffer. In addition there is no validation that the number of APs actually provided matches the number of APs expected. To address these issues: * Verify that the expected number of APs doesn't exceed the maximum allowed number of APs * Verify that the actual number of APs supplied doesn't exceed the expected number of APs * Only process the actual number of supplied APs if it is less than the expected number of APs. Change-Id: I41e36d11bc3e71928866a27afc2fbf046b59f0f5 CRs-Fixed: 1095770
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions