CVE-2025-40179

published 12 Nov 2025 · updated 11 May 2026

ext4: verify orphan file size is not too big

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3, Kernel 2b9da798ff0f4d026c5f0f815047393ebe7d8859, Kernel 304fc34ff6fc8261138fd81f119e024ac3a129e9 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 <0a6ce20c156442a4ce2a404747bb0fb05d54eeb3, >=02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 <2b9da798ff0f4d026c5f0f815047393ebe7d8859, >=02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 <304fc34ff6fc8261138fd81f119e024ac3a129e9, >=02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 <566a1d6084563bd07433025aa23bcea4427de107, >=02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 <95a21611b14ae0a401720645245a8db16f040995, >=02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 <a2d803fab8a6c6a874277cb80156dc114db919210a6ce20c156442a4ce2a404747bb0fb05d54eeb3, 2b9da798ff0f4d026c5f0f815047393ebe7d8859, 304fc34ff6fc8261138fd81f119e024ac3a129e9, 566a1d6084563bd07433025aa23bcea4427de107, 95a21611b14ae0a401720645245a8db16f040995, a2d803fab8a6c6a874277cb80156dc114db91921

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40179 severity on Zeptric[![CVE-2025-40179](https://zeptric.io/badge/cve/CVE-2025-40179.svg)](https://zeptric.io/cve/CVE-2025-40179)