Junglewise Threat Intelligence

CVE-2025-39842: Linux Kernel OCFS2 null pointer dereference in ocfs2_clear_inode

CVE-2025-39842 · Severity: medium · CVSS 5.5 · Published 2025-09-19

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's OCFS2 file system could allow a local user to cause a system crash. The issue occurs during the process of unmounting a storage volume, where the system incorrectly attempts to access memory that has already been cleared. This results in a 'null pointer dereference' that triggers a kernel panic, leading to a denial of service.

Technical details

A null pointer dereference exists in the OCFS2 (Oracle Cluster File System 2) implementation within the Linux kernel. The vulnerability is located in the 'ocfs2_clear_inode' function. During a volume dismount ('ocfs2_dismount_volume'), 'ocfs2_journal_shutdown' is called, which sets 'osb->journal' to NULL. Subsequent calls in the dismount path, specifically 'jbd2_journal_release_jbd_inode', attempt to dereference this NULL pointer. A local attacker with sufficient privileges to trigger a dismount or manipulate file system inodes could cause a kernel panic (Denial of Service). The fix introduces a check to ensure 'osb->journal' is not NULL before proceeding with the release.

Affected products

  • Linux Linux Kernel 5.16 to 6.1.151, 6.2 to 6.6.105, 6.7 to 6.12.46, 6.13 to 6.16.6

Timeline

  • 2025-08-19: other: Patch authored
  • 2025-09-19: disclosed: CVE published
  • 2025-09-19: advisory

References

Related threats