AZL-118124: CVE-2026-143109 affecting package kernel 6.6.161.1-1
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.
Affected Software
Event History
Frequently Asked Questions
What conditions are needed to trigger the issue?
The described sequence mounts a disconnected root using open_by_handle_at(), open_tree(), and move_mount() with empty-path flags, then closes the file descriptor. It requires a detached unmount and filesystem unmount to race with namespace cleanup.
What evidence may indicate the issue has occurred?
The described unmount path can report "Busy inodes after unmount". The race can then lead to dentry cleanup calling iput() for an inode whose superblock has already gone away.