CVE-2025-40179

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40179
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40179.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40179
Downstream
Published
2025-11-12T21:56:24.882Z
Modified
2025-11-27T02:32:17.214750Z
Summary
ext4: verify orphan file size is not too big
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2025/40xxx/CVE-2025-40179.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Fixed
95a21611b14ae0a401720645245a8db16f040995
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Fixed
566a1d6084563bd07433025aa23bcea4427de107
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Fixed
304fc34ff6fc8261138fd81f119e024ac3a129e9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Fixed
a2d803fab8a6c6a874277cb80156dc114db91921
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Fixed
2b9da798ff0f4d026c5f0f815047393ebe7d8859
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
02f310fcf47fa9311d6ba2946a8d19e7d7d11f37
Fixed
0a6ce20c156442a4ce2a404747bb0fb05d54eeb3

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.157
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.113
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.54
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.4