Description of problem: When the ene device is detaching, function ene_remove() will be called. But there is no function to cancel tx_sim_timer in ene_remove(), the timer handler ene_tx_irqsim() could race with ene_remove(). As a result, the UAF bugs could happen, the process is shown below. (cleanup routine) | (timer routine) | mod_timer(&dev->tx_sim_timer, ..) ene_remove() | (wait a time) kfree(dev) //FREE | | ene_tx_irqsim() | dev->hw_lock //USE | ene_tx_sample(dev) //USE Version-Release number of selected component (if applicable): 4.19 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: