CVE-2026-142818
ns: don't add init_ipc_ns and init_net without namespace support
Mitigation
- Upgrade Linux to 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54 or later.
Who should check
- Anyone running Linux >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < e0efb02fd551fe5e76e959a3112f55a612fa20e0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54
- Anyone running Linux 6.18
Vulnerability facts
- Affected
- Linux >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < e0efb02fd551fe5e76e959a3112f55a612fa20e0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54; Linux 6.18
- Fixed in
- Linux 0b014c734f70d258bb1c112b2bd6598fdcbce7b0, Linux 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 0b014c734f70d258bb1c112b2bd6598fdcbce7b0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < e0efb02fd551fe5e76e959a3112f55a612fa20e0; >= 74b24a582e1ff3960f0454f57afc2bcdbc52562e, < 82f1c815aaef1905c5c6c386c8a0d74f6ff70a54 | — | cvelist |
| Linux | 6.18 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |