Re: [PATCH] nl80211: Fix use-after-free during wiphy event handling

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

 



On Fri, Apr 18, 2025 at 01:55:00PM +0200, Gwen Weinholt wrote:
> When processing a NL80211_CMD_RADAR_DETECT event, the current driver
> interface instance may be deinitialized during the event handler.
> The event loop still holds a pointer to the old driver interface,
> but using it after deinit can cause a crash.
> 
> A previous attempt to fix this relied on checking whether the
> interface pointer still appeared in the list of interfaces.
> However, that approach is incomplete: if malloc() returns the same
> pointer for a newly added interface (as observed occasionally on
> glibc 2.31), the check incorrectly assumes the original instance
> still exists.
> 
> To fix this reliably, this commit introduces a unique instance ID
> in the wpa_driver_nl80211_data struct and uses that ID to check
> whether the original driver instance is still present in the list.

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux