CVE-2026-72163 in Linuxinfo

Summary

by MITRE • 08/15/2026

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: fix NULL h_transaction deref in ocfs2_assure_trans_credits

[BUG]
A direct write over unwritten extents can panic the kernel in ocfs2_assure_trans_credits() when the journal aborts during DIO completion. The crash is a general protection fault from a NULL pointer dereference.

[CAUSE]
ocfs2_dio_end_io_write() loops over a direct write's unwritten extents, marking each written under a single journal handle. If the journal aborts (for example after an I/O error) while the extent tree is being updated, the handle is left aborted with its transaction pointer cleared. The extent merge treats that failure as not critical and reports success, so the loop keeps using the handle. ocfs2_assure_trans_credits() reads the handle's remaining credits without first checking whether the handle is aborted, and that read dereferences the cleared transaction pointer.

[FIX]
A journal abort is recorded in the handle itself, so callers are expected to test the handle rather than rely on a returned error. Make ocfs2_assure_trans_credits() do that, as the other ocfs2 journal helpers already do, and return -EROFS when the handle is aborted.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 08/15/2026

The vulnerability described represents a critical NULL pointer dereference in the Linux kernel's ocfs2 filesystem implementation that can lead to system panic during direct I/O operations. This issue specifically affects the ocfs2_assure_trans_credits function where a general protection fault occurs due to accessing a cleared transaction pointer. The flaw manifests when handling direct write operations over unwritten extents, creating a scenario where kernel memory corruption can occur through improper error handling in the journaling subsystem.

The root cause of this vulnerability lies in the improper handling of journal abort conditions within the ocfs2_dio_end_io_write function. During direct I/O completion, when unwritten extents are being processed and updated in the extent tree, the system encounters a journal abort typically caused by I/O errors or other failure conditions. When this occurs, the journal handle's transaction pointer gets cleared but the error is treated as non-critical by the extent merge operation which reports success to the calling function. This allows subsequent operations to continue using an already aborted journal handle, creating a dangerous state where the system attempts to access freed memory structures.

This vulnerability maps directly to CWE-476 which describes NULL pointer dereferences in software systems and aligns with ATT&CK technique T1547.001 related to privilege escalation through kernel exploits. The flaw demonstrates poor error handling practices in kernel subsystems where failure conditions are not properly propagated through the call stack, allowing corrupted state to persist and lead to system instability. The issue specifically impacts the journaling mechanism's ability to maintain consistent state during concurrent I/O operations and extent management.

The fix implemented addresses this by enforcing proper handle validation before accessing journal transaction data structures. The solution requires ocfs2_assure_trans_credits() to check for aborted handles as other journal helpers in the same subsystem already do, returning -EROFS when such conditions are detected. This approach follows established kernel patterns for error handling and ensures that aborted journal operations are properly terminated rather than allowing continued use of corrupted handles. The fix prevents the NULL pointer dereference by ensuring that callers properly validate journal handle state before attempting to access transaction metadata, thereby maintaining system stability during I/O error recovery scenarios.

The operational impact of this vulnerability extends beyond simple kernel panics to potentially enable denial-of-service attacks against systems running ocfs2 filesystems. Attackers could force system crashes through carefully crafted direct I/O operations that trigger the specific race condition in journal handling. The vulnerability affects systems using ocfs2 with direct I/O workloads, particularly those involving large file operations or storage environments where I/O errors are common. Security implications include potential system availability compromise and data integrity risks during recovery scenarios, as the improper error handling could lead to inconsistent filesystem states.

This vulnerability highlights the importance of proper error propagation in kernel subsystems and demonstrates how seemingly minor issues in journaling can cascade into critical system failures. The fix reinforces defensive programming practices that are essential in kernel space where memory corruption can have severe consequences. The solution aligns with Linux kernel security best practices for managing transactional operations and maintaining consistency in distributed filesystem implementations. System administrators should update to patched kernel versions immediately, as this vulnerability can be exploited remotely through filesystem I/O operations without requiring special privileges or user interaction.

Responsible

Linux

Reservation

08/09/2026

Disclosure

08/15/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!