In the Linux kernel, the following vulnerability has been resolved: rtnetlink: make sure to refresh masterdev/mops in _rtnlnewlink() While looking at one unrelated syzbot bug, I found the replay logic in _rtnlnewlink() to potentially trigger use-after-free. It is better to clear masterdev and mops inside the loop, in case we have to replay it.