* CVE-2026-143110: dcache: wait for a racing eviction of a secondary root
@ 2026-12-03 9:19 Greg Kroah-Hartman
0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-12-03 9:19 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
From: Greg Kroah-Hartman <gregkh@kernel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dcache: wait for a racing eviction of a secondary root
Commit e9895609cb7f ("wind ->s_roots via ->d_sib instead of ->d_hash")
keeps a secondary root on ->s_roots until dentry_unlist() so that
shrink_dcache_for_umount() can find one that another thread is evicting
and wait for it. But do_one_tree() takes every root off the list before
its dput() which breaks that:
thread A umount
dentry_kill(root), refcount is 0
lock_for_kill()
spin_trylock(->i_lock) fails
spin_unlock(->d_lock)
shrink_dcache_for_umount()
dget_dlock(root)
do_one_tree(root)
unlink_secondary_root(root)
spin_lock(->i_lock)
dput(root), refcount is 0
lock_for_kill()
trylock fails, waits
spin_lock(->d_lock)
refcount is 0 again, go on
lockref_mark_dead()
dentry_unlink_inode()
drops both locks
root is dead, give up
->s_roots is empty, done
evict_inodes()
"Busy inodes after unmount"
iput()
Thread A evicts without pinning the superblock. namespace_unlock() does
that for old mountpoints after dropping namespace_sem, and a secondary
root goes with its last child.
So only take busy roots off the list. Leave the others to
dentry_unlist() so that shrink_dcache_for_umount() finds them and waits
for an eviction in progress. A root that becomes busy after the check is
picked up again and taken off the list then.
The Linux kernel CVE team has assigned CVE-2026-143110 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.3 with commit 78db93943210df61c8446aae35af6836e2cf04aa and fixed in 7.3.7 with commit 47f4eabefeea071d628969a072265dd4c9b55f73
Issue introduced in 7.3 with commit 78db93943210df61c8446aae35af6836e2cf04aa and fixed in 7.4-rc3 with commit 649918e04e0ead9bfc861aacdd2e5b39b5bdf869
Issue introduced in 7.2.6 with commit 20e9cbd3be1e3f753e81960eb4cc6c80b8520ee9
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-143110
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/dcache.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/47f4eabefeea071d628969a072265dd4c9b55f73
https://git.kernel.org/stable/c/649918e04e0ead9bfc861aacdd2e5b39b5bdf869
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-03 9:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 9:19 CVE-2026-143110: dcache: wait for a racing eviction of a secondary root Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.