Skip to main content
VulnerabilityPublished

CVE-2026-138992: Linux kernel · nilfs2: fix checkpoint root lifetime on sysfs errors

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437 : update Linux kernel when convenient.

Data as of 30 Nov 2026, 14:00 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437, b211997e8e76404cd1eeb224afb0e13867642b84, ae118e79c6a2b0a29ed6e26516aa2050b61c1492 +5

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437
Fixed in
  • e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437
LinuxLinuxAffected
  • ≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < b211997e8e76404cd1eeb224afb0e13867642b84
Fixed in
  • b211997e8e76404cd1eeb224afb0e13867642b84
LinuxLinuxAffected
  • ≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < ae118e79c6a2b0a29ed6e26516aa2050b61c1492
Fixed in
  • ae118e79c6a2b0a29ed6e26516aa2050b61c1492
LinuxLinuxAffected
  • ≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 435a2d476c0f1a78eb3eb18af8a86346c3c62ac4
Fixed in
  • 435a2d476c0f1a78eb3eb18af8a86346c3c62ac4
LinuxLinuxAffected
  • ≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 71ff72d00ce86e0e37849bfd5ac8d0ad996094a9
Fixed in
  • 71ff72d00ce86e0e37849bfd5ac8d0ad996094a9
LinuxLinuxAffected
  • ≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 10c8dfa785367e99e95dfa7c0a9af91773d55b81
Fixed in
  • 10c8dfa785367e99e95dfa7c0a9af91773d55b81

Description

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.

References

Community reviews

Loading reviews…