Junglewise Threat Intelligence

CVE-2025-40044: Linux Kernel OOB read in UDF lengthAllocDescs handling

CVE-2025-40044 · Severity: high · CVSS 7.8 · Published 2025-10-28

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel's UDF file system driver, which is used to read optical discs like DVDs and Blu-rays. By providing a specially crafted or corrupted disk image, an attacker could cause the system to crash or potentially access sensitive information in the computer's memory. This issue primarily affects systems that automatically mount or process untrusted media files.

Technical details

An out-of-bounds (OOB) read vulnerability exists in the Linux kernel UDF file system implementation within the lengthAllocDescs handling logic. When parsing an Allocation Extent Descriptor, the 'lengthAllocDescs' value is taken directly from on-disk data without sufficient validation against the block size. An attacker can provide a crafted UDF image where the total descriptor length exceeds the allocated buffer, causing udf_update_tag() to trigger a KASAN use-after-free read via crc_itu_t(). The fix involves validating the computed total length against the buffer head size (epos->bh->b_size) to ensure memory safety. Patch information is available in the stable kernel tree.

Affected products

  • Linux Linux Kernel 2.6.12 through 6.12-rc4

Timeline

  • 2025-09-22: disclosed: Vulnerability reported and fix proposed by Larshin Sergey.
  • 2025-10-28: advisory: CVE-2025-40044 published.
  • 2025-10-29: patched: Fix committed to stable kernel trees.

References

Related threats