{"id":"CVE-2025-40179","aliases":["CVE-2025-40179"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: verify orphan file size is not too big","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: verify orphan file size is not too big\n\nIn principle orphan file can be arbitrarily large. However orphan replay\nneeds to traverse it all and we also pin all its buffers in memory. Thus\nfilesystems with absurdly large orphan files can lead to big amounts of\nmemory consumed. Limit orphan file size to a sane value and also use\nkvmalloc() for allocating array of block descriptor structures to avoid\nlarge order allocations for sane but large orphan files.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: verify orphan file size is not too big\n\nIn principle orphan file can be arbitrarily large. However orphan replay\nneeds to traverse it all and we also pin all its buffers in memory. Thus\nfilesystems with absurdly large orphan files can lead to big amounts of\nmemory consumed. Limit orphan file size to a sane value and also use\nkvmalloc() for allocating array of block descriptor structures to avoid\nlarge order allocations for sane but large orphan files.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\next4: verificar que el tamaño del archivo huérfano no sea demasiado grande\n\nEn principio, un archivo huérfano puede ser arbitrariamente grande. Sin embargo, la reproducción de huérfanos necesita recorrerlo todo y también fijamos todos sus búferes en memoria. Así, los sistemas de archivos con archivos huérfanos absurdamente grandes pueden llevar a grandes cantidades de memoria consumida. Limitar el tamaño del archivo huérfano a un valor razonable y también usar kvmalloc() para asignar un array de estructuras de descriptores de bloques para evitar asignaciones de orden grande para archivos huérfanos razonables pero grandes.","source":"nvd"}],"published":"2025-11-12T21:56:24.882Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"02f310fcf47fa9311d6ba2946a8d19e7d7d11f37","fixed":"95a21611b14ae0a401720645245a8db16f040995","status":"affected"},{"type":"git","introduced":"02f310fcf47fa9311d6ba2946a8d19e7d7d11f37","fixed":"566a1d6084563bd07433025aa23bcea4427de107","status":"affected"},{"type":"git","introduced":"02f310fcf47fa9311d6ba2946a8d19e7d7d11f37","fixed":"304fc34ff6fc8261138fd81f119e024ac3a129e9","status":"affected"},{"type":"git","introduced":"02f310fcf47fa9311d6ba2946a8d19e7d7d11f37","fixed":"a2d803fab8a6c6a874277cb80156dc114db91921","status":"affected"},{"type":"git","introduced":"02f310fcf47fa9311d6ba2946a8d19e7d7d11f37","fixed":"2b9da798ff0f4d026c5f0f815047393ebe7d8859","status":"affected"},{"type":"git","introduced":"02f310fcf47fa9311d6ba2946a8d19e7d7d11f37","fixed":"0a6ce20c156442a4ce2a404747bb0fb05d54eeb3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.195","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.157","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.113","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.54","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.4","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/95a21611b14ae0a401720645245a8db16f040995","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/566a1d6084563bd07433025aa23bcea4427de107","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/304fc34ff6fc8261138fd81f119e024ac3a129e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2d803fab8a6c6a874277cb80156dc114db91921","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b9da798ff0f4d026c5f0f815047393ebe7d8859","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a6ce20c156442a4ce2a404747bb0fb05d54eeb3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40179","url":"https://www.cve.org/CVERecord?id=CVE-2025-40179","licence":"CVE Terms of Use","modified":"2026-05-11T21:44:17.422Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40179","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40179","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.588Z","epss":{"score":0.00222,"percentile":0.13586,"date":"2026-12-01T12:00:22.000Z"}}