CVE-2026-98992 (GCVE-0-2026-98992)
Vulnerability from cvelistv5
Published
2026-10-23 12:20
Modified
2026-10-30 12:40
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In 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.
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac Version: e149ed2b805fefdccf7ccdfc19eca22fdd4514ac |
||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/namespace.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "94d05b62dc7aea236db20166e79ee002e466393a",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "07c6a8f004bcc58b4ccf993e6efa7b9b8b4a1b8b",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "31cf157298271392ab5fb0805b28d37c8d7a8057",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "86a2d56b1960720bf1844441c0890621e9db2f25",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "7e037b1fd339d865737c8accd29abcf40130a5a0",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "b47b40c4f058418f9707454543179df240796aad",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "8d3527457e183cedee3003c2897314da49488311",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
},
{
"lessThan": "8bacbf6be959973b28b691713a872c12eae69eec",
"status": "affected",
"version": "e149ed2b805fefdccf7ccdfc19eca22fdd4514ac",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/namespace.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.19"
},
{
"lessThan": "3.19",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.273",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.224",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.191",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.113",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.11",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.273",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.224",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.191",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.160",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.113",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.57",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2.11",
"versionStartIncluding": "3.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3",
"versionStartIncluding": "3.19",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"providerMetadata": {
"dateUpdated": "2026-10-30T12:40:45.913Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/94d05b62dc7aea236db20166e79ee002e466393a"
},
{
"url": "https://git.kernel.org/stable/c/07c6a8f004bcc58b4ccf993e6efa7b9b8b4a1b8b"
},
{
"url": "https://git.kernel.org/stable/c/31cf157298271392ab5fb0805b28d37c8d7a8057"
},
{
"url": "https://git.kernel.org/stable/c/86a2d56b1960720bf1844441c0890621e9db2f25"
},
{
"url": "https://git.kernel.org/stable/c/7e037b1fd339d865737c8accd29abcf40130a5a0"
},
{
"url": "https://git.kernel.org/stable/c/b47b40c4f058418f9707454543179df240796aad"
},
{
"url": "https://git.kernel.org/stable/c/8d3527457e183cedee3003c2897314da49488311"
},
{
"url": "https://git.kernel.org/stable/c/8bacbf6be959973b28b691713a872c12eae69eec"
}
],
"title": "namespace: don\u0027t copy an unmounted mount tree",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-98992",
"datePublished": "2026-10-23T12:20:11.256Z",
"dateReserved": "2026-09-25T10:25:14.384Z",
"dateUpdated": "2026-10-30T12:40:45.913Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…