Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1697889

Re: [-next] rtlwifi: kfree entry until after entry->bssid has been accessed

From Kalle Valo <kvalo@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [-next] rtlwifi: kfree entry until after entry->bssid has been accessed
Date 2017-07-27 13:00 +0200
Message-ID <u7OGl-556-1@gated-at.bofh.it> (permalink)
References <tY12a-497-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Colin Ian King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
> 
> The current code kfree's entry and then dereferences it by accessing
> entry->bssid.  Avoid the dereference-after-free by moving the kfree
> after the access to entry->bssid.
> 
> Detected by CoverityScan, CID#1448600 ("Read from pointer after free")
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Patch applied to wireless-drivers-next.git, thanks.

d0116f6f7b30 rtlwifi: kfree entry until after entry->bssid has been accessed

-- 
https://patchwork.kernel.org/patch/9819083/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [-next] rtlwifi: kfree entry until after entry->bssid has been  accessed Kalle Valo <kvalo@codeaurora.org> - 2017-07-27 13:00 +0200

csiph-web