CVE-2023-53440

nilfs2: fix sysfs interface lifetime

MEDIUM
5.5
CVSS Score
Published: September 18, 2025 at 04:04 PM UTC
Updated: August 5, 2026 at 10:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.17 ≤ v < 4.14.3133.17 ≤ v < 4.19.2813.17 ≤ v < 5.10.1783.17 ≤ v < 5.15.1073.17 ≤ v < 5.4.2413.17 ≤ v < 6.1.243.17 ≤ v < 6.2.113.17 ≤ v < 6.34.15 ≤ v < 4.19.2814.20 ≤ v < 5.4.2415.11 ≤ v < 5.15.1075.16 ≤ v < 6.1.245.5 ≤ v < 5.10.1786.2 ≤ v < 6.2.116.3 rc16.3 rc26.3 rc36.3 rc46.3 rc5dd70edbde2627f47df118d899de6bbb55abcfdbf
Vendor states this is fixed in 1942ccb7d95f287a312fcbabfa8bc9ba501b1953 (fixed)
Vendor states this is fixed in 3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24 (fixed)
Vendor states this is fixed in 42560f9c92cc43dce75dbf06cc0d840dced39b12 (fixed)
Vendor states this is fixed in 5fe0ea141fbb887d407f1bf572ebf24427480d5c (fixed)
Vendor states this is fixed in 83b16a60e413148685739635901937e2f16a7873 (fixed)
Vendor states this is fixed in d20dcec8f326deb77b6688f8441e014045dac457 (fixed)
Vendor states this is fixed in d540aea451ab5489777a8156560f1388449b3109 (fixed)
Vendor states this is fixed in daf4eb3a908b108279b60172d2f176e70d2df875 (fixed)
Vendor states this is fixed in 3.17 (unaffected)
Vendor states this is fixed in 4.14.313 (unaffected)
Vendor states this is fixed in 4.19.281 (unaffected)
Vendor states this is fixed in 5.10.178 (unaffected)
Vendor states this is fixed in 5.15.107 (unaffected)
Vendor states this is fixed in 5.4.241 (unaffected)
Vendor states this is fixed in 6.1.24 (unaffected)
Vendor states this is fixed in 6.2.11 (unaffected)
Vendor states this is fixed in 6.3 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card