
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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.
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.-EFSCORRUPTED errors associated with ext4 extended attribute operations in system logs.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.
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.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."