CVE-2023-54140 Details
Description
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.
A vulnerability in the Linux kernel's nilfs2 file system has been addressed, which could lead to a kernel warning and a panic under certain conditions. This issue arises from nilfs2's practice of reusing buffer pointers for metadata, which can be discarded in critical situations. The vulnerability was reported after a commit that changed how dirty data is handled, but it may have existed before. The problem can occur when the kernel is booted with 'panic_on_warn', as a stress test with a corrupted disk image revealed.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/46c11be2dca295742a5508ea910a77f7733fb7f4 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/473795610594f261e98920f0945550314df36f07 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/4da07e958bfda2d69d83db105780e8916e3ac02e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/99a73016a5e12a09586a96f998e91f9ea145cd00 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b308b3eabc429649b5501d36290cea403fbd746c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b911bef132a06de01a745c6a24172d6db7216333 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/cdaac8e7e5a059f9b5e816cda257f08d0abffacd | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d95e403588738c7ec38f52b9f490b15e7745d393 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/f1d637b63d8a27ac3386f186a694907f2717fc13 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | >= 3.10, < 3.10.0-rc1 |
CPE
Remediation
| |
| Linux nilfs2 | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 24, 2025 | New CVE Received | kernel.org |
Volerion