CVE-2026-142890
namei: don't assert S_ISDIR on a stale rcu-walk inode
AI summary AI generated
An attacker running a racing unlink and mkdir can trigger a debug-only VFS assertion during path lookup in the Linux kernel, a harmless stale-inode check that has no security impact.
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < 49b4791b48c1240084eb137ca2a2ea18de128461; >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < e227cdac03dffa896e02ed7260f9149c4c382715
- Anyone running Linux 6.19
Vulnerability facts
- Affected
- Linux >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < 49b4791b48c1240084eb137ca2a2ea18de128461; >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < e227cdac03dffa896e02ed7260f9149c4c382715; Linux 6.19
- Fixed in
- Linux 49b4791b48c1240084eb137ca2a2ea18de128461
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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 and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-142890. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-142890.md Affected: Linux >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < 49b4791b48c1240084eb137ca2a2ea18de128461; >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < e227cdac03dffa896e02ed7260f9149c4c382715; Linux 6.19 Fixed in: Linux 49b4791b48c1240084eb137ca2a2ea18de128461 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-142890 being exploited?
There is no confirmed exploitation: CVE-2026-142890 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-142890?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-142890?
Linux >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < 49b4791b48c1240084eb137ca2a2ea18de128461; >= e631df89cd5d638a9d7c152dd9b0a92643efab3e, < e227cdac03dffa896e02ed7260f9149c4c382715; Linux 6.19.
Is there a fix for CVE-2026-142890?
Yes. Fixed in Linux 49b4791b48c1240084eb137ca2a2ea18de128461. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-142890?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |