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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-11-12T21:56:24.882Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 95a21611b14ae0a401720645245a8db16f040995; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 566a1d6084563bd07433025aa23bcea4427de107; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 304fc34ff6fc8261138fd81f119e024ac3a129e9; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< a2d803fab8a6c6a874277cb80156dc114db91921; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 2b9da798ff0f4d026c5f0f815047393ebe7d8859; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3
- Anyone running Linux 5.15

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

## Affected and fixed versions

- Linux: \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 95a21611b14ae0a401720645245a8db16f040995; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 566a1d6084563bd07433025aa23bcea4427de107; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 304fc34ff6fc8261138fd81f119e024ac3a129e9; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< a2d803fab8a6c6a874277cb80156dc114db91921; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 2b9da798ff0f4d026c5f0f815047393ebe7d8859; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40179. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40179.md
Affected: Linux >= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, < 95a21611b14ae0a401720645245a8db16f040995; >= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, < 566a1d6084563bd07433025aa23bcea4427de107; >= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, < 304fc34ff6fc8261138fd81f119e024ac3a129e9; >= 02f310fcf47fa9311d6ba29…
Fixed in: Linux 95a21611b14ae0a401720645245a8db16f040995, Linux 566a1d6084563bd07433025aa23bcea4427de107, Linux 304fc34ff6fc8261138fd81f119e024ac3a129e9, Linux 2b9da798ff0f4d026c5f0f815047393ebe7d8859, Linux 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40179 being exploited?

There is no confirmed exploitation: CVE-2025-40179 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40179?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40179?

Linux \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 95a21611b14ae0a401720645245a8db16f040995; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 566a1d6084563bd07433025aa23bcea4427de107; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 304fc34ff6fc8261138fd81f119e024ac3a129e9; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< a2d803fab8a6c6a874277cb80156dc114db91921; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 2b9da798ff0f4d026c5f0f815047393ebe7d8859; \>= 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37, \< 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3; Linux 5.15.

### Is there a fix for CVE-2025-40179?

Yes. Fixed in Linux 95a21611b14ae0a401720645245a8db16f040995, Linux 566a1d6084563bd07433025aa23bcea4427de107, Linux 304fc34ff6fc8261138fd81f119e024ac3a129e9, Linux 2b9da798ff0f4d026c5f0f815047393ebe7d8859, Linux 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3. Upgrade Linux to 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3 or later.

### How do I check if I'm affected by CVE-2025-40179?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40179>

HTML: <https://flawdb.com/CVE-2025-40179> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40179>
