GHSA-P9PG-23XC-8CJW
Vulnerability from github – Published: 2026-10-23 15:31 – Updated: 2026-10-23 15:31In the Linux kernel, the following vulnerability has been resolved:
namespace: don't copy an unmounted mount tree
may_copy_tree() accepts a mount whose root is an nsfs or pidfs file before it checks whether that mount is mounted. This exception exists for nsfs and pidfs mounts. They are part of no mount namespace so neither check_mnt() nor is_mounted() would let them through and bind-mounting a nsfsfd or a pidfd wouldn't work.
Problem is that exception also admits a bind mount of such a file when it was lazily unmounted and is only kept alive by a file descriptor:
mount --bind /proc/self/ns/net /tmp/x exec 3< /tmp/x umount -l /tmp/x mount --rbind /proc/self/fd/3 /tmp/y
With MS_REC or AT_RECURSIVE copy_tree() doesn't stop at the unmounted mount. It copies every mount that stayed attached to it as well. So if you have a bunch of overmounts over the nsfsfd or the pidfd the whole unmounted stack is copied. That's a bug.
So refuse to walk an unmounted tree. Copying its root alone stays possible. So a bind mount of a namespace that is gone can still be recreated from a file descriptor on the old one. The file descriptor pins that mount and its root and __has_locked_children() only reads the direct children which don't leave the parent's list without namespace_sem. The internal mounts carry MNT_NS_INTERNAL instead of NULL and are still walked. Copying an unmounted tree recursively fails with EINVAL.
{
"affected": [],
"aliases": [
"CVE-2026-98992"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-23T13:17:21Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnamespace: don\u0027t copy an unmounted mount tree\n\nmay_copy_tree() accepts a mount whose root is an nsfs or pidfs file\nbefore it checks whether that mount is mounted. This exception exists\nfor nsfs and pidfs mounts. They are part of no mount namespace so\nneither check_mnt() nor is_mounted() would let them through and\nbind-mounting a nsfsfd or a pidfd wouldn\u0027t work.\n\nProblem is that exception also admits a bind mount of such a file when\nit was lazily unmounted and is only kept alive by a file descriptor:\n\n mount --bind /proc/self/ns/net /tmp/x\n exec 3\u003c /tmp/x\n umount -l /tmp/x\n mount --rbind /proc/self/fd/3 /tmp/y\n\nWith MS_REC or AT_RECURSIVE copy_tree() doesn\u0027t stop at the unmounted\nmount. It copies every mount that stayed attached to it as well. So if\nyou have a bunch of overmounts over the nsfsfd or the pidfd the whole\nunmounted stack is copied. That\u0027s a bug.\n\nSo refuse to walk an unmounted tree. Copying its root alone stays\npossible. So a bind mount of a namespace that is gone can still be\nrecreated from a file descriptor on the old one. The file descriptor\npins that mount and its root and __has_locked_children() only reads the\ndirect children which don\u0027t leave the parent\u0027s list without\nnamespace_sem. The internal mounts carry MNT_NS_INTERNAL instead of NULL\nand are still walked. Copying an unmounted tree recursively fails with\nEINVAL.",
"id": "GHSA-p9pg-23xc-8cjw",
"modified": "2026-10-23T15:31:34Z",
"published": "2026-10-23T15:31:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98992"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/7e037b1fd339d865737c8accd29abcf40130a5a0"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/86a2d56b1960720bf1844441c0890621e9db2f25"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8bacbf6be959973b28b691713a872c12eae69eec"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8d3527457e183cedee3003c2897314da49488311"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b47b40c4f058418f9707454543179df240796aad"
}
],
"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
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.