# CVE-2026-142890: namei: don't assert S\_ISDIR on a stale rcu-walk inode

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:43.087Z
- **Modified:** 2026-12-03T04:18:27.967Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## Who should check

- Anyone running Linux \>= e631df89cd5d638a9d7c152dd9b0a92643efab3e, \< 49b4791b48c1240084eb137ca2a2ea18de128461; \>= e631df89cd5d638a9d7c152dd9b0a92643efab3e, \< e227cdac03dffa896e02ed7260f9149c4c382715
- Anyone running Linux 6.19

## 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

- Linux: \>= e631df89cd5d638a9d7c152dd9b0a92643efab3e, \< 49b4791b48c1240084eb137ca2a2ea18de128461; \>= e631df89cd5d638a9d7c152dd9b0a92643efab3e, \< e227cdac03dffa896e02ed7260f9149c4c382715 (cvelist)
- Linux: 6.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/49b4791b48c1240084eb137ca2a2ea18de128461>
- other: <https://git.kernel.org/stable/c/e227cdac03dffa896e02ed7260f9149c4c382715>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142890>

HTML: <https://flawdb.com/CVE-2026-142890> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142890>
