FKIE_CVE-2026-142818

Vulnerability from fkie_nvd - Published: 2026-12-03 04:18 - Updated: 2026-12-03 04:18
Severity
Summary
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.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "ipc/namespace.c",
            "ipc/shm.c",
            "net/core/net_namespace.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0b014c734f70d258bb1c112b2bd6598fdcbce7b0",
              "status": "affected",
              "version": "74b24a582e1ff3960f0454f57afc2bcdbc52562e",
              "versionType": "git"
            },
            {
              "lessThan": "e0efb02fd551fe5e76e959a3112f55a612fa20e0",
              "status": "affected",
              "version": "74b24a582e1ff3960f0454f57afc2bcdbc52562e",
              "versionType": "git"
            },
            {
              "lessThan": "82f1c815aaef1905c5c6c386c8a0d74f6ff70a54",
              "status": "affected",
              "version": "74b24a582e1ff3960f0454f57afc2bcdbc52562e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "ipc/namespace.c",
            "ipc/shm.c",
            "net/core/net_namespace.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.18"
            },
            {
              "lessThan": "6.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nns: don\u0027t add init_ipc_ns and init_net without namespace support\n\nWhen CONFIG_IPC_NS or CONFIG_NET_NS are turned off we still add the\ninitial ipc and network namespace to the namespace trees. ipc_ns_init()\ncalls ns_tree_add(\u0026init_ipc_ns) whenever CONFIG_SYSVIPC is set and\nsetup_net() calls ns_tree_add_raw() on init_net whenever CONFIG_NET is\nset.\n\nBut without CONFIG_IPC_NS and CONFIG_NET_NS these aren\u0027t namespaces\nuserspace can do anything with. They don\u0027t have proc_ns_operations so\nthere\u0027s no /proc/\u003cpid\u003e/ns/{ipc,net} for them, nsfs_fh_to_dentry()\nrefuses them with -EOPNOTSUPP, and since ns-\u003eops is NULL\n__ns_tree_add_raw() doesn\u0027t add them to the owner list of init_user_ns\neither. So they end up half registered. That\u0027s also not how we treat\nany of the other namespace types. Without CONFIG_UTS_NS, CONFIG_PID_NS,\nCONFIG_TIME_NS or CONFIG_USER_NS the initial namespace is never added\nto the tree.\n\nlistns() walks the unified tree and calls is_current_namespace() for\nevery namespace it finds via may_list_ns(). But is_current_namespace()\nonly knows about CLONE_NEWIPC and CLONE_NEWNET if CONFIG_IPC_NS and\nCONFIG_NET_NS are set. Otherwise we end up in the default case and its\nVFS_WARN_ON_ONCE(). Any unprivileged caller can trigger that with a\nplain listns() call:\n\n  WARNING: CPU: 0 PID: 526 at fs/nsfs.c:508 is_current_namespace+0x12f/0x440\n  Call Trace:\n   legitimize_ns+0x25f/0x4c0\n   do_listns+0x185/0x5c0\n   __do_sys_listns+0x13b/0x300\n\nInstead of teaching is_current_namespace() about namespaces that can\u0027t\nbe opened, only add the initial namespaces to the tree if their\nnamespace type is enabled. Move the registration of init_ipc_ns into\nipc/namespace.c which is only built with CONFIG_IPC_NS. That also fixes\nCONFIG_SYSVIPC=n, CONFIG_POSIX_MQUEUE=y, CONFIG_IPC_NS=y where\nipc/shm.c isn\u0027t built and init_ipc_ns was never added at all. For the\nnetwork namespace only call ns_tree_add_raw() if CONFIG_NET_NS is set.\nWithout CONFIG_NET_NS cleanup_net() isn\u0027t built and init_net is never\nremoved so there\u0027s nothing to balance."
    }
  ],
  "id": "CVE-2026-142818",
  "lastModified": "2026-12-03T04:18:17.120",
  "metrics": {},
  "published": "2026-12-03T04:18:17.120",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/0b014c734f70d258bb1c112b2bd6598fdcbce7b0"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/82f1c815aaef1905c5c6c386c8a0d74f6ff70a54"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/e0efb02fd551fe5e76e959a3112f55a612fa20e0"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.