mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
qcacld-3.0: Validate station id
In function __hdd_softap_hard_start_xmit, station id is not validated with max station count, this might lead to a buffer overflow situation for array aStaInfo in SapCtx. Validate station id with max sta count. CRs-Fixed: 1093122 Change-Id: If9f59c5a7b76845bb7783a96453e595b5afa4f30
This commit is contained in:
parent
412cdb0392
commit
3107b75f2c
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ static int __hdd_softap_hard_start_xmit(struct sk_buff *skb,
|
|||
goto drop_pkt;
|
||||
}
|
||||
|
||||
if (STAId == HDD_WLAN_INVALID_STA_ID) {
|
||||
if (STAId >= WLAN_MAX_STA_COUNT) {
|
||||
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA,
|
||||
QDF_TRACE_LEVEL_WARN,
|
||||
"%s: Failed to find right station", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue