# CVE-2026-142818: ns: don't add init\_ipc\_ns and init\_net without namespace support

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:38.303Z
- **Modified:** 2026-12-03T04:18:17.120Z

## Who should check

- Anyone running Linux \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< e0efb02fd551fe5e76e959a3112f55a612fa20e0; \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54
- Anyone running Linux 6.18

## Description

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

ns: don't add init\_ipc\_ns and init\_net without namespace support

When CONFIG\_IPC\_NS or CONFIG\_NET\_NS are turned off we still add the
initial ipc and network namespace to the namespace trees. ipc\_ns\_init()
calls ns\_tree\_add(&init\_ipc\_ns) whenever CONFIG\_SYSVIPC is set and
setup\_net() calls ns\_tree\_add\_raw() on init\_net whenever CONFIG\_NET is
set.

But without CONFIG\_IPC\_NS and CONFIG\_NET\_NS these aren't namespaces
userspace can do anything with. They don't have proc\_ns\_operations so
there's no /proc/\<pid\>/ns/{ipc,net} for them, nsfs\_fh\_to\_dentry()
refuses them with -EOPNOTSUPP, and since ns-\>ops is NULL
\_\_ns\_tree\_add\_raw() doesn't add them to the owner list of init\_user\_ns
either. So they end up half registered. That's also not how we treat
any of the other namespace types. Without CONFIG\_UTS\_NS, CONFIG\_PID\_NS,
CONFIG\_TIME\_NS or CONFIG\_USER\_NS the initial namespace is never added
to the tree.

listns() walks the unified tree and calls is\_current\_namespace() for
every namespace it finds via may\_list\_ns(). But is\_current\_namespace()
only knows about CLONE\_NEWIPC and CLONE\_NEWNET if CONFIG\_IPC\_NS and
CONFIG\_NET\_NS are set. Otherwise we end up in the default case and its
VFS\_WARN\_ON\_ONCE(). Any unprivileged caller can trigger that with a
plain listns() call:

  WARNING: CPU: 0 PID: 526 at fs/nsfs.c:508 is\_current\_namespace+0x12f/0x440
  Call Trace:
   legitimize\_ns+0x25f/0x4c0
   do\_listns+0x185/0x5c0
   \_\_do\_sys\_listns+0x13b/0x300

Instead of teaching is\_current\_namespace() about namespaces that can't
be opened, only add the initial namespaces to the tree if their
namespace type is enabled. Move the registration of init\_ipc\_ns into
ipc/namespace.c which is only built with CONFIG\_IPC\_NS. That also fixes
CONFIG\_SYSVIPC=n, CONFIG\_POSIX\_MQUEUE=y, CONFIG\_IPC\_NS=y where
ipc/shm.c isn't built and init\_ipc\_ns was never added at all. For the
network namespace only call ns\_tree\_add\_raw() if CONFIG\_NET\_NS is set.
Without CONFIG\_NET\_NS cleanup\_net() isn't built and init\_net is never
removed so there's nothing to balance.

## Affected and fixed versions

- Linux: \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< e0efb02fd551fe5e76e959a3112f55a612fa20e0; \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54 (cvelist)
- Linux: 6.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54 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-142818. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142818.md
Affected: Linux >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < e0efb02fd551fe5e76e959a3112f55a612fa20e0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54; Linux 6.18
Fixed in: Linux 0b014c734f70d258bb1c112b2bd6598fdcbce7b0, Linux 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54

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-142818 being exploited?

There is no confirmed exploitation: CVE-2026-142818 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< e0efb02fd551fe5e76e959a3112f55a612fa20e0; \>= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, \< 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54; Linux 6.18.

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

Yes. Fixed in Linux 0b014c734f70d258bb1c112b2bd6598fdcbce7b0, Linux 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54. Upgrade Linux to 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54 or later.

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

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/0b014c734f70d258bb1c112b2bd6598fdcbce7b0>
- other: <https://git.kernel.org/stable/c/e0efb02fd551fe5e76e959a3112f55a612fa20e0>
- other: <https://git.kernel.org/stable/c/82f1c815aaef1905c5c6c386c8a0d74f6ff70a54>

## 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-142818>

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