GHSA-2GM7-X7JV-2VF2
Vulnerability from github – Published: 2026-12-03 06:30 – Updated: 2026-12-03 06:30In 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": [],
"aliases": [
"CVE-2026-142890"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T04:18:27Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnamei: don\u0027t assert S_ISDIR on a stale rcu-walk inode\n\nlookup_inode_permission_may_exec() asserts that it is only ever handed a\ndirectory, on the grounds that link_path_walk() has already checked\nd_can_lookup(). In rcu-walk that does not follow. step_into() samples\n-\u003ed_inode and validates it against -\u003ed_seq, but link_path_walk() loads\n-\u003ed_flags again afterwards, and nothing orders that load against changes\nof the dentry:\n\n CPU0 (rcu-walk of \"x/y\") CPU1\n step_into(x)\n inode = x-\u003ed_inode // regular file\n read_seqcount_retry(\u0026x-\u003ed_seq) == 0\n nd-\u003einode = inode\n unlink(\"x\")\n d_delete() // x goes negative\n mkdir(\"x\")\n d_instantiate() // same dentry\n d_can_lookup(x) // true now\n may_lookup()\n VFS_BUG_ON_INODE(!S_ISDIR(nd-\u003einode-\u003ei_mode))\n\nWith CONFIG_PREEMPT_RCU the walker can be preempted in that window, so it\nis not limited to a few instructions. mkdir() only gets the same dentry\nback if the filesystem keeps negative dentries around. tmpfs doesn\u0027t,\next4 does.\n\nApart from the assertion the stale inode is harmless, and has been there\nsince before the assertion was added: nd-\u003eseq no longer matches x-\u003ed_seq,\nso lookup_fast(), follow_dotdot_rcu() and try_to_unlazy() all fail with\n-ECHILD and the walk is redone in ref-walk, whatever the permission check\non the old inode said.\n\nKeep the assertion for ref-walk, where the dentry is pinned and can\u0027t\nchange type, and skip it for rcu-walk. No change for kernels without\nCONFIG_DEBUG_VFS.",
"id": "GHSA-2gm7-x7jv-2vf2",
"modified": "2026-12-03T06:30:37Z",
"published": "2026-12-03T06:30:37Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142890"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/49b4791b48c1240084eb137ca2a2ea18de128461"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/e227cdac03dffa896e02ed7260f9149c4c382715"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.