forked from rubenslte/android_kernel_samsung_msm8226
prima: Avoid overread when configuring MAC addresses
Currently there are multiple cfg80211 vendor commands where MAC address attributes are defined in a nla_policy table with a type of NLA_UNSPEC but without a minimum length. Add the proper minimum length to avoid buffer overread. Change-Id: I11e1205943147102a536ca462fbdba7c826dd195 CRs-Fixed: 2061251 [GabrieleM: Partially applied with 3617aa44129c503af51f4f0537b9c6866]
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
ac76b08d7c
commit
8d7be2d642
@@ -2158,8 +2158,9 @@ wlan_hdd_extscan_config_policy
|
||||
|
||||
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX] =
|
||||
{ .type = NLA_U32 },
|
||||
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID] =
|
||||
{ .type = NLA_UNSPEC },
|
||||
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID] = {
|
||||
.type = NLA_UNSPEC,
|
||||
.len = HDD_MAC_ADDR_LEN},
|
||||
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW] =
|
||||
{ .type = NLA_S32 },
|
||||
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH] =
|
||||
|
||||
Reference in New Issue
Block a user