CVE-2026-142890

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

namei: don't assert S_ISDIR on a stale rcu-walk inode

lookup_inode_permission_may_exec() asserts that it is only ever handed a directory, on the grounds that link_path_walk() has already checked d_can_lookup(). In rcu-walk that does not follow. step_into() samples ->d_inode and validates it against ->d_seq, but link_path_walk() loads ->d_flags again afterwards, and nothing orders that load against changes of the dentry:

CPU0 (rcu-walk of "x/y") CPU1 step_into(x) inode = x->d_inode // regular file read_seqcount_retry(&x->d_seq) == 0 nd->inode = inode unlink("x") d_delete() // x goes negative mkdir("x") d_instantiate() // same dentry d_can_lookup(x) // true now may_lookup() VFS_BUG_ON_INODE(!S_ISDIR(nd->inode->i_mode))

With CONFIG_PREEMPT_RCU the walker can be preempted in that window, so it is not limited to a few instructions. mkdir() only gets the same dentry back if the filesystem keeps negative dentries around. tmpfs doesn't, ext4 does.

Apart from the assertion the stale inode is harmless, and has been there since before the assertion was added: nd->seq no longer matches x->d_seq, so lookup_fast(), follow_dotdot_rcu() and try_to_unlazy() all fail with -ECHILD and the walk is redone in ref-walk, whatever the permission check on the old inode said.

Keep the assertion for ref-walk, where the dentry is pinned and can't change type, and skip it for rcu-walk. No change for kernels without CONFIG_DEBUG_VFS.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142891In the Linux kernel, the following vulnerability has been resolved: nvme-loop: don't BUG() if a scan runs beside a reset A reset sets queuCVE-2026-142892In the Linux kernel, the following vulnerability has been resolved: ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocksCVE-2026-142893In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds btf->types write for split BTF btf_add_type() sCVE-2026-142894In the Linux kernel, the following vulnerability has been resolved: net/rds: do not fail init when CONFIG_SYSCTL=n With CONFIG_SYSCTL=n, rCVE-2026-142895In the Linux kernel, the following vulnerability has been resolved: maple_tree: fix maple_range_64 crashes in RCU mode Patch series "mapleCVE-2026-142896In the Linux kernel, the following vulnerability has been resolved: tls: avoid field-spanning write when copying crypto info do_tls_setsocCVE-2026-142897In the Linux kernel, the following vulnerability has been resolved: net: pse-pd: si3474: fix use-after-free in ancillary client error path CVE-2026-142898In the Linux kernel, the following vulnerability has been resolved: ibmveth: step past bad RX correlators instead of spinning or oopsing iCVE-2026-142899In the Linux kernel, the following vulnerability has been resolved: fuse: validate folio state before pipe_buf_try_steal() in fuse_try_moveCVE-2026-14295.4Single Sign-On Portal System developed by WellChoose has a Reflected Cross-site Scripting vulnerability, allowing authenticated remote attacCVE-2026-142906.8The Embed Google Photos album WordPress plugin through 2.2.1 does not escape a shortcode attribute value before outputting it inside an HTMLCVE-2026-142900In the Linux kernel, the following vulnerability has been resolved: HID: wacom: fix wacom_intuos_irq NULL pen_input deref Currently, wacom
CVE-2026-142890: Unscored | Vulnix