In the Linux kernel, the following vulnerability has been resolved: net: qcom/emac: fix UAF in emacremove 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 freenetdev() at the end of the function.