# CVE-2025-40179: ext4: verify orphan file size is not too big

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-11-12T21:56:24.882Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 before 95a21611b14ae0a401720645245a8db16f040995; from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 before 566a1d6084563bd07433025aa23bcea4427de107; from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 before 304fc34ff6fc8261138fd81f119e024ac3a129e9; from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 before a2d803fab8a6c6a874277cb80156dc114db91921; from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 before 2b9da798ff0f4d026c5f0f815047393ebe7d8859; from 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 before 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3; 5.15 (not affected: before 5.15; from 5.15.195 up to 5.15.*; from 6.1.157 up to 6.1.*; from 6.6.113 up to 6.6.*; from 6.12.54 up to 6.12.*; from 6.17.4 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/95a21611b14ae0a401720645245a8db16f040995>
- <https://git.kernel.org/stable/c/566a1d6084563bd07433025aa23bcea4427de107>
- <https://git.kernel.org/stable/c/304fc34ff6fc8261138fd81f119e024ac3a129e9>
- <https://git.kernel.org/stable/c/a2d803fab8a6c6a874277cb80156dc114db91921>
- <https://git.kernel.org/stable/c/2b9da798ff0f4d026c5f0f815047393ebe7d8859>
- <https://git.kernel.org/stable/c/0a6ce20c156442a4ce2a404747bb0fb05d54eeb3>

## Sources

- CVE List: [CVE-2025-40179](https://www.cve.org/CVERecord?id=CVE-2025-40179), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40179](https://nvd.nist.gov/vuln/detail/CVE-2025-40179), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40179 · Whole record: https://cve.day/CVE-2025-40179.json · Rebuilt by cve.day 2026-11-25T22:59:07.588Z
