namespace: handle mount locking for automounts correctly
In the Linux kernel, the following vulnerability has been resolved: namespace: handle mount locking for automounts correctly If mounts are propagated across user namespaces, attach_recursive_mnt() locks every copy of the source mount to protect overmounts from vanishing and revealing the underlying files or directories. The user namespace is taken from the caller's mount namespaces since this is where the mounts end up. Except, that's not always true. Automounts may legitimately get popped in by tasks located in a different mount and user namespace during path lookup. Then check doesn't make sense at that point. The copy in the namespace of the parent - which may be the host's - is now locked and the host cannot change the flags of its own mounts anymore. Here's the reproducer: - host has debugfs mounted nosuid,nodev,noexec and shared - tracefs automount below it is not yet active - hand a child process a directory descriptor on that mount - child process enters auser and mount namespace - child process' namespace now holds a locked copy of the host's debugfs mount that receives propagation from it - child process stats "tracing/." through the descriptor - lookup runs on the host's mount so the automount lands below the host's mount - propagation puts a copy below the child's copy - both try to clear the flags on the mount they got, with a bind remount: host, on its own automount: MS_REMOUNT|MS_BIND = EPERM child, on the copy in its namespace: MS_REMOUNT|MS_BIND = 0 So the lo
CVE-2026-98977
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98977
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "132c94e31b8bca8ea921f9f96a57d684fa4ae0a9",
"lessThan": "5e8f3ac8fa3d411b422ad32b9168c46a4824cc79",
"versionType": "git"
},
{
"status": "affected",
"version": "132c94e31b8bca8ea921f9f96a57d684fa4ae0a9",
"lessThan": "b3ccde78f1608836e62320428abc0e8aa9cf2329",
"versionType": "git"
},
{
"status": "affected",
"version": "132c94e31b8bca8ea921f9f96a57d684fa4ae0a9",
"lessThan": "e01c79761c7b3373e80094c5eadb21cb864fa8bc",
"versionType": "git"
},
{
"status": "affected",
"version": "132c94e31b8bca8ea921f9f96a57d684fa4ae0a9",
"lessThan": "6ab37fae14196ba2262b152a7d9222c50356d278",
"versionType": "git"
},
{
"status": "affected",
"version": "132c94e31b8bca8ea921f9f96a57d684fa4ae0a9",
"lessThan": "33aadc7c72055fca93cb5a3691d836ebf8b31c9b",
"versionType": "git"
},
{
"status": "affected",
"version": "9c773201d61272db49f8f33a83a3cb2a3fe4b14f",
"versionType": "git"
},
{
"status": "affected",
"version": "3.8.6",
"lessThan": "3.9",
"versionType": "semver"
}
],
"programFiles": [
"fs/namespace.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "3.9"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "3.9",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.11",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/namespace.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98977
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #52830 · Revision 1
- Added to Heist Feed
- Publisher date