CVE-2025-40190 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: guard against EA inode refcount underflow in xattr update syzkaller found a path where ext4_xattr_inode_update_ref() reads an EA inode refcount that is already <= 0 and then applies ref_change (often -1). That lets the refcount underflow and we proceed with a bogus value, triggering errors like: EXT4-fs error: EA inode <n> ref underflow: ref_count=-1 ref_change=-1 EXT4-fs warning: ea_inode dec ref err=-117 Make the invariant explicit: if the current refcount is non-positive, treat this as on-disk corruption, emit ext4_error_inode(), and fail the operation with -EFSCORRUPTED instead of updating the refcount. Delete the WARN_ONCE() as negative refcounts are now impossible; keep error reporting in ext4_error_inode(). This prevents the underflow and the follow-on orphan/cleanup churn.
A vulnerability in the Linux kernel's ext4 file system has been addressed, which involved an underflow in the extended attribute (EA) inode reference count during updates. The issue was discovered by syzkaller, which found that the function 'ext4_xattr_inode_update_ref()' could read a reference count that was already zero or negative, and then apply a change that often decreased the count by one. This created a bogus reference count value, leading to filesystem errors. The vulnerability has been fixed by adding a check for non-positive reference counts, treating such cases as on-disk corruption, and failing the operation while reporting the error. This change prevents the underflow and its associated cleanup issues.
Users can upgrade to the patched version of the Linux kernel where this vulnerability has been fixed. The specific commit addressing this issue is '57295e835408d8d425bef58da5253465db3d6888', which is available in the Linux kernel stable tree.
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 Nov 12, 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/1cfb3e4ddbdc8e02e637b8852540bd4718bf4814 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/3d6269028246f4484bfed403c947a114bb583631 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/440b003f449a4ff2a00b08c8eab9ba5cd28f3943 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/505e69f76ac497e788f4ea0267826ec7266b40c8 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/57295e835408d8d425bef58da5253465db3d6888 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6b879c4c6bbaab03c0ad2a983953bd1410bb165e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/79ea7f3e11effe1bd9e753172981d9029133a278 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ea39e712c2f5ae148ee5515798ae03523673e002 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |
Volerion