Junglewise Threat Intelligence

CVE-2026-45948: Linux Kernel ext4 memory leak in ext4_ext_shift_extents

CVE-2026-45948 · Severity: info · Published 2026-05-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's ext4 file system component. A logic error in how the system handles file data structures (extents) can lead to a memory leak. Over time, this could degrade system performance or lead to a denial-of-service condition if the kernel exhausts available memory.

Technical details

A memory leak exists in fs/ext4/extents.c within the ext4_ext_shift_extents() function. When the function encounters a NULL extent during its processing loop, it returns an -EFSCORRUPTED error immediately. However, it fails to release the 'path' structure previously allocated via ext4_find_extent(). This flaw allows an attacker or a corrupted filesystem to trigger repeated memory allocations that are never freed. The fix involves modifying the error path to use a 'goto out' statement, ensuring that the cleanup logic which releases the path is executed before the function returns.

Affected products

  • Linux Linux Kernel All versions including and prior to 6.13-rc4

Timeline

  • 2025-12-25: other: Patch submitted by developer
  • 2026-02-26: patched: Patch committed to stable tree
  • 2026-05-27: advisory: CVE published

References