CVE-2025-40190
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's ext4 filesystem was discovered and disclosed on November 12, 2025. The vulnerability (CVE-2025-40190) affects the extended attribute (EA) inode reference counting mechanism in the ext4 filesystem implementation (NVD).

Technical details

The vulnerability occurs in the ext4_xattr_inode_update_ref() function where it reads an EA inode refcount that is already less than or equal to 0 and then applies a ref_change (often -1). This leads to a refcount underflow condition, causing the system to proceed with an invalid value. The issue manifests through error messages such as 'EXT4-fs error: EA inode ref underflow: ref_count=-1 ref_change=-1' and 'EXT4-fs warning: ea_inode dec ref err=-117' (NVD).

Impact

The vulnerability can lead to filesystem corruption due to the refcount underflow and subsequent orphan/cleanup issues in the ext4 filesystem (NVD).

Mitigation and workarounds

The fix involves modifying the code to treat non-positive refcounts as on-disk corruption, emit ext4_error_inode(), and fail the operation with -EFSCORRUPTED instead of updating the refcount. The WARN_ONCE() call has been removed as negative refcounts are now impossible, while error reporting is maintained in ext4_error_inode() (NVD).

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-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
NoYesJan 14, 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