Description
In the Linux kernel, the following vulnerability has been resolved:

namespace: refuse an automount below a mount that is in no namespace

It's possible to add autmounts even when the parent mount isn't in the
mount namespace of the caller. The only requirement we have is that the
parent mount namespace must not be NULL, i.e., unmounted.

Problem is that clone_private_mount() has MNT_NS_INTERNAL which makes
that trivially true. So that passes the test and attach_recursive_mnt()
accepts that as a mount point and funny enough, count_mounts()
dereferences MNT_NS_INTERNAL. The problem is it is an error pointer...

So we can reach this in userspace via fanotify. A filesystem mark on the
lower filesystem of an overlay reports paths on the layer clone and
reading the event hands out a descriptor on it. For example with debugfs
as the lower layer it goes kaboom:

openat(evfd, "tracing", O_DIRECTORY)

Oops: general protection fault
KASAN: null-ptr-deref in range [0x1d0-0x1d7]
RIP: 0010:count_mounts+0x35/0x200
attach_recursive_mnt
finish_automount

And since that sleeping beauty happens under namespace_sem held for
writing every mount operation on the system blocks from then on.
Congrats.

Use is_mounted() instead which rejects unmounted and internal mounts
alike. The open fails with EINVAL just as it did before
clone_private_mount() used MNT_NS_INTERNAL.
Published: 2026-10-23
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (kernel crash)
Action: Patch Immediately
AI Analysis

Impact

The kernel incorrectly allows the creation of automounts underneath a mount that is not in the caller's mount namespace. This condition is triggered when the parent mount namespace is marked as internal, which is always true because clone_private_mount() uses MNT_NS_INTERNAL. Consequently, attach_recursive_mnt() treats this as a valid mount point and count_mounts() dereferences the internal pointer, resulting in a null pointer dereference and a general protection fault. The failure propagates to user space when a fanotify event is processed, causing a kernel panic and system hang.

Affected Systems

The flaw exists in the Linux kernel and affects any kernel build that contains the buggy automount handling logic. No specific kernel version range is listed, so all installations of a Linux kernel that have not been patched with the is_mounted() check are potentially vulnerable. The vulnerability can be triggered by user-space processes that create fanotify marks on an overlay filesystem whose lower layer is an unmounted or debugfs mount.

Risk and Exploitability

Because the vulnerability leads to an unconditional crash, the impact is a denial of service. The CVSS score of 4.7 indicates moderate severity. The EPSS score is < 1%, implying that active exploitation is unlikely, but the presence of a local exploit path via fanotify makes the vulnerability exploitable by any local process capable of creating fanotify events on an overlay with an unmounted lower layer. The kernel panic prevents the system from handling further operations and blocks all processes until a reboot or recovery, resulting in a system-wide denial of service.

Generated by OpenCVE AI on October 29, 2026 at 14:14 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the is_mounted() fix for automount namespace checks.
  • If an immediate kernel update is not possible, limit or disable fanotify marks on overlay filesystems, and avoid using debugfs as the lower layer in overlay mounts.
  • Monitor system logs for KASAN or general protection fault messages and ensure critical services restart to mitigate downtime.

Generated by OpenCVE AI on October 29, 2026 at 14:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 13:00:00 +0000


Thu, 29 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 23 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Fri, 23 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Fri, 23 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: namespace: refuse an automount below a mount that is in no namespace It's possible to add autmounts even when the parent mount isn't in the mount namespace of the caller. The only requirement we have is that the parent mount namespace must not be NULL, i.e., unmounted. Problem is that clone_private_mount() has MNT_NS_INTERNAL which makes that trivially true. So that passes the test and attach_recursive_mnt() accepts that as a mount point and funny enough, count_mounts() dereferences MNT_NS_INTERNAL. The problem is it is an error pointer... So we can reach this in userspace via fanotify. A filesystem mark on the lower filesystem of an overlay reports paths on the layer clone and reading the event hands out a descriptor on it. For example with debugfs as the lower layer it goes kaboom: openat(evfd, "tracing", O_DIRECTORY) Oops: general protection fault KASAN: null-ptr-deref in range [0x1d0-0x1d7] RIP: 0010:count_mounts+0x35/0x200 attach_recursive_mnt finish_automount And since that sleeping beauty happens under namespace_sem held for writing every mount operation on the system blocks from then on. Congrats. Use is_mounted() instead which rejects unmounted and internal mounts alike. The open fails with EINVAL just as it did before clone_private_mount() used MNT_NS_INTERNAL.
Title namespace: refuse an automount below a mount that is in no namespace
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-30T12:40:40.137Z

Reserved: 2026-09-25T10:25:14.383Z

Link: CVE-2026-98979

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:19.627

Modified: 2026-10-30T13:21:33.867

Link: CVE-2026-98979

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-23T00:00:00Z

Links: CVE-2026-98979 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T14:15:07Z

Weaknesses