Junglewise Threat Intelligence

CVE-2025-40244: Linux Kernel uninitialized memory access in HFS+ file system

CVE-2025-40244 · Severity: high · CVSS 7.8 · Published 2025-12-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's HFS+ file system driver, which is used to read and write disks formatted for Apple computers. An error in how the system manages memory when extending files could allow a local user to cause a system crash (kernel panic) or potentially access sensitive information from the computer's memory. This issue primarily affects systems that mount or interact with HFS+ formatted storage media.

Technical details

An uninitialized value vulnerability was discovered in the HFS+ file system component of the Linux kernel, specifically within the __hfsplus_ext_cache_extent() function. The issue, detected by KMSAN (Kernel Memory Sanitizer) via syzbot, occurs during file extension operations (hfsplus_file_extend). When the kernel attempts to cache extents, it may access memory that was allocated but not properly initialized in hfsplus_find_init(). A local attacker with the ability to perform write operations on an HFS+ filesystem could trigger this flaw to cause a kernel panic (Denial of Service) or potentially leak sensitive kernel memory. Patches have been merged into the Linux stable tree across multiple versions.

Affected products

  • Linux Linux Kernel versions prior to 6.12-rc5

Timeline

  • 2025-08-18: disclosed: Initial report by syzbot and patch authored by Viacheslav Dubeyko
  • 2025-10-29: patched: Patch committed to stable tree by Greg Kroah-Hartman
  • 2025-12-04: advisory: CVE published to NVD

References

Related threats