In the Linux kernel, the following vulnerability has been resolved:
net: qcom/emac: fix UAF in emac_remove
adpt is netdev private data and it cannot be used after freenetdev() call. Using adpt after freenetdev() can cause UAF bug. Fix it by moving free_netdev() at the end of the function.