CVE-2025-40179 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: verify orphan file size is not too big In principle orphan file can be arbitrarily large. However orphan replay needs to traverse it all and we also pin all its buffers in memory. Thus filesystems with absurdly large orphan files can lead to big amounts of memory consumed. Limit orphan file size to a sane value and also use kvmalloc() for allocating array of block descriptor structures to avoid large order allocations for sane but large orphan files.
A vulnerability in the ext4 file system of the Linux kernel allows orphan files to grow excessively large. This issue arises because the orphan replay process must traverse the entire file, pinning all its buffers in memory. As a result, filesystems with unusually large orphan files can consume significant amounts of memory. The vulnerability has been addressed by imposing a reasonable limit on orphan file sizes and by using kvmalloc() to allocate arrays of block descriptor structures, thereby avoiding large order allocations for files that are large but still within a normal range.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched kernel can be found on the official Linux kernel website.
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/0a6ce20c156442a4ce2a404747bb0fb05d54eeb3 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/2b9da798ff0f4d026c5f0f815047393ebe7d8859 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/304fc34ff6fc8261138fd81f119e024ac3a129e9 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/566a1d6084563bd07433025aa23bcea4427de107 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/95a21611b14ae0a401720645245a8db16f040995 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a2d803fab8a6c6a874277cb80156dc114db91921 | 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
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |
Volerion