CVE-2025-40179

ext4: verify orphan file size is not too big

State
Published
Severity
Not scored
Published
Nov 12, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to before 95a21611b14ae0a401720645245a8db16f040995Affected
  • 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to before 566a1d6084563bd07433025aa23bcea4427de107Affected
  • 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to before 304fc34ff6fc8261138fd81f119e024ac3a129e9Affected
  • 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to before a2d803fab8a6c6a874277cb80156dc114db91921Affected
  • 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to before 2b9da798ff0f4d026c5f0f815047393ebe7d8859Affected
  • 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 to before 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.195 through 5.15.*Not affected
  • 6.1.157 through 6.1.*Not affected
  • 6.6.113 through 6.6.*Not affected
  • 6.12.54 through 6.12.*Not affected
  • 6.17.4 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.