CVE-2023-53440 Details
Description
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.
A vulnerability in the Linux kernel's nilfs2 file system has been addressed, related to the management of sysfs entries. The issue arose because the creation and deletion of sysfs attributes for nilfs2 were not properly synchronized with the lifecycle of the associated metadata files. This mismanagement could lead to null pointer dereferences, use-after-free errors, and false circular locking warnings. The vulnerability was caused by the sysfs creation function being called before the relevant inodes were loaded, and the deletion function being executed after the inodes were released. As a result, some sysfs attributes could be accessed outside the valid lifetime of the metadata files, causing potential memory access errors. Additionally, the sysfs creation function was called during a critical section of the nilfs object semaphore, leading to reported circular locking dependencies, which were a false positive. The vulnerability has been fixed by reorganizing the sysfs interface management to align with the metadata file lifetimes, thereby eliminating the associated errors and warnings.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1942ccb7d95f287a312fcbabfa8bc9ba501b1953 | kernel.org | Patch |
| https://git.kernel.org/stable/c/3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24 | kernel.org | Patch |
| https://git.kernel.org/stable/c/42560f9c92cc43dce75dbf06cc0d840dced39b12 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5fe0ea141fbb887d407f1bf572ebf24427480d5c | kernel.org | Patch |
| https://git.kernel.org/stable/c/83b16a60e413148685739635901937e2f16a7873 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d20dcec8f326deb77b6688f8441e014045dac457 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d540aea451ab5489777a8156560f1388449b3109 | kernel.org | Patch |
| https://git.kernel.org/stable/c/daf4eb3a908b108279b60172d2f176e70d2df875 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.17, < 4.14.313 >= 4.15, < 4.19.281 >= 4.20, < 5.4.241 >= 5.5, < 5.10.178 >= 5.11, < 5.15.107 >= 5.16, < 6.1.24 >= 6.2, < 6.2.11 6.3 rc1 6.3 rc2 6.3 rc3 6.3 rc4 6.3 rc5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 11, 2025 | Initial Analysis | [email protected] |
| Sep 18, 2025 | New CVE Received | kernel.org |