{"id":"CVE-2026-143110","state":"PUBLISHED","title":"dcache: wait for a racing eviction of a secondary root","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndcache: wait for a racing eviction of a secondary root\n\nCommit e9895609cb7f (\"wind ->s_roots via ->d_sib instead of ->d_hash\")\nkeeps a secondary root on ->s_roots until dentry_unlist() so that\nshrink_dcache_for_umount() can find one that another thread is evicting\nand wait for it. But do_one_tree() takes every root off the list before\nits dput() which breaks that:\n\n  thread A                              umount\n  dentry_kill(root), refcount is 0\n    lock_for_kill()\n      spin_trylock(->i_lock) fails\n      spin_unlock(->d_lock)\n                                        shrink_dcache_for_umount()\n                                          dget_dlock(root)\n                                          do_one_tree(root)\n                                            unlink_secondary_root(root)\n      spin_lock(->i_lock)\n                                            dput(root), refcount is 0\n                                              lock_for_kill()\n                                                trylock fails, waits\n      spin_lock(->d_lock)\n      refcount is 0 again, go on\n    lockref_mark_dead()\n    dentry_unlink_inode()\n      drops both locks\n                                                root is dead, give up\n                                          ->s_roots is empty, done\n                                        evict_inodes()\n                                        \"Busy inodes after unmount\"\n      iput()\n\nThread A evicts without pinning the superblock. namespace_unlock() does\nthat for old mountpoints after dropping namespace_sem, and a secondary\nroot goes with its last child.\n\nSo only take busy roots off the list. Leave the others to\ndentry_unlist() so that shrink_dcache_for_umount() finds them and waits\nfor an eviction in progress. A root that becomes busy after the check is\npicked up again and taken off the list then.","publishedAt":"2026-12-03T09:19:25.712Z","updatedAt":"2026-12-03T09:19:25.712Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"78db93943210df61c8446aae35af6836e2cf04aa","status":"affected","lessThan":"47f4eabefeea071d628969a072265dd4c9b55f73","versionType":"git"},{"version":"78db93943210df61c8446aae35af6836e2cf04aa","status":"affected","lessThan":"649918e04e0ead9bfc861aacdd2e5b39b5bdf869","versionType":"git"},{"version":"20e9cbd3be1e3f753e81960eb4cc6c80b8520ee9","status":"affected","versionType":"git"},{"version":"7.2.6","status":"affected","lessThan":"7.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dcache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.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"]}],"references":["https://git.kernel.org/stable/c/47f4eabefeea071d628969a072265dd4c9b55f73","https://git.kernel.org/stable/c/649918e04e0ead9bfc861aacdd2e5b39b5bdf869"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143110.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143110","state":"PUBLISHED","datePublished":"2026-12-03T09:19:25.712Z","dateUpdated":"2026-12-03T09:19:25.712Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.350Z"},"containers":{"cna":{"title":"dcache: wait for a racing eviction of a secondary root","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndcache: wait for a racing eviction of a secondary root\n\nCommit e9895609cb7f (\"wind ->s_roots via ->d_sib instead of ->d_hash\")\nkeeps a secondary root on ->s_roots until dentry_unlist() so that\nshrink_dcache_for_umount() can find one that another thread is evicting\nand wait for it. But do_one_tree() takes every root off the list before\nits dput() which breaks that:\n\n  thread A                              umount\n  dentry_kill(root), refcount is 0\n    lock_for_kill()\n      spin_trylock(->i_lock) fails\n      spin_unlock(->d_lock)\n                                        shrink_dcache_for_umount()\n                                          dget_dlock(root)\n                                          do_one_tree(root)\n                                            unlink_secondary_root(root)\n      spin_lock(->i_lock)\n                                            dput(root), refcount is 0\n                                              lock_for_kill()\n                                                trylock fails, waits\n      spin_lock(->d_lock)\n      refcount is 0 again, go on\n    lockref_mark_dead()\n    dentry_unlink_inode()\n      drops both locks\n                                                root is dead, give up\n                                          ->s_roots is empty, done\n                                        evict_inodes()\n                                        \"Busy inodes after unmount\"\n      iput()\n\nThread A evicts without pinning the superblock. namespace_unlock() does\nthat for old mountpoints after dropping namespace_sem, and a secondary\nroot goes with its last child.\n\nSo only take busy roots off the list. Leave the others to\ndentry_unlist() so that shrink_dcache_for_umount() finds them and waits\nfor an eviction in progress. A root that becomes busy after the check is\npicked up again and taken off the list then."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"78db93943210df61c8446aae35af6836e2cf04aa","status":"affected","lessThan":"47f4eabefeea071d628969a072265dd4c9b55f73","versionType":"git"},{"version":"78db93943210df61c8446aae35af6836e2cf04aa","status":"affected","lessThan":"649918e04e0ead9bfc861aacdd2e5b39b5bdf869","versionType":"git"},{"version":"20e9cbd3be1e3f753e81960eb4cc6c80b8520ee9","status":"affected","versionType":"git"},{"version":"7.2.6","status":"affected","lessThan":"7.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dcache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.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"]}],"references":[{"url":"https://git.kernel.org/stable/c/47f4eabefeea071d628969a072265dd4c9b55f73"},{"url":"https://git.kernel.org/stable/c/649918e04e0ead9bfc861aacdd2e5b39b5bdf869"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:25.712Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}