Filesystem corruption via EA inode refcount underflow
Published Nov 12, 2025 · Updated Aug 5, 2026
Integer underflow in the Linux ext4 filesystem allows attackers to corrupt files by supplying a crafted filesystem image. ext4_xattr_inode_update_ref() subtracts ref_change from an already nonpositive EA inode refcount and continues with the wrapped value, enabling orphan cleanup to free a still-referenced inode. An administrator or automounter must mount the image; stale references can disclose or corrupt file data, force the filesystem read-only, or panic the kernel.
Summary
What happened
Integer underflow in the Linux ext4 filesystem allows attackers to corrupt files by supplying a crafted filesystem image. ext4_xattr_inode_update_ref() subtracts ref_change from an already nonpositive EA inode refcount and continues with the wrapped value, enabling orphan cleanup to free a still-referenced inode. An administrator or automounter must mount the image; stale references can disclose or corrupt file data, force the filesystem read-only, or panic the kernel.
The record
- CVE
- CVE-2025-40190
- Published
- Nov 12, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 12, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <5.10.246
- Affected versionversion=0 <5.15.195
- Affected versionversion=0 <5.4.301
- Affected versionversion=0 <6.1.157
- Affected versionversion=0 <6.12.54
- Affected versionversion=0 <6.17.4
- Affected versionversion=0 <6.6.113
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1cfb3e4ddbdc8e02e637b8852540bd4718bf4814
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3d6269028246f4484bfed403c947a114bb583631
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <440b003f449a4ff2a00b08c8eab9ba5cd28f3943
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <505e69f76ac497e788f4ea0267826ec7266b40c8
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <57295e835408d8d425bef58da5253465db3d6888
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6b879c4c6bbaab03c0ad2a983953bd1410bb165e
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <79ea7f3e11effe1bd9e753172981d9029133a278
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ea39e712c2f5ae148ee5515798ae03523673e002
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- syzbot C reproducer for the ext4 EA-inode refcount underflowfunctional · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo