{"id":"CVE-2026-143109","state":"PUBLISHED","title":"dcache: let umount find a disconnected ex-mountpoint","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndcache: let umount find a disconnected ex-mountpoint\n\nWhen a mount goes away the reference to its mountpoint is dropped with\ndput_to_list() and namespace_unlock() evicts the dentry after dropping\nnamespace_sem. Nothing pins the filesystem at that point so it can be\nunmounted at the same time. That's fine as long as\nshrink_dcache_for_umount() finds the dentry. It then either evicts it\nitself or waits for the eviction to finish.\n\nBut it can't find a disconnected root as those are neither in the tree\nnor on ->s_roots. And they can be mounted on:\n\n  fd = open_by_handle_at(mnt_fd, handle of a file with no dentry, O_PATH);\n  tree = open_tree(AT_FDCWD, \"/tmp/x\", OPEN_TREE_CLONE);\n  move_mount(tree, \"\", fd, \"\", MOVE_MOUNT_F_EMPTY_PATH |\n\t\t\t       MOVE_MOUNT_T_EMPTY_PATH);\n  close(fd);\n\n  thread A                              thread B\n  umount2(\"/proc/self/fd/<tree>\", MNT_DETACH)\n    namespace_unlock()\n      up_write(&namespace_sem)\n                                        umount of the filesystem\n                                          shrink_dcache_for_umount()\n                                          evict_inodes()\n                                          \"Busy inodes after unmount\"\n      shrink_dentry_list()\n        dentry_kill()\n          iput() of an inode of a superblock that is gone\n\nSo put such a dentry on ->s_roots when it's put on the shrink list. From\nthen on it's a secondary root like any other.\n\nThis needs the previous patch. Otherwise do_one_tree() takes the dentry\noff ->s_roots and umount doesn't wait for an eviction in progress.\n\nThe stable tag is narrower than the Fixes tag on purpose. Before commit\ne9895609cb7f (\"wind ->s_roots via ->d_sib instead of ->d_hash\") umount\ndoesn't wait for a secondary root that is being evicted either.","publishedAt":"2026-12-03T09:19:25.045Z","updatedAt":"2026-12-03T09:19:25.045Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4edbe133f851c9e3a2f2a1db367e826b01e72594","status":"affected","lessThan":"427aa48d8c74d14846787fbf95141b3ab0d8b333","versionType":"git"},{"version":"4edbe133f851c9e3a2f2a1db367e826b01e72594","status":"affected","lessThan":"32e564e222b7ca3811b2acee404b73fcaf43f312","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dcache.c","include/linux/fs/super_types.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dcache.c","include/linux/fs/super_types.h"]}],"references":["https://git.kernel.org/stable/c/427aa48d8c74d14846787fbf95141b3ab0d8b333","https://git.kernel.org/stable/c/32e564e222b7ca3811b2acee404b73fcaf43f312"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143109.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143109","state":"PUBLISHED","datePublished":"2026-12-03T09:19:25.045Z","dateUpdated":"2026-12-03T09:19:25.045Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.350Z"},"containers":{"cna":{"title":"dcache: let umount find a disconnected ex-mountpoint","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndcache: let umount find a disconnected ex-mountpoint\n\nWhen a mount goes away the reference to its mountpoint is dropped with\ndput_to_list() and namespace_unlock() evicts the dentry after dropping\nnamespace_sem. Nothing pins the filesystem at that point so it can be\nunmounted at the same time. That's fine as long as\nshrink_dcache_for_umount() finds the dentry. It then either evicts it\nitself or waits for the eviction to finish.\n\nBut it can't find a disconnected root as those are neither in the tree\nnor on ->s_roots. And they can be mounted on:\n\n  fd = open_by_handle_at(mnt_fd, handle of a file with no dentry, O_PATH);\n  tree = open_tree(AT_FDCWD, \"/tmp/x\", OPEN_TREE_CLONE);\n  move_mount(tree, \"\", fd, \"\", MOVE_MOUNT_F_EMPTY_PATH |\n\t\t\t       MOVE_MOUNT_T_EMPTY_PATH);\n  close(fd);\n\n  thread A                              thread B\n  umount2(\"/proc/self/fd/<tree>\", MNT_DETACH)\n    namespace_unlock()\n      up_write(&namespace_sem)\n                                        umount of the filesystem\n                                          shrink_dcache_for_umount()\n                                          evict_inodes()\n                                          \"Busy inodes after unmount\"\n      shrink_dentry_list()\n        dentry_kill()\n          iput() of an inode of a superblock that is gone\n\nSo put such a dentry on ->s_roots when it's put on the shrink list. From\nthen on it's a secondary root like any other.\n\nThis needs the previous patch. Otherwise do_one_tree() takes the dentry\noff ->s_roots and umount doesn't wait for an eviction in progress.\n\nThe stable tag is narrower than the Fixes tag on purpose. Before commit\ne9895609cb7f (\"wind ->s_roots via ->d_sib instead of ->d_hash\") umount\ndoesn't wait for a secondary root that is being evicted either."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4edbe133f851c9e3a2f2a1db367e826b01e72594","status":"affected","lessThan":"427aa48d8c74d14846787fbf95141b3ab0d8b333","versionType":"git"},{"version":"4edbe133f851c9e3a2f2a1db367e826b01e72594","status":"affected","lessThan":"32e564e222b7ca3811b2acee404b73fcaf43f312","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dcache.c","include/linux/fs/super_types.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dcache.c","include/linux/fs/super_types.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/427aa48d8c74d14846787fbf95141b3ab0d8b333"},{"url":"https://git.kernel.org/stable/c/32e564e222b7ca3811b2acee404b73fcaf43f312"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:25.045Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}