In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]ath9k: fix use-after-free in ath9k_hif_usb_rx_cb[EOL][EOL]Syzbot reported use-after-free Read in ath9k_hif_usb_rx_cb() [0]. The[EOL]problem was in incorrect htc_handle->drv_priv initialization.[EOL][EOL]Probable call trace which can trigger use-after-free:[EOL][EOL]ath9k_htc_probe_device()[EOL] /* htc_handle->drv_priv = priv; */[EOL] ath9k_htc_wait_for_target() <--- Failed[EOL] ieee80211_free_hw()\t\t <--- priv pointer is freed[EOL][EOL]<IRQ>[EOL]...[EOL]ath9k_hif_usb_rx_cb()[EOL] ath9k_hif_usb_rx_stream()[EOL] RX_STAT_INC()\t\t<--- htc_handle->drv_priv access[EOL][EOL]In order to not add fancy protection for drv_priv we can move[EOL]htc_handle->drv_priv initialization at the end of the[EOL]ath9k_htc_probe_device() and add helper macro to make[EOL]all *_STAT_* macros NULL safe, since syzbot has reported related NULL[EOL]deref in that macros [1] CREATE(Triage):(User=lchen-cn) [CVE-2022-50179 (https://nvd.nist.gov/vuln/detail/CVE-2022-50179)