CVE-2026-143109: dcache: let umount find a disconnected ex-mountpoint
In the Linux kernel, the following vulnerability has been resolved:
dcache: let umount find a disconnected ex-mountpoint
When a mount goes away the reference to its mountpoint is dropped with dputtolist() and namespaceunlock() evicts the dentry after dropping namespacesem. Nothing pins the filesystem at that point so it can be unmounted at the same time. That's fine as long as shrinkdcacheforumount() finds the dentry. It then either evicts it itself or waits for the eviction to finish.
But it can't find a disconnected root as those are neither in the tree nor on ->sroots. And they can be mounted on:
fd = openbyhandleat(mntfd, handle of a file with no dentry, OPATH); tree = opentree(ATFDCWD, "/tmp/x", OPENTREECLONE); movemount(tree, "", fd, "", MOVEMOUNTFEMPTYPATH | MOVEMOUNTTEMPTYPATH); close(fd);
thread A thread B umount2("/proc/self/fd/<tree>", MNTDETACH) namespaceunlock() upwrite(&namespacesem) umount of the filesystem shrinkdcacheforumount() evictinodes() "Busy inodes after unmount" shrinkdentrylist() dentrykill() iput() of an inode of a superblock that is gone
So put such a dentry on ->sroots when it's put on the shrink list. From then on it's a secondary root like any other.
This needs the previous patch. Otherwise doonetree() takes the dentry off ->sroots and umount doesn't wait for an eviction in progress.
The stable tag is narrower than the Fixes tag on purpose. Before commit e9895609cb7f ("wind ->sroots via ->dsib instead of ->dhash") umount doesn't wait for a secondary root that is being evicted either.