CVE-2023-54140 json
nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
published 2025-12-24 10 mo ago modified 2026-08-05 3 mo ago also EUVD-2023-60305
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse
A syzbot stress test using a corrupted disk image reported that mark_buffer_dirty() called from __nilfs_mark_inode_dirty() or nilfs_palloc_commit_alloc_entry() may output a kernel warning, and can panic if the kernel is booted with panic_on_warn.
This is because nilfs2 keeps buffer pointers in local structures for some metadata and reuses them, but such buffers may be forcibly discarded by nilfs_clear_dirty_page() in some critical situations.
This issue is reported to appear after commit 28a65b49eb53 ("nilfs2: do not write dirty data after degenerating to read-only"), but the issue has potentially existed before.
Fix this issue by checking the uptodate flag when attempting to reuse an internally held buffer, and reloading the metadata instead of reusing the buffer if the flag was lost.
Patch / fix
- Linux Linux 4.14.326, 4.19.295, 5.4.257, 5.10.195, 5.15.131, 6.1.52, 6.4.15, 6.5.2, 6.6
- linux Debian 12 6.1.52-1
- linux Debian 14, Debian 13 6.5.3-1
debian advisories DEBIAN-CVE-2023-54140
- linux Ubuntu 20.04 LTS 5.4.0-169.187
- linux Ubuntu 22.04 LTS 5.15.0-91.101
- linux-aws Ubuntu 20.04 LTS 5.4.0-1116.126
- linux-aws Ubuntu 22.04 LTS 5.15.0-1051.56
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1120.129
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1048.56
- linux-gke Ubuntu 22.04 LTS 5.15.0-1048.53
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1063.68
ubuntu advisories UBUNTU-CVE-2023-54140
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-40.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-40.1
- kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.194.1
- kernel-syms SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.194.1
- kernel-source SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.194.1
- kernel-default SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +5 more 5.14.21-150400.24.194.1
- kernel-obs-build SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.194.1
- kernel-default-base SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +3 more 5.14.21-150400.24.194.1.150400.24.98.3
suse advisories SUSE-SU-2026:20845-1SUSE-SU-2026:20876-1SUSE-SU-2026:0617-1SUSE-SU-2026:20477-1SUSE-SU-2026:20498-1SUSE-SU-2026:0411-1
- git.kernel.org/stable/c/473795610594f261e98920f0945550314df36f07 commit
- git.kernel.org/stable/c/d95e403588738c7ec38f52b9f490b15e7745d393 commit
- git.kernel.org/stable/c/99a73016a5e12a09586a96f998e91f9ea145cd00 commit
- git.kernel.org/stable/c/f1d637b63d8a27ac3386f186a694907f2717fc13 commit
- git.kernel.org/stable/c/b911bef132a06de01a745c6a24172d6db7216333 commit
- git.kernel.org/stable/c/4da07e958bfda2d69d83db105780e8916e3ac02e commit
- git.kernel.org/stable/c/46c11be2dca295742a5508ea910a77f7733fb7f4 commit
- git.kernel.org/stable/c/b308b3eabc429649b5501d36290cea403fbd746c commit
- git.kernel.org/stable/c/cdaac8e7e5a059f9b5e816cda257f08d0abffacd commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-54140 updated cvss 7.8
kernel: Linux kernel: nilfs2 denial of service via discarded buffer reuse
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/473795610594f261e98920f0945550314df36f07
- git.kernel.org /stable/c/d95e403588738c7ec38f52b9f490b15e7745d393
- git.kernel.org /stable/c/99a73016a5e12a09586a96f998e91f9ea145cd00
- git.kernel.org /stable/c/f1d637b63d8a27ac3386f186a694907f2717fc13
- git.kernel.org /stable/c/b911bef132a06de01a745c6a24172d6db7216333
- git.kernel.org /stable/c/4da07e958bfda2d69d83db105780e8916e3ac02e
- git.kernel.org /stable/c/46c11be2dca295742a5508ea910a77f7733fb7f4
- git.kernel.org /stable/c/b308b3eabc429649b5501d36290cea403fbd746c
- git.kernel.org /stable/c/cdaac8e7e5a059f9b5e816cda257f08d0abffacd
Sources
- CVE List CVE-2023-54140
- NVD CVE-2023-54140
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.