# CVE-2026-98987: namespace: look at the topmost mount for a mount namespace file

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-23T12:20:06.180Z
- **Modified:** 2026-10-23T13:17:20.643Z

## Who should check

- Anyone running Linux \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< b9c40553f6ceba50042281eef6f701e5fb719726; \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< 87ecd4c6da146363384a603bd9e90c90e7275536; \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< 8714b44adac7b10506e1db3ef1710689751f0f10
- Anyone running Linux 6.17

## Description

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

namespace: look at the topmost mount for a mount namespace file

attach\_recursive\_mnt() preallocates a mountpoint for the root of the
topmost mount of the source so that a mount that already sits at the
destination can be put on top of the source or on top of one of its
propagated copies.

The copies are made without CL\_COPY\_MNT\_NS\_FILE so their chain of
overmounts is shorter than the source's. It ends below the first bind
mount of a mount namespace file. So while the loop walks up the chain of
the source it remembers the mountpoint of that mount in "shorter" and
the existing mount is put there for the copies.

But the loop ends at the topmost mount without ever looking at it. If
the topmost mount is the only mount namespace file in the chain
"shorter" stays NULL and mnt\_change\_mountpoint() attaches the existing
mount of the copy below the root of the mount namespace file. That's a
dentry of nsfs. No path walk in the copy's mount namespace ever gets
there. The mount is gone until its parent goes and the copy that took
its place can't be unmounted synchronously because it has a child:

  S      bind mount of a file
  N      bind mount of a mount namespace file on top of S
  A      shared mount, B a slave of A, Q mounted on B/file

  move\_mount(S, A/file)
  cat B/file          -\> the content of S instead of Q
  umount B/file       -\> EBUSY

Look at every mount of the chain including the topmost one.

## Affected and fixed versions

- Linux: \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< b9c40553f6ceba50042281eef6f701e5fb719726; \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< 87ecd4c6da146363384a603bd9e90c90e7275536; \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< 8714b44adac7b10506e1db3ef1710689751f0f10 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 8714b44adac7b10506e1db3ef1710689751f0f10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98987. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98987.md
Affected: Linux >= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, < b9c40553f6ceba50042281eef6f701e5fb719726; >= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, < 87ecd4c6da146363384a603bd9e90c90e7275536; >= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, < 8714b44adac7b10506e1db3ef1710689751f0f10; Linux 6.17
Fixed in: Linux 87ecd4c6da146363384a603bd9e90c90e7275536, Linux 8714b44adac7b10506e1db3ef1710689751f0f10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98987 being exploited?

There is no confirmed exploitation: CVE-2026-98987 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98987?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98987?

Linux \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< b9c40553f6ceba50042281eef6f701e5fb719726; \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< 87ecd4c6da146363384a603bd9e90c90e7275536; \>= 96f5d2e051653f2cfe9137c5d3c7794c358ffb03, \< 8714b44adac7b10506e1db3ef1710689751f0f10; Linux 6.17.

### Is there a fix for CVE-2026-98987?

Yes. Fixed in Linux 87ecd4c6da146363384a603bd9e90c90e7275536, Linux 8714b44adac7b10506e1db3ef1710689751f0f10. Upgrade Linux to 8714b44adac7b10506e1db3ef1710689751f0f10 or later.

### How do I check if I'm affected by CVE-2026-98987?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b9c40553f6ceba50042281eef6f701e5fb719726>
- other: <https://git.kernel.org/stable/c/87ecd4c6da146363384a603bd9e90c90e7275536>
- other: <https://git.kernel.org/stable/c/8714b44adac7b10506e1db3ef1710689751f0f10>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98987>

HTML: <https://flawdb.com/CVE-2026-98987> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98987>
