CVE-2023-53440
nilfs2: fix sysfs interface lifetime
Check your servers for CVE-2023-53440
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53440 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.27% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before d20dcec8f326deb77b6688f8441e014045dac457 affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 5fe0ea141fbb887d407f1bf572ebf24427480d5c affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 83b16a60e413148685739635901937e2f16a7873 affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24 affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before d540aea451ab5489777a8156560f1388449b3109 affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 1942ccb7d95f287a312fcbabfa8bc9ba501b1953 affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before daf4eb3a908b108279b60172d2f176e70d2df875 affected from dd70edbde2627f47df118d899de6bbb55abcfdbf, before 42560f9c92cc43dce75dbf06cc0d840dced39b12
Other versions: unaffected
|
| Linux |
affected 3.17 unaffected before 3.17 unaffected from 4.14.313 up to and including 4.14.* unaffected from 4.19.281 up to and including 4.19.* unaffected from 5.4.241 up to and including 5.4.* unaffected from 5.10.178 up to and including 5.10.* unaffected from 5.15.107 up to and including 5.15.* unaffected from 6.1.24 up to and including 6.1.* unaffected from 6.2.11 up to and including 6.2.* unaffected 6.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53440 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53440
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-53440
trivy image --scanners vuln IMAGE | grep CVE-2023-53440
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d20dcec8f326deb77b6688f8441e014045dac457 git.kernel.org
- https://git.kernel.org/stable/c/5fe0ea141fbb887d407f1bf572ebf24427480d5c git.kernel.org
- https://git.kernel.org/stable/c/83b16a60e413148685739635901937e2f16a7873 git.kernel.org
- https://git.kernel.org/stable/c/3dbee84bf9e3273c4bb9ca6fc18ff22fba23dd24 git.kernel.org
- https://git.kernel.org/stable/c/d540aea451ab5489777a8156560f1388449b3109 git.kernel.org
- https://git.kernel.org/stable/c/1942ccb7d95f287a312fcbabfa8bc9ba501b1953 git.kernel.org
- https://git.kernel.org/stable/c/daf4eb3a908b108279b60172d2f176e70d2df875 git.kernel.org
- https://git.kernel.org/stable/c/42560f9c92cc43dce75dbf06cc0d840dced39b12 git.kernel.org
Source: the record CVE-2023-53440 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse