CVE-2026-138992

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138993In the Linux kernel, the following vulnerability has been resolved: media: ir_toy: Validate the maximum tx carrier Reject any carrier the CVE-2026-138994In the Linux kernel, the following vulnerability has been resolved: media: serial_ir: Fix race condition where timer can be re-armed EnsurCVE-2026-138995In the Linux kernel, the following vulnerability has been resolved: media: ene_ir: Ensure teardown is done in the correct order The timer CVE-2026-138996In the Linux kernel, the following vulnerability has been resolved: seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupCVE-2026-138997In the Linux kernel, the following vulnerability has been resolved: signalfd: don't dequeue the forced fatal signals These signals should CVE-2026-138998In the Linux kernel, the following vulnerability has been resolved: i3c: mipi-i3c-hci-pci: Set drvdata before creating LTR sysfs attribute CVE-2026-138999In the Linux kernel, the following vulnerability has been resolved: i3c: mipi-i3c-hci: Bounce short reads irrespective of the IOMMU The coCVE-2026-13904.3The Redirect countdown plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.0. This is dCVE-2026-139006.5Inappropriate implementation in Chromecast in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the rendereCVE-2026-139000In the Linux kernel, the following vulnerability has been resolved: i3c: master: Fix out-of-bounds read in DMA bounce buffer setup When a CVE-2026-139001In the Linux kernel, the following vulnerability has been resolved: cpufreq: CPPC: Create the FIE worker before enabling PCC callbacks cppCVE-2026-139002In the Linux kernel, the following vulnerability has been resolved: ACPI: CPPC: Propagate errors from cross-CPU FFH calls The arm64 and RI
CVE-2026-138992: Unscored | Vulnix