In the Linux kernel, the following vulnerability has been resolved: staging: media: tegra-video: fix devicenode use after free At probe time this code path is followed: * tegracsiinit * tegracsichannelsalloc * foreachchildofnode(node, channel) -- iterates over channels * automatically gets 'channel' * tegracsichannelalloc() * saves into chan->ofnode a pointer to the channel OF node * automatically gets and puts 'channel' * now the node saved in chan->ofnode has refcount 0, can disappear * tegracsichannelsinit * iterates over channels * tegracsichannelinit -- uses chan->ofnode After that, chan->ofnode keeps storing the node until the device is removed. ofnodeget() the node and ofnode_put() it during teardown to avoid any risk.