In the Linux kernel, the following vulnerability has been resolved:
fs: udf: fix OOB read in lengthAllocDescs handling
When parsing Allocation Extent Descriptor, lengthAllocDescs comes from on-disk data and must be validated against the block size. Crafted or corrupted images may set lengthAllocDescs so that the total descriptor length (sizeof(allocExtDesc) + lengthAllocDescs) exceeds the buffer, leading udfupdatetag() to call crcitut() on out-of-bounds memory and trigger a KASAN use-after-free read.
BUG: KASAN: use-after-free in crcitut+0x1d5/0x2b0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff888041e7d000 by task syz-executor317/5309
CPU: 0 UID: 0 PID: 5309 Comm: syz-executor317 Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: <TASK> _dumpstack lib/dumpstack.c:94 [inline] dumpstacklvl+0x241/0x360 lib/dumpstack.c:120 printaddressdescription mm/kasan/report.c:377 [inline] printreport+0x169/0x550 mm/kasan/report.c:488 kasanreport+0x143/0x180 mm/kasan/report.c:601 crcitut+0x1d5/0x2b0 lib/crc-itu-t.c:60 udfupdatetag+0x70/0x6a0 fs/udf/misc.c:261 udfwriteaext+0x4d8/0x7b0 fs/udf/inode.c:2179 extenttrunc+0x2f7/0x4a0 fs/udf/truncate.c:46 udftruncatetailextent+0x527/0x7e0 fs/udf/truncate.c:106 udfreleasefile+0xc1/0x120 fs/udf/file.c:185 _fput+0x23f/0x880 fs/filetable.c:431 taskworkrun+0x24f/0x310 kernel/taskwork.c:239 exittaskwork include/linux/taskwork.h:43 [inline] doexit+0xa2f/0x28e0 kernel/exit.c:939 dogroupexit+0x207/0x2c0 kernel/exit.c:1088 _dosysexitgroup kernel/exit.c:1099 [inline] _sesysexitgroup kernel/exit.c:1097 [inline] _x64sysexitgroup+0x3f/0x40 kernel/exit.c:1097 x64syscall+0x2634/0x2640 arch/x86/include/generated/asm/syscalls64.h:232 dosyscallx64 arch/x86/entry/common.c:52 [inline] dosyscall64+0xf3/0x230 arch/x86/entry/common.c:83 entrySYSCALL64afterhwframe+0x77/0x7f </TASK>
Validate the computed total length against epos->bh->b_size.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
[
{
"id": "CVE-2025-40044-0e934d39",
"deprecated": false,
"digest": {
"length": 1478.0,
"function_hash": "251179671525645744099903428755724008517"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@918649364fbca7d5df72522ca795479edcd25f91",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-1edfaa27",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@918649364fbca7d5df72522ca795479edcd25f91",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-35a51003",
"deprecated": false,
"digest": {
"length": 1478.0,
"function_hash": "251179671525645744099903428755724008517"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a70dcfa8d0a0cc530a6af59483dfca260b652c1b",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-49d59374",
"deprecated": false,
"digest": {
"length": 1478.0,
"function_hash": "251179671525645744099903428755724008517"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@459404f858213967ccfff336c41747d8dd186d38",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-4c099ac5",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@459404f858213967ccfff336c41747d8dd186d38",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-5210e6eb",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-54415f9e",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d1847812a1a5375c10a2a779338df643f79c047",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-708338a8",
"deprecated": false,
"digest": {
"length": 1467.0,
"function_hash": "139031255025475927022199656549744657110"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-774dc0b6",
"deprecated": false,
"digest": {
"length": 1475.0,
"function_hash": "60438246672165787692068228615459431642"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14496175b264d30c2045584ee31d062af2e3a660",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-7a1d6bf5",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a70dcfa8d0a0cc530a6af59483dfca260b652c1b",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-92156521",
"deprecated": false,
"digest": {
"length": 1478.0,
"function_hash": "251179671525645744099903428755724008517"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b57f2d7d3e6bb89ed82330c5fe106cdfa34d3e24",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-93e5e152",
"deprecated": false,
"digest": {
"length": 1467.0,
"function_hash": "139031255025475927022199656549744657110"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d1847812a1a5375c10a2a779338df643f79c047",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-de710562",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b57f2d7d3e6bb89ed82330c5fe106cdfa34d3e24",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-e86634fc",
"deprecated": false,
"digest": {
"length": 1478.0,
"function_hash": "251179671525645744099903428755724008517"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3bd5e45c2ce30e239d596becd5db720f7eb83c99",
"target": {
"function": "udf_current_aext",
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40044-eb3e5526",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14496175b264d30c2045584ee31d062af2e3a660",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40044-fcd9545a",
"deprecated": false,
"digest": {
"line_hashes": [
"201040152080987261097658739384080919364",
"10001634174191032063777798272087036751",
"254174363125015630917288950057502171244",
"243504988903769333512927370154681128575"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3bd5e45c2ce30e239d596becd5db720f7eb83c99",
"target": {
"file": "fs/udf/inode.c"
},
"signature_version": "v1",
"signature_type": "Line"
}
]