Search Linux Wireless

Re: [PATCH] net: Fix UAF in ieee80211_scan_rx()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 26 Jul 2022 15:37:16 +0530  Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
> Note: this is slightly racy.
> 
> You are supposed to follow this order in this situation.
> 
> 1) Clear the pointer
> 
> Then:
> 
> 2) wait an rcu grace period (synchronize_rcu()) or use call_rcu()/kfree_rcu().
>  

Noted. Due to rcu_dereference() used to get scan_req, null ptr dereference
cannot happen. That had completely missed my eyes, sorry for that.

I will send a v2.

Thanks,
Siddh



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux