In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]ieee802154/adf7242: defer destroy_workqueue call[EOL][EOL]There is a possible race condition (use-after-free) like below[EOL][EOL] (FREE) ( (USE)[EOL) adf7242_remove | adf7242_channelEOL] cancel_delayed_work_sync ([EOL) destroy_workqueue (1) | adf7242_cmd_rxEOL] ( mod_delayed_work (2)[EOL) |EOL][EOL]The root cause for this race is that the upper layer (ieee802154) is[EOL]unaware of this detaching event and the function adf7242_channel can[EOL]be called without any checks.[EOL][EOL]To fix this, we can add a flag write at the beginning of adf7242_remove[EOL]and add flag check in adf7242_channel. Or we can just defer the[EOL]destructive operation like other commit 3e0588c291d6 ("hamradio: defer[EOL]ax25 kfree after unregister_netdev") which let the[EOL]ieee802154_unregister_hw() to handle the synchronization. This patch[EOL]takes the second option.[EOL][EOL]runs")
CREATE(Triage):(User=lchen-cn) [CVE-2022-49968 (https://nvd.nist.gov/vuln/detail/CVE-2022-49968)