CVE-2023-53337
nilfs2: do not write dirty data after degenerating to read-only
Check your servers for CVE-2023-53337
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-53337 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: do not write dirty data after degenerating to read-only
According to syzbot's report, mark_buffer_dirty() called from nilfs_segctor_do_construct() outputs a warning with some patterns after nilfs2 detects metadata corruption and degrades to read-only mode.
After such read-only degeneration, page cache data may be cleared through nilfs_clear_dirty_page() which may also clear the uptodate flag for their buffer heads. However, even after the degeneration, log writes are still performed by unmount processing etc., which causes mark_buffer_dirty() to be called for buffer heads without the "uptodate" flag and causes the warning.
Since any writes should not be done to a read-only file system in the first place, this fixes the warning in mark_buffer_dirty() by letting nilfs_segctor_do_construct() abort early if in read-only mode.
This also changes the retry check of nilfs_segctor_write_out() to avoid unnecessary log write retries if it detects -EROFS that nilfs_segctor_do_construct() returned.
Severity (CVSS)
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.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.7% 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
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before bd89073fc7a5d03b1d06b372addbe405e5a925f4 affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before e9c5412c5972124776c1b873533eb39e287a4dfa affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before 4569a292a84e340e97d178898ad1cfe1a3080a61 affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before 7c3e662048053802f6b0db3a78e97f4e1f7edc4f affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before 13f73ef77baa4764dc1ca4fcbae9cade05b83866 affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before a73201c607d8e506358d60aafddda4246bdd9350 affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before 4005cec6847c06ee191583270b7cdd7e696543cc affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before 55f7810632f993cff622a0ddbc7c865892294b61 affected from 8c26c4e2694a163d525976e804d81cd955bbb40c, before 28a65b49eb53e172d23567005465019658bfdb4d
Other versions: unaffected
|
| Linux |
affected 3.10 unaffected before 3.10 unaffected from 4.14.315 up to and including 4.14.* unaffected from 4.19.283 up to and including 4.19.* unaffected from 5.4.243 up to and including 5.4.* unaffected from 5.10.180 up to and including 5.10.* unaffected from 5.15.111 up to and including 5.15.* unaffected from 6.1.28 up to and including 6.1.* unaffected from 6.2.15 up to and including 6.2.* unaffected from 6.3.2 up to and including 6.3.* unaffected 6.4 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-53337 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53337
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-53337
trivy image --scanners vuln IMAGE | grep CVE-2023-53337
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/bd89073fc7a5d03b1d06b372addbe405e5a925f4 git.kernel.org
- https://git.kernel.org/stable/c/e9c5412c5972124776c1b873533eb39e287a4dfa git.kernel.org
- https://git.kernel.org/stable/c/4569a292a84e340e97d178898ad1cfe1a3080a61 git.kernel.org
- https://git.kernel.org/stable/c/7c3e662048053802f6b0db3a78e97f4e1f7edc4f git.kernel.org
- https://git.kernel.org/stable/c/13f73ef77baa4764dc1ca4fcbae9cade05b83866 git.kernel.org
- https://git.kernel.org/stable/c/a73201c607d8e506358d60aafddda4246bdd9350 git.kernel.org
- https://git.kernel.org/stable/c/4005cec6847c06ee191583270b7cdd7e696543cc git.kernel.org
- https://git.kernel.org/stable/c/55f7810632f993cff622a0ddbc7c865892294b61 git.kernel.org
- https://git.kernel.org/stable/c/28a65b49eb53e172d23567005465019658bfdb4d git.kernel.org
Source: the record CVE-2023-53337 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse