Vulnerability record
fs: make sure to call fsnotify_inoderemove() only once when inode is dead
In the Linux kernel, the following vulnerability has been resolved:
fs: make sure to call fsnotify_inoderemove() only once when inode is dead
Daehyeon reported a race wherein fsnotify_removeinode() can be called when inode still has a live alias. This can lead to several undesired outcomes such as crashes in fsnotify code or avoidance of inode mark notifications.
Check that inode is really "dead", meaning no nlink and no more aliases before calling fsnotify_inoderemove() for final cleanup of inode marks. Also do not allow open_by_handle() to add new aliases to a "dead" inode.
Ideally,…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources