Commit 639a5477 authored by Xingyuan Mo's avatar Xingyuan Mo Committed by Ziyang Xuan
Browse files

wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()

stable inclusion
from stable-v4.19.311
commit 0cd3b0a1dc987697cba1fe93c784365aa1f8a230
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I8QF9K


CVE: CVE-2023-7042

--------------------------------

[ Upstream commit ad25ee36f00172f7d53242dc77c69fff7ced0755 ]

We should check whether the WMI_TLV_TAG_STRUCT_MGMT_TX_COMPL_EVENT tlv is
present before accessing it, otherwise a null pointer deference error will
occur.

Fixes: dc405152 ("ath10k: handle mgmt tx completion event")
Signed-off-by: default avatarXingyuan Mo <hdthky0@gmail.com>
Acked-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231208043433.271449-1-hdthky0@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZiyang Xuan <william.xuanziyang@huawei.com>
parent e9eac2f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment