Junglewise Threat Intelligence

CVE-2026-53040: Linux Kernel OCFS2 out-of-bounds read in freefrag scan

CVE-2026-53040 · Severity: info · CVSS 5.5 · Published 2026-06-24

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's OCFS2 file system component could allow a local user to crash the system. By using a specially crafted file system image and specific diagnostic commands, an attacker can trigger an out-of-bounds memory access. This results in a system crash (kernel panic), impacting the availability of the server.

Technical details

A vulnerability exists in the OCFS2 file system's ioctl handler, specifically within the freefrag scan functionality. When OCFS2_IOC_INFO is issued with the OCFS2_INFO_FL_NON_COHERENT flag, the function ocfs2_info_freefrag_scan_chain() uses the on-disk 'bg_bits' value directly as a bitmap scan limit without proper validation. Because the non-coherent path uses ocfs2_read_blocks_sync() instead of the standard validated reader, a crafted filesystem can provide an impossible bg_bits value, leading to an out-of-bounds bitmap walk and a use-after-free condition. This can be exploited by a local user with permissions to mount or interact with a crafted OCFS2 volume to cause a denial of service. Patches have been released for various stable kernel branches to clamp the scan to the computed bitmap capacity.

Affected products

  • Linux Linux Kernel ocfs2 module

Timeline

  • 2026-04-10: disclosed: Initial patch submission
  • 2026-05-23: patched: Patch committed to stable tree
  • 2026-06-24: advisory: CVE published

References

Related threats