CVE-2023-54140
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-54140 is a denial-of-service vulnerability in the Linux kernel's nilfs2 filesystem driver, caused by improper reuse of discarded buffer pointers. When mark_buffer_dirty() is called from __nilfs_mark_inode_dirty() or nilfs_palloc_commit_alloc_entry(), it may trigger a kernel warning and, on systems booted with panic_on_warn, cause a kernel panic. The vulnerability was disclosed on December 24, 2025, and affects Linux kernel versions from 3.10 through pre-patch releases up to 6.6. Patches are available for multiple stable branches. No CVSS score has been assigned (base score 0.0 per ENISA/EUVD) (Red Hat CVE, EUVD).

Technical details

The root cause is improper state management (related to CWE-672: Operation on a Resource after Expiration or Release) in the nilfs2 filesystem. nilfs2 caches buffer pointers in local structures for metadata operations and attempts to reuse them; however, nilfs_clear_dirty_page() can forcibly discard these buffers in critical situations (e.g., when the filesystem degenerates to read-only mode). When the code subsequently calls mark_buffer_dirty() on a stale, discarded buffer, the kernel detects the invalid state and emits a WARNING. The fix involves checking the buffer's uptodate flag before reuse and reloading metadata from disk if the flag is absent, preventing the use of invalidated buffer pointers (Red Hat CVE, EUVD).

Impact

Successful triggering of this vulnerability results in a kernel warning that, on systems configured with panic_on_warn, escalates to a full kernel panic and system crash — a denial-of-service condition. Systems using the nilfs2 filesystem under high-stress conditions or with corrupted disk images are most at risk. There is no evidence of confidentiality or integrity impact; the primary consequence is availability loss through unexpected system shutdown or instability (Red Hat CVE, Feedly).

Mitigation and workarounds

Patches have been backported to multiple Linux kernel stable branches. Administrators should update to the following patched versions or later: 4.14.326, 4.19.295, 5.4.257, 5.10.195, 5.15.131, 6.1.52, 6.4.15, 6.5.2, and 6.6. As interim mitigations where patching is not immediately possible: avoid using the nilfs2 filesystem under high-stress or degraded conditions, ensure filesystem and disk image integrity, and avoid enabling panic_on_warn in kernel boot parameters to prevent panics from escalating kernel warnings (Red Hat CVE, Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management