FKIE_CVE-2026-138992

Vulnerability from fkie_nvd - Published: 2026-11-30 14:18 - Updated: 2026-11-30 14:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix checkpoint root lifetime on sysfs errors nilfs_find_or_create_root() links a new checkpoint root into the checkpoint tree and drops ns_cptree_lock before creating the root's sysfs group. If nilfs_sysfs_create_snapshot_group() then fails, the root is freed while it is still reachable from ns_cptree, so a concurrent nilfs_lookup_root() can dereference freed memory. nilfs_sysfs_create_snapshot_group() allocates memory and creates sysfs nodes and may sleep, so it cannot run under the ns_cptree_lock spinlock. Reorder the creation path so that the sysfs group is set up before the root is published: initialize the root, create its sysfs group outside the lock, and only then take ns_cptree_lock to link it into the tree. On sysfs failure the root was never visible and is freed directly; in the unlikely case a root with the same checkpoint number is already present, the sysfs group of the new root is removed before it is freed. Concurrent insertions are already serialized by ns_snapshot_mount_mutex, so only the race against nilfs_lookup_root() needs to be closed. Because kobject_put() does not guarantee that the embedded kobject's release callback has run by the time it returns (CONFIG_DEBUG_KOBJECT_RELEASE defers it), the container must not be freed until the release completes. Keep that wait_for_completion() of snapshot_kobj_unregister inside the sysfs helpers, so both the creation error path and nilfs_sysfs_delete_snapshot_group() wait for the release before their callers free the root.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nilfs2/sysfs.c",
            "fs/nilfs2/the_nilfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "71ff72d00ce86e0e37849bfd5ac8d0ad996094a9",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "10c8dfa785367e99e95dfa7c0a9af91773d55b81",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "8dc66d82745384ec4df596aa5a79eccda54b7d83",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "b211997e8e76404cd1eeb224afb0e13867642b84",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "435a2d476c0f1a78eb3eb18af8a86346c3c62ac4",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "ae118e79c6a2b0a29ed6e26516aa2050b61c1492",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            },
            {
              "lessThan": "2cb947450e0e5a88bb6bb5fca6dbfda1910e74b0",
              "status": "affected",
              "version": "dd70edbde2627f47df118d899de6bbb55abcfdbf",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nilfs2/sysfs.c",
            "fs/nilfs2/the_nilfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.17"
            },
            {
              "lessThan": "3.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "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\nnilfs2: fix checkpoint root lifetime on sysfs errors\n\nnilfs_find_or_create_root() links a new checkpoint root into the\ncheckpoint tree and drops ns_cptree_lock before creating the root\u0027s\nsysfs group.  If nilfs_sysfs_create_snapshot_group() then fails, the\nroot is freed while it is still reachable from ns_cptree, so a\nconcurrent nilfs_lookup_root() can dereference freed memory.\n\nnilfs_sysfs_create_snapshot_group() allocates memory and creates sysfs\nnodes and may sleep, so it cannot run under the ns_cptree_lock spinlock.\nReorder the creation path so that the sysfs group is set up before the\nroot is published: initialize the root, create its sysfs group outside\nthe lock, and only then take ns_cptree_lock to link it into the tree.\nOn sysfs failure the root was never visible and is freed directly; in\nthe unlikely case a root with the same checkpoint number is already\npresent, the sysfs group of the new root is removed before it is freed.\nConcurrent insertions are already serialized by ns_snapshot_mount_mutex,\nso only the race against nilfs_lookup_root() needs to be closed.\n\nBecause kobject_put() does not guarantee that the embedded kobject\u0027s\nrelease callback has run by the time it returns\n(CONFIG_DEBUG_KOBJECT_RELEASE defers it), the container must not be\nfreed until the release completes.  Keep that wait_for_completion() of\nsnapshot_kobj_unregister inside the sysfs helpers, so both the creation\nerror path and nilfs_sysfs_delete_snapshot_group() wait for the release\nbefore their callers free the root."
    }
  ],
  "id": "CVE-2026-138992",
  "lastModified": "2026-11-30T14:18:01.897",
  "metrics": {},
  "published": "2026-11-30T14:18:01.897",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/10c8dfa785367e99e95dfa7c0a9af91773d55b81"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/2cb947450e0e5a88bb6bb5fca6dbfda1910e74b0"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/435a2d476c0f1a78eb3eb18af8a86346c3c62ac4"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/71ff72d00ce86e0e37849bfd5ac8d0ad996094a9"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/8dc66d82745384ec4df596aa5a79eccda54b7d83"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/ae118e79c6a2b0a29ed6e26516aa2050b61c1492"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/b211997e8e76404cd1eeb224afb0e13867642b84"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437"
    }
  ],
  "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.