In the Linux kernel, the following vulnerability has been resolved:
eventfs: Use children field for rcu head and add memory barriers
When an eventfs inode is freed, it sets ei->isfreed and then uses its ei->list to add it to the srcu link list as the list field is a union with the rcu list head. As the ei->list is used to iterate over an SRCU protected list without taking the eventfsmutex, there's nothing stopping the iteration over that list to see the ei->rcu instead of the ei->list and it will read a corrupt target.
To fix this, change the union of the rcu list head with the children list. On freeing the eventfs inode, set the isfree and execute a smpwmb() before adding the eventfs inode to the SRCU list.
On iteration of the ei->children list, at the start, execute a smprmb() and then read the isfreed of the ei to see if the children list is still valid. If isfreed is set, then the eichild read is not valid and the loop should exit immediately.