CVE-2026-142890
Last modified
CVE-2026-142890 is a vulnerability of currently unknown severity. 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.
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < 49b4791b48c1240084eb137ca2a2ea18de128461; >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < e227cdac03dffa896e02ed7260f9149c4c382715 |
| Linux | Linux | 6.19 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142890?
How severe is CVE-2026-142890?
How do I fix CVE-2026-142890?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142885In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142886In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142887In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142888In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142889In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14289The FacturaONE para WooCommerce con VeriFactu WordPress plug…9
- CVE-2026-142891In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142892In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142893In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142894In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142895In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142896In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-142890?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
