CVE-2025-40190
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40190 is a reference count underflow vulnerability in the Linux kernel's ext4 filesystem Extended Attribute (EA) inode handling. The flaw exists in ext4_xattr_inode_update_ref(), which can read an EA inode refcount that is already ≤ 0 and then apply a negative reference change, causing the refcount to underflow into a bogus value. It was discovered via syzkaller fuzzing and published on November 12, 2025. Affected versions span the Linux kernel from its initial commit up to the patched stable releases. It carries a CVSS v3.1 base score of 7.1 (High) (Feedly, MSRC).

Technical details

The root cause is an integer underflow (CWE-191) in the ext4 filesystem's EA inode reference counting logic. When ext4_xattr_inode_update_ref() is called with a refcount already at or below zero — a condition indicative of on-disk corruption — it proceeds to apply ref_change (typically -1) without validating the current count, resulting in a negative refcount and triggering errors such as EXT4-fs error: EA inode <n> ref underflow: ref_count=-1 ref_change=-1 and EXT4-fs warning: ea_inode dec ref err=-117. The fix enforces an explicit invariant: if the refcount is non-positive, the kernel now treats this as filesystem corruption, calls ext4_error_inode(), and returns -EFSCORRUPTED instead of proceeding. Exploitation requires local access with low privileges and no user interaction (Feedly, MSRC).

Impact

Successful exploitation can lead to filesystem integrity violations and availability disruption on systems using ext4. The refcount underflow can cause filesystem errors, unexpected behavior during extended attribute operations, and potential filesystem corruption, which may result in data loss or system instability. Confidentiality is not directly impacted, but integrity and availability are both rated High in the CVSS assessment (Feedly, MSRC).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of reporting (Feedly). The vulnerability was identified through syzkaller, Google's automated kernel fuzzing framework, rather than by a threat actor. The EPSS score is approximately 0.024% (0.000240), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

Indicators of compromise

  • Logs: Kernel log messages containing EXT4-fs error: EA inode <n> ref underflow: ref_count=-1 ref_change=-1 or EXT4-fs warning: ea_inode dec ref err=-117 in /var/log/kern.log or dmesg output.
  • Logs: Occurrences of -EFSCORRUPTED errors associated with ext4 extended attribute operations in system logs.
  • File System: Unexpected filesystem errors or corruption on ext4-formatted volumes, particularly involving extended attributes (xattrs).

Mitigation and workarounds

Patches have been released for multiple Linux kernel stable branches. Administrators should update to one of the following patched versions: 5.4.301, 5.10.246, 5.15.195, 6.1.157, 6.6.113, 6.12.54, 6.17.4, or 6.18-rc1 (Feedly, MSRC). Distribution-specific updates are available from Amazon Linux, Debian LTS, Oracle Linux, and SUSE. As a secondary measure, monitoring filesystem logs for EA inode-related errors and implementing strict local access controls can reduce exposure until patching is feasible.

Community reactions

Microsoft's Security Response Center published an advisory for this CVE in the context of Azure Linux (AZL3 kernel), reflecting its relevance to cloud infrastructure running Linux kernels (MSRC). Debian issued a Long Term Support (LTS) security update (DLA-4404-1) addressing this and related kernel vulnerabilities. No notable independent researcher commentary or significant social media discussion has been identified for this vulnerability.

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-64597CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-aws
NoYesAug 06, 2026
CVE-2026-68480HIGH8.8
  • Linux Kernel logoLinux Kernel
  • rv
NoYesAug 06, 2026
CVE-2026-64598HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg
NoYesAug 06, 2026
CVE-2026-64604HIGH7.7
  • Linux Kernel logoLinux Kernel
  • linux-hwe-5.15
NoYesAug 06, 2026
CVE-2026-64603NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.8
NoYesAug 06, 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