CVE-2026-138992

nilfs2: fix checkpoint root lifetime on sysfs errors

No CVSS score yet EPSS 0.18%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-138992

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138992 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.59% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 71ff72d00ce86e0e37849bfd5ac8d0ad996094a9
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 10c8dfa785367e99e95dfa7c0a9af91773d55b81
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 8dc66d82745384ec4df596aa5a79eccda54b7d83
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before e9fdf32ad8e44bc40c1ce8cb019e4b9543a82437
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before b211997e8e76404cd1eeb224afb0e13867642b84
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 435a2d476c0f1a78eb3eb18af8a86346c3c62ac4
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before ae118e79c6a2b0a29ed6e26516aa2050b61c1492
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 2cb947450e0e5a88bb6bb5fca6dbfda1910e74b0
Other versions: unaffected
Linux
affected 3.17
unaffected before 3.17
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138992 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138992

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-138992
trivy image --scanners vuln IMAGE | grep CVE-2026-138992

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-138992 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.