瀏覽代碼

qcacmn: Clear Key information from driver memory after disconnect

Currently the key information i.e the key, and the number of keys
are not getting cleared on wifi link disconnection from wifi
driver memory, which can lead to information disclosure.

Clear the key information i.e the number of keys and
keys from wifi driver memory to avoid any potential information
disclore after wifi is turned off.

Change-Id: I2a3ea56d4e876b48dd7a5e456ed7d139600fab01
CRs-Fixed: 2415421
gaurank kathpalia 6 年之前
父節點
當前提交
f35d79a22b
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      wmi/src/wmi_unified_tlv.c

+ 3 - 2
wmi/src/wmi_unified_tlv.c

@@ -3873,9 +3873,10 @@ static QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle,
 	wmi_mtrace(WMI_VDEV_INSTALL_KEY_CMDID, cmd->vdev_id, 0);
 	status = wmi_unified_cmd_send(wmi_handle, buf, len,
 					      WMI_VDEV_INSTALL_KEY_CMDID);
-	if (QDF_IS_STATUS_ERROR(status))
+	if (QDF_IS_STATUS_ERROR(status)) {
+		qdf_mem_zero(wmi_buf_data(buf), len);
 		wmi_buf_free(buf);
-
+	}
 	return status;
 }