CVE-2025-40179

ext4: verify orphan file size is not too big

Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 < 95a21611b14ae0a401720645245a8db16f040995 ; affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 < 566a1d6084563bd07433025aa23bcea4427de107 ; affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 < 304fc34ff6fc8261138fd81f119e024ac3a129e9 ; affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 < a2d803fab8a6c6a874277cb80156dc114db91921 ; affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 < 2b9da798ff0f4d026c5f0f815047393ebe7d8859 ; affected 02f310fcf47fa9311d6ba2946a8d19e7d7d11f37 < 0a6ce20c156442a4ce2a404747bb0fb05d54eeb3
Linux · Linuxaffected 5.15 ; unaffected 0 < 5.15 ; unaffected 5.15.195 ≤ 5.15.* ; unaffected 6.1.157 ≤ 6.1.* ; unaffected 6.6.113 ≤ 6.6.* ; unaffected 6.12.54 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD