No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pragaspathi Thilagaraj 750f71a5e6 qcacmn: Fix possible buffer overflow in send_scan_start_cmd_tlv
In the function send_scan_start_cmd_tlv(), extraie_len_with_pad
is computed as roundup(params->extraie.len, sizeof(uint32_t)).
But extraie_len_with_pad is of type uint8_t. This causes
integeroverflow of extraie_len_with_pad. The length of the
wmi command buffer for scan command (len) is incremented by
this extraie_len_with_pad to allocate memory for the additional
IEs that are passed from upper layer to the firmware. But when
params->extraie.len is greater than 255, extraie_len_with_pad
overflows and obtains lower value. This causes lower wmi buffer
length allocation but the copy is done for entire
params->extraie.len resulting in overwriting of the skb that is
passed to firmware. This causes host assert when this skb is
freed.

Change the data type of extraie_len_with_pad to uint16_t from
uint8_t as the additional IE sent from upper layer can have a
maximum length of 2048. Also change the data type of len from
int to size_t to avoid overflow of len.

Change-Id: I11fae83a85a3f787b37e47df97ffc4b183cba913
CRs-Fixed: 2405641
2019-03-01 19:19:40 -08:00
cfg qcacmn: Fix compilation error when WLAN_SUPPORT_GREEN_AP is disabled 2019-02-27 09:56:00 -08:00
dp qcacmn: Fix compilation issue 2019-03-01 19:19:35 -08:00
ftm qcacmn: Remove error log for qdf_mem_malloc in utils/ftm files 2019-02-11 02:29:55 -08:00
global_lmac_if qcacmn: Use qdf_mem_zero for zero initialization, global_lmac_if part 2019-02-21 01:46:42 -08:00
hal/wifi3.0 qcacmn: Modify HE GI enum values and populate ldpc for HE 2019-02-27 03:13:52 -08:00
hif qcacmn: Remove improper kernel API for coherent memory 2019-02-26 21:18:50 -08:00
htc qcacmn: Restore the correct credit for EP 2019-03-01 09:24:06 -08:00
init_deinit/dispatcher qcacmn: Add support for CFR init deinit 2019-02-20 06:21:15 -08:00
os_if/linux qcacmn: replace kernel version condition with if defined 2019-02-27 20:55:01 -08:00
qal qcacmn: move over to new explicit reset API 2019-01-31 17:30:17 -08:00
qdf qcacmn: Add generic no fl variant of qdf print API's 2019-03-01 11:14:51 -08:00
scheduler qcacmn: Remove qdf_flex_mem_release() 2019-03-01 11:14:48 -08:00
spectral qcacmn: Add target type checks 2019-02-27 09:56:07 -08:00
target_if qcacmn: Remove references to EOK 2019-03-01 11:14:45 -08:00
umac qcacmn: Enhancement of auto channel switch zerowait PreCAC for 160MHz mode 2019-03-01 11:14:42 -08:00
utils qcacmn: Remove references to EOK 2019-03-01 11:14:45 -08:00
wbuff
wlan_cfg qcacmn: Check for MAX_AST entries when adding AST entry 2019-02-12 04:47:37 -08:00
wmi qcacmn: Fix possible buffer overflow in send_scan_start_cmd_tlv 2019-03-01 19:19:40 -08:00
README.txt
VERSION.txt

 This is CNSS WLAN Host Driver for products starting from iHelium