DivestOS/Patches/Linux_CVEs/CVE-2017-8256/qcacld-2.0/0001.patch
2017-11-07 18:55:10 -05:00

33 lines
944 B
Diff

From 75e1e00d6b3cd4cb89fd5314a60c333aa0b03230 Mon Sep 17 00:00:00 2001
From: Manjeet Singh <manjee@codeaurora.org>
Date: Thu, 22 Dec 2016 18:17:17 +0530
Subject: qcacld-2.0: Add bounday check for multicastAddr array
In hdd_set_rx_filter API multicastAddr array being accessed beyond
its size.
Add boundary check for multicastAddr.
CRs-Fixed: 1104565
Change-Id: I8e1543a8f42ac40c04d2c6a17e69718d13cbd706
---
CORE/HDD/src/wlan_hdd_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 4020488..fab1eac 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -4722,6 +4722,8 @@ static int hdd_set_rx_filter(hdd_adapter_t *adapter, bool action,
MAC_ADDR_ARRAY(filter->multicastAddr[j]));
j++;
}
+ if (j == SIR_MAX_NUM_MULTICAST_ADDRESS)
+ break;
}
filter->ulMulticastAddrCnt = j;
/* Set rx filter */
--
cgit v1.1