In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix sysfs interface lifetime
The current nilfs2 sysfs support has issues with the timing of creation and deletion of sysfs entries, potentially leading to null pointer dereferences, use-after-free, and lockdep warnings.
Some of the sysfs attributes for nilfs2 per-filesystem instance refer to metadata file "cpfile", "sufile", or "dat", but nilfs_sysfs_create_device_group that creates those attributes is executed before the inodes for these metadata files are loaded, and nilfs_sysfs_delete_device_group which deletes these sysfs entries is called after releasing their metadata file inodes.
Therefore, access to some of these sysfs attributes may occur outside of the lifetime of these metadata files, resulting in inode NULL pointer dereferences or use-after-free.
In addition, the call to nilfs_sysfs_create_device_group() is made during the locking period of the semaphore "ns_sem" of nilfs object, so the shrinker call caused by the memory allocation for the sysfs entries, may derive lock dependencies "ns_sem" -> (shrinker) -> "locks acquired in nilfs_evict_inode()".
Since nilfs2 may acquire "ns_sem" deep in the call stack holding other locks via its error handler __nilfs_error(), this causes lockdep to report circular locking. This is a false positive and no circular locking actually occurs as no inodes exist yet when nilfs_sysfs_create_device_group() is called. Fortunately, the lockdep warnings can be resolved by simply moving the call to nilfs_sysfs_create_device_group() out of "ns_sem".
This fixes these sysfs issues by revising where the device's sysfs interface is created/deleted and keeping its lifetime within the lifetime of the metadata files above.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade python-perf-debuginfoUpgrade kernel-headersUpgrade kernel-livepatch-4.14.313-235.533Upgrade kernel-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernelUpgrade python-perfUpgrade bpftool-debuginfoUpgrade kernel-livepatch-5.10.178-162.673Upgrade kernel-tools-develUpgrade kernel-debuginfo-common-aarch64Upgrade perfUpgrade perf-debuginfoUpgrade kernel-develUpgrade kernel-tools-debuginfoUpgrade bpftoolUpgrade kernel-tools | May 20, 2026 | May 20, 2026 |
| Debian | — | Upgrade linux | Sep 22, 2025 | Sep 22, 2025 |
| Ubuntu | — | Upgrade linux-intel-iot-realtimeUpgrade linux-realtimeUpgrade linux-intel-iotgUpgrade linux-lowlatency-hwe-5.15Upgrade linux-gcp-5.15Upgrade linux-bluefieldUpgrade linux-gcpUpgrade linux-nvidia-tegra-igxUpgrade linux-azure-5.4Upgrade linux-hwe-5.4Upgrade linux-awsUpgrade linux-gcp-5.4Upgrade linux-raspi-5.4Upgrade linux-iotUpgrade linux-gcp-fipsUpgrade linux-riscv-5.15Upgrade linux-azure-fdeUpgrade linux-nvidia-tegraUpgrade linuxUpgrade linux-xilinx-zynqmpUpgrade linux-raspiUpgrade linux-hwe-5.15Upgrade linux-ibm-5.15Upgrade linux-aws-5.15Upgrade linux-fipsUpgrade linux-gkeUpgrade linux-azure-fipsUpgrade linux-lowlatencyUpgrade linux-oracle-5.4Upgrade linux-ibm-5.4Upgrade linux-kvmUpgrade linux-ibmUpgrade linux-intel-iotg-5.15Upgrade linux-oracle-5.15Upgrade linux-nvidiaUpgrade linux-aws-fipsUpgrade linux-azure-5.15Upgrade linux-oracleUpgrade linux-gkeopUpgrade linux-azureUpgrade linux-nvidia-tegra-5.15Upgrade linux-aws-5.4 | Sep 26, 2025 | Sep 18, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Oct 15, 2025 | Sep 18, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub