# CVE-2025-40044: fs: udf: fix OOB read in lengthAllocDescs handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **Published:** 2025-10-28T11:48:22.827Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 14496175b264d30c2045584ee31d062af2e3a660; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1d1847812a1a5375c10a2a779338df643f79c047; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 918649364fbca7d5df72522ca795479edcd25f91; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a70dcfa8d0a0cc530a6af59483dfca260b652c1b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b57f2d7d3e6bb89ed82330c5fe106cdfa34d3e24; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 459404f858213967ccfff336c41747d8dd186d38; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3bd5e45c2ce30e239d596becd5db720f7eb83c99
- Anyone running Linux 2.6.12

## Description

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 udf\_update\_tag() to call crc\_itu\_t() on out-of-bounds memory and
trigger a KASAN use-after-free read.

BUG: KASAN: use-after-free in crc\_itu\_t+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\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:488
 kasan\_report+0x143/0x180 mm/kasan/report.c:601
 crc\_itu\_t+0x1d5/0x2b0 lib/crc-itu-t.c:60
 udf\_update\_tag+0x70/0x6a0 fs/udf/misc.c:261
 udf\_write\_aext+0x4d8/0x7b0 fs/udf/inode.c:2179
 extent\_trunc+0x2f7/0x4a0 fs/udf/truncate.c:46
 udf\_truncate\_tail\_extent+0x527/0x7e0 fs/udf/truncate.c:106
 udf\_release\_file+0xc1/0x120 fs/udf/file.c:185
 \_\_fput+0x23f/0x880 fs/file\_table.c:431
 task\_work\_run+0x24f/0x310 kernel/task\_work.c:239
 exit\_task\_work include/linux/task\_work.h:43 \[inline\]
 do\_exit+0xa2f/0x28e0 kernel/exit.c:939
 do\_group\_exit+0x207/0x2c0 kernel/exit.c:1088
 \_\_do\_sys\_exit\_group kernel/exit.c:1099 \[inline\]
 \_\_se\_sys\_exit\_group kernel/exit.c:1097 \[inline\]
 \_\_x64\_sys\_exit\_group+0x3f/0x40 kernel/exit.c:1097
 x64\_sys\_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls\_64.h:232
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
 \</TASK\>

Validate the computed total length against epos-\>bh-\>b\_size.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 14496175b264d30c2045584ee31d062af2e3a660; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1d1847812a1a5375c10a2a779338df643f79c047; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 918649364fbca7d5df72522ca795479edcd25f91; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a70dcfa8d0a0cc530a6af59483dfca260b652c1b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b57f2d7d3e6bb89ed82330c5fe106cdfa34d3e24; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 459404f858213967ccfff336c41747d8dd186d38; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3bd5e45c2ce30e239d596becd5db720f7eb83c99 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 3bd5e45c2ce30e239d596becd5db720f7eb83c99 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40044. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40044.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 14496175b264d30c2045584ee31d062af2e3a660; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1d1847812a1a5375c10a2a779338df643f79c047; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 14496175b264d30c2045584ee31d062af2e3a660, Linux 1d1847812a1a5375c10a2a779338df643f79c047, Linux 918649364fbca7d5df72522ca795479edcd25f91, Linux 459404f858213967ccfff336c41747d8dd186d38, Linux 3bd5e45c2ce30e239d596becd5db720f7eb83c99

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40044 being exploited?

There is no confirmed exploitation: CVE-2025-40044 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40044?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-40044?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 14496175b264d30c2045584ee31d062af2e3a660; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1d1847812a1a5375c10a2a779338df643f79c047; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 918649364fbca7d5df72522ca795479edcd25f91; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a70dcfa8d0a0cc530a6af59483dfca260b652c1b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b57f2d7d3e6bb89ed82330c5fe106cdfa34d3e24; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 459404f858213967ccfff336c41747d8dd186d38; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 3bd5e45c2ce30e239d596becd5db720f7eb83c99; Linux 2.6.12.

### Is there a fix for CVE-2025-40044?

Yes. Fixed in Linux 14496175b264d30c2045584ee31d062af2e3a660, Linux 1d1847812a1a5375c10a2a779338df643f79c047, Linux 918649364fbca7d5df72522ca795479edcd25f91, Linux 459404f858213967ccfff336c41747d8dd186d38, Linux 3bd5e45c2ce30e239d596becd5db720f7eb83c99. Upgrade Linux to 3bd5e45c2ce30e239d596becd5db720f7eb83c99 or later.

### How do I check if I'm affected by CVE-2025-40044?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/14496175b264d30c2045584ee31d062af2e3a660>
- other: <https://git.kernel.org/stable/c/d2ed9aa8ae50fb0d4ac5ab07e4c67ba7e9a24818>
- other: <https://git.kernel.org/stable/c/1d1847812a1a5375c10a2a779338df643f79c047>
- other: <https://git.kernel.org/stable/c/918649364fbca7d5df72522ca795479edcd25f91>
- other: <https://git.kernel.org/stable/c/a70dcfa8d0a0cc530a6af59483dfca260b652c1b>
- other: <https://git.kernel.org/stable/c/b57f2d7d3e6bb89ed82330c5fe106cdfa34d3e24>
- other: <https://git.kernel.org/stable/c/459404f858213967ccfff336c41747d8dd186d38>
- other: <https://git.kernel.org/stable/c/3bd5e45c2ce30e239d596becd5db720f7eb83c99>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40044>

HTML: <https://flawdb.com/CVE-2025-40044> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40044>
