From dec1bfc9dcafd8c8a0d1c102077cf59c2449f78f Mon Sep 17 00:00:00 2001 From: SaidiReddy Yenuga Date: Mon, 5 Jun 2017 16:11:56 +0530 Subject: [PATCH] qcacld-3.0: Add lost AP sample size entry to nla policy qcacld-2.0 to qcacld-3.0 Propagation. improper validation of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE results in assigning an unchecked user-controller value. This can lead to buffer overflow. validate QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE. CRs-Fixed: 2056253 Change-Id: I7c33b6d78054672e9effbe9100c29e5604c250c6 --- core/hdd/src/wlan_hdd_ext_scan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_ext_scan.c b/core/hdd/src/wlan_hdd_ext_scan.c index 4667d4d81546..e71a3f658bd5 100644 --- a/core/hdd/src/wlan_hdd_ext_scan.c +++ b/core/hdd/src/wlan_hdd_ext_scan.c @@ -134,6 +134,8 @@ static const struct nla_policy wlan_hdd_extscan_config_policy .type = NLA_S32 }, [QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS] = { .type = NLA_U32 }, + [QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE] = { + .type = NLA_U32}, }; static const struct nla_policy