CVE-2026-98979
namespace: refuse an automount below a mount that is in no namespace
Check your servers for CVE-2026-98979
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98979 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from df820f8de4e481222b17f9bcee7b909ae8167529, before d8c7f74adf5de78035d41aa33c8f71e12b3ca430 affected from df820f8de4e481222b17f9bcee7b909ae8167529, before c88546071d30417ab9e55821c83f4dc7756cff6f affected from df820f8de4e481222b17f9bcee7b909ae8167529, before c98e74d73a3356ab00fc6bb9dec3c77da1ec1ce4 affected from df820f8de4e481222b17f9bcee7b909ae8167529, before 95fb7c259b86f5521f04973040ad492f2bef6f82 affected from df820f8de4e481222b17f9bcee7b909ae8167529, before 35f2013f83ef16f9f0331c4c3a8e8d161580d574 affected from df820f8de4e481222b17f9bcee7b909ae8167529, before 494c57572d2d5bc2839553ed41aabe92ed0f587c affected from df820f8de4e481222b17f9bcee7b909ae8167529, before 776e20e4fdc23c23687b511ffdc80047878049d3 affected from df820f8de4e481222b17f9bcee7b909ae8167529, before ba985ce08471c555af2a2fbe217c1bc2e72a6d8c
Other versions: unaffected
|
| Linux |
affected 5.8 unaffected before 5.8 unaffected from 5.10.273 up to and including 5.10.* unaffected from 5.15.224 up to and including 5.15.* unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.113 up to and including 6.12.* unaffected from 6.18.57 up to and including 6.18.* unaffected from 7.2.11 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98979 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98979
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98979
trivy image --scanners vuln IMAGE | grep CVE-2026-98979
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d8c7f74adf5de78035d41aa33c8f71e12b3ca430 git.kernel.org
- https://git.kernel.org/stable/c/c88546071d30417ab9e55821c83f4dc7756cff6f git.kernel.org
- https://git.kernel.org/stable/c/c98e74d73a3356ab00fc6bb9dec3c77da1ec1ce4 git.kernel.org
- https://git.kernel.org/stable/c/95fb7c259b86f5521f04973040ad492f2bef6f82 git.kernel.org
- https://git.kernel.org/stable/c/35f2013f83ef16f9f0331c4c3a8e8d161580d574 git.kernel.org
- https://git.kernel.org/stable/c/494c57572d2d5bc2839553ed41aabe92ed0f587c git.kernel.org
- https://git.kernel.org/stable/c/776e20e4fdc23c23687b511ffdc80047878049d3 git.kernel.org
- https://git.kernel.org/stable/c/ba985ce08471c555af2a2fbe217c1bc2e72a6d8c git.kernel.org
Source: the record CVE-2026-98979 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse