CVE-2023-53440
published 2025-09-18CVE-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…
PriorityP421medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.14%
3.7th percentile
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
26 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.25-1 (bookworm) | linux 6.1.25-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < d20dcec8f326deb77b6688f8441e014045dac457 | d20dcec8f326deb77b6688f8441e014045dac457 |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < 5fe0ea141fbb887d407f1bf572ebf24427480d5c | 5fe0ea141fbb887d407f1bf572ebf24427480d5c |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < 83b16a60e413148685739635901937e2f16a7873 | 83b16a60e413148685739635901937e2f16a7873 |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < 3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24 | 3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24 |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < d540aea451ab5489777a8156560f1388449b3109 | d540aea451ab5489777a8156560f1388449b3109 |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < 1942ccb7d95f287a312fcbabfa8bc9ba501b1953 | 1942ccb7d95f287a312fcbabfa8bc9ba501b1953 |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < daf4eb3a908b108279b60172d2f176e70d2df875 | daf4eb3a908b108279b60172d2f176e70d2df875 |
| linux | linux | >= dd70edbde2627f47df118d899de6bbb55abcfdbf < 42560f9c92cc43dce75dbf06cc0d840dced39b12 | 42560f9c92cc43dce75dbf06cc0d840dced39b12 |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.25-1 | 6.1.25-1 |
| linux | linux_kernel | >= 0 < 6.1.25-1 | 6.1.25-1 |
| linux | linux_kernel | >= 0 < 6.1.25-1 | 6.1.25-1 |
| linux | linux_kernel | >= 3.17 < 4.14.313 | 4.14.313 |
| linux | linux_kernel | >= 4.15 < 4.19.281 | 4.19.281 |
| linux | linux_kernel | >= 4.20 < 5.4.241 | 5.4.241 |
| linux | linux_kernel | >= 5.11 < 5.15.107 | 5.15.107 |
| linux | linux_kernel | >= 5.16 < 6.1.24 | 6.1.24 |
| linux | linux_kernel | >= 5.5 < 5.10.178 | 5.10.178 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
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 w
osv·2025-09-18·CVSS 5.5
CVE-2023-53440 [MEDIUM] 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 w
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
GHSA
GHSA-v99g-2hwc-34c3: In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix sysfs interface lifetime
The current nilfs2 sysfs support has issues
ghsa_unreviewed·2025-09-18
CVE-2023-53440 [MEDIUM] CWE-476 GHSA-v99g-2hwc-34c3: In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix sysfs interface lifetime
The current nilfs2 sysfs support has issues
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 in
Red Hat
kernel: nilfs2: fix sysfs interface lifetime
vendor_redhat·2025-09-18·CVSS 5.5
CVE-2023-53440 [MEDIUM] kernel: nilfs2: fix sysfs interface lifetime
kernel: nilfs2: fix sysfs interface lifetime
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 lifetim
Debian
CVE-2023-53440: linux - In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix...
vendor_debian·2023·CVSS 5.5
CVE-2023-53440 [MEDIUM] CVE-2023-53440: linux - In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix...
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
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/1942ccb7d95f287a312fcbabfa8bc9ba501b1953https://git.kernel.org/stable/c/3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24https://git.kernel.org/stable/c/42560f9c92cc43dce75dbf06cc0d840dced39b12https://git.kernel.org/stable/c/5fe0ea141fbb887d407f1bf572ebf24427480d5chttps://git.kernel.org/stable/c/83b16a60e413148685739635901937e2f16a7873https://git.kernel.org/stable/c/d20dcec8f326deb77b6688f8441e014045dac457https://git.kernel.org/stable/c/d540aea451ab5489777a8156560f1388449b3109https://git.kernel.org/stable/c/daf4eb3a908b108279b60172d2f176e70d2df875
2025-09-18
Published