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.
[
{
"id": "CVE-2025-40179-0771dbe9",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72497733104659557785204749611435100281",
"170867023918114659553256345740586856598",
"81874916844515061599625902189990245845",
"327916180788398440407528315274112749801",
"94079418876749567163884569142976392796",
"185441608591961821718790068811803739821",
"130406105277297934331196276579485954144"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b9da798ff0f4d026c5f0f815047393ebe7d8859",
"target": {
"file": "fs/ext4/orphan.c"
}
},
{
"id": "CVE-2025-40179-1befa5c6",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72497733104659557785204749611435100281",
"170867023918114659553256345740586856598",
"81874916844515061599625902189990245845",
"327916180788398440407528315274112749801",
"94079418876749567163884569142976392796",
"185441608591961821718790068811803739821",
"130406105277297934331196276579485954144"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95a21611b14ae0a401720645245a8db16f040995",
"target": {
"file": "fs/ext4/orphan.c"
}
},
{
"id": "CVE-2025-40179-60b6b90c",
"signature_version": "v1",
"digest": {
"length": 1866.0,
"function_hash": "54855007199579670801579563930216166345"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@304fc34ff6fc8261138fd81f119e024ac3a129e9",
"target": {
"file": "fs/ext4/orphan.c",
"function": "ext4_init_orphan_info"
}
},
{
"id": "CVE-2025-40179-6adc75c4",
"signature_version": "v1",
"digest": {
"length": 1866.0,
"function_hash": "54855007199579670801579563930216166345"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2d803fab8a6c6a874277cb80156dc114db91921",
"target": {
"file": "fs/ext4/orphan.c",
"function": "ext4_init_orphan_info"
}
},
{
"id": "CVE-2025-40179-6ce5c02e",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72497733104659557785204749611435100281",
"170867023918114659553256345740586856598",
"81874916844515061599625902189990245845",
"327916180788398440407528315274112749801",
"94079418876749567163884569142976392796",
"185441608591961821718790068811803739821",
"130406105277297934331196276579485954144"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2d803fab8a6c6a874277cb80156dc114db91921",
"target": {
"file": "fs/ext4/orphan.c"
}
},
{
"id": "CVE-2025-40179-740887a7",
"signature_version": "v1",
"digest": {
"length": 1866.0,
"function_hash": "54855007199579670801579563930216166345"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a6ce20c156442a4ce2a404747bb0fb05d54eeb3",
"target": {
"file": "fs/ext4/orphan.c",
"function": "ext4_init_orphan_info"
}
},
{
"id": "CVE-2025-40179-80a616e2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72497733104659557785204749611435100281",
"170867023918114659553256345740586856598",
"81874916844515061599625902189990245845",
"327916180788398440407528315274112749801",
"94079418876749567163884569142976392796",
"185441608591961821718790068811803739821",
"130406105277297934331196276579485954144"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@566a1d6084563bd07433025aa23bcea4427de107",
"target": {
"file": "fs/ext4/orphan.c"
}
},
{
"id": "CVE-2025-40179-9458fb7f",
"signature_version": "v1",
"digest": {
"length": 1866.0,
"function_hash": "54855007199579670801579563930216166345"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95a21611b14ae0a401720645245a8db16f040995",
"target": {
"file": "fs/ext4/orphan.c",
"function": "ext4_init_orphan_info"
}
},
{
"id": "CVE-2025-40179-98299add",
"signature_version": "v1",
"digest": {
"length": 1866.0,
"function_hash": "54855007199579670801579563930216166345"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@566a1d6084563bd07433025aa23bcea4427de107",
"target": {
"file": "fs/ext4/orphan.c",
"function": "ext4_init_orphan_info"
}
},
{
"id": "CVE-2025-40179-a4a8d395",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72497733104659557785204749611435100281",
"170867023918114659553256345740586856598",
"81874916844515061599625902189990245845",
"327916180788398440407528315274112749801",
"94079418876749567163884569142976392796",
"185441608591961821718790068811803739821",
"130406105277297934331196276579485954144"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a6ce20c156442a4ce2a404747bb0fb05d54eeb3",
"target": {
"file": "fs/ext4/orphan.c"
}
},
{
"id": "CVE-2025-40179-e6270bc2",
"signature_version": "v1",
"digest": {
"length": 1866.0,
"function_hash": "54855007199579670801579563930216166345"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b9da798ff0f4d026c5f0f815047393ebe7d8859",
"target": {
"file": "fs/ext4/orphan.c",
"function": "ext4_init_orphan_info"
}
},
{
"id": "CVE-2025-40179-edf368ec",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"72497733104659557785204749611435100281",
"170867023918114659553256345740586856598",
"81874916844515061599625902189990245845",
"327916180788398440407528315274112749801",
"94079418876749567163884569142976392796",
"185441608591961821718790068811803739821",
"130406105277297934331196276579485954144"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@304fc34ff6fc8261138fd81f119e024ac3a129e9",
"target": {
"file": "fs/ext4/orphan.c"
}
}
]