Skip to main content
Network Thinking Solutions Logo

CVE-2023-53440

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.

All CVEs
CVE-2023-53440Published 9/18/2025

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.

Vendor advisory
CVSS7.8High

Overview

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.

Published
9/18/2025
Last modified
8/4/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 3.17, < 4.14.313

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.281

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.241

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.178

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.107

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.24

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.2.11

Verify advisory

Source
linux kernel
linux
6.3

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < d20dcec8f326deb77b6688f8441e014045dac457

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 5fe0ea141fbb887d407f1bf572ebf24427480d5c

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 83b16a60e413148685739635901937e2f16a7873

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < d540aea451ab5489777a8156560f1388449b3109

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 1942ccb7d95f287a312fcbabfa8bc9ba501b1953

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < daf4eb3a908b108279b60172d2f176e70d2df875

Verify advisory

Source
Linux
Linux
≥ dd70edbde2627f47df118d899de6bbb55abcfdbf, < 42560f9c92cc43dce75dbf06cc0d840dced39b12

Verify advisory

Source
Linux
Linux
3.17

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.