[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <163949586478.10444.18327229880355423779.kvalo@kernel.org>
Date: Tue, 14 Dec 2021 15:31:09 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Zhou Qingyang <zhou1615@....edu>
Cc: zhou1615@....edu, kjlu@....edu, Kalle Valo <kvalo@...eaurora.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Pradeep Kumar Chitrapu <pradeepc@...eaurora.org>,
Shashidhar Lakkavalli <slakkavalli@...to.com>,
Ganesh Sesetti <gseset@...eaurora.org>,
kbuild test robot <lkp@...el.com>,
John Crispin <john@...ozen.org>, ath11k@...ts.infradead.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] ath11k: Fix a NULL pointer dereference in
ath11k_mac_op_hw_scan()
Zhou Qingyang <zhou1615@....edu> wrote:
> In ath11k_mac_op_hw_scan(), the return value of kzalloc() is directly
> used in memcpy(), which may lead to a NULL pointer dereference on
> failure of kzalloc().
>
> Fix this bug by adding a check of arg.extraie.ptr.
>
> This bug was found by a static analyzer. The analysis employs
> differential checking to identify inconsistent security operations
> (e.g., checks or kfrees) between two code paths and confirms that the
> inconsistent operations are not recovered in the current function or
> the callers, so they constitute bugs.
>
> Note that, as a bug found by static analysis, it can be a false
> positive or hard to trigger. Multiple researchers have cross-reviewed
> the bug.
>
> Builds with CONFIG_ATH11K=m show no new warnings, and our static
> analyzer no longer warns about this code.
>
> Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
> Signed-off-by: Zhou Qingyang <zhou1615@....edu>
> Signed-off-by: Kalle Valo <quic_kvalo@...cinc.com>
Patch applied to ath-next branch of ath.git, thanks.
eccd25136386 ath11k: Fix a NULL pointer dereference in ath11k_mac_op_hw_scan()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20211202155348.71315-1-zhou1615@umn.edu/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists