Skip to main content

Linux Kernel OCFS2 EUVDEUVD-2026-25491

| CVE-2026-31598 HIGH
Improper Locking (CWE-667)
2026-04-24 Linux GHSA-cqwh-r98h-2279
7.5
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access
  2. Delivery
    Mount OCFS2 filesystem
  3. Exploit
    Trigger concurrent unlink operation
  4. Execution
    Trigger direct I/O write completion
  5. Persist
    Deadlock kernel threads
  6. Impact
    System hang (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
Exploitation Conditions

Requires OCFS2 filesystem mounted and actively in use on the target system - OCFS2 is NOT enabled in default Linux configurations and is primarily deployed in Oracle database clusters and shared storage environments. Attacker needs local filesystem access with write permissions to trigger both unlink operations and direct I/O writes on OCFS2 volumes. The deadlock occurs during concurrent execution of ocfs2_unlink and ocfs2_dio_end_io_write, requiring the orphan directory to expand (triggering ip_alloc_sem acquisition in the unlink path) simultaneously with direct I/O completion attempting orphan cleanup. Most limiting factor: vast majority of Linux deployments use ext4, XFS, or btrfs filesystems and are completely unaffected. Remote network exploitation (as CVSS AV:N suggests) is not realistic - this requires local process execution with filesystem access rights.

Impact

Despite the CVSS 7.5 HIGH rating with network attack vector (AV:N), real-world risk is significantly lower than the score suggests. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N appears misassigned - filesystem deadlocks require LOCAL access to trigger concurrent operations on OCFS2 filesystems, not network-based attacks. This discrepancy between CVSS attack vector and actual exploitation requirements substantially reduces practical risk. The EPSS score of 0.02% (5th percentile) confirms minimal exploitation probability. No CISA KEV listing and no public exploit code identified at time of analysis. Patches available from upstream kernel.org across multiple stable branches (6.12.83, 6.18.24, 7.0.1, 6.19.14) with corresponding git commits, providing clear remediation path. The vulnerability requires OCFS2 filesystem usage, which is relatively uncommon outside Oracle-centric environments and clustered storage deployments. Most Linux systems use ext4, XFS, or btrfs and remain unaffected. For organizations actually running OCFS2, this represents a legitimate availability risk during concurrent file operations, but the attack complexity and limited deployment footprint constrain overall impact. Priority should be moderate for OCFS2 users, low for general Linux deployments.

Exploit ScenarioDerived

An attacker with local filesystem access to an OCFS2-mounted volume triggers concurrent operations: starts a large direct I/O write to a file while simultaneously unlinking another file in the same filesystem. The unlink operation acquires the orphan directory inode lock and waits for ip_alloc_sem during directory expansion. Simultaneously, the direct I/O completion handler holds ip_alloc_sem and attempts to acquire the orphan directory lock. Both operations deadlock, causing the filesystem to hang and rendering the system unresponsive. No public exploit code exists, but the race condition is deterministic given precise timing of concurrent unlink and direct I/O operations.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

Kernel deadlock in Linux OCFS2 filesystem allows remote denial of service through lock ordering violation between unlink and direct I/O operations. OCFS2's orphan directory locking in ocfs2_unlink and ocfs2_dio_end_io_write acquire ip_alloc_sem and inode_lock in opposite orders (ABBA pattern), enabling concurrent operations to deadlock the system. Affects mainline Linux kernel through 6.19.14 with patches available in 6.12.83, 6.18.24, 7.0.1, and 6.19.14. EPSS score of 0.02% suggests minimal real-world exploitation likelihood despite CVSS 7.5 score, and no active exploitation or public POC identified.

RemediationAI

Upgrade to patched Linux kernel versions: 6.12.83, 6.18.24, 7.0.1, or 6.19.14 depending on your stable branch. Patches available from https://git.kernel.org/stable/c/2b884d52273c60c298bd570163e8053657bbaff6 (mainline), https://git.kernel.org/stable/c/bc0fb5c7d54c78be43a536df0e20dee32adb27d3, https://git.kernel.org/stable/c/f9fb1a7b635849322e1d7b7b6b26389778ec8e82, and https://git.kernel.org/stable/c/e049f7a9bd80b7319590789ea5e1c523d6339d91. The fix relocates ocfs2_del_inode_from_orphan outside the ip_alloc_sem critical section, eliminating the lock ordering violation. If immediate patching is not feasible, consider temporary workarounds: disable direct I/O on OCFS2 filesystems (mount without o_direct support), which prevents the ocfs2_dio_end_io_write code path from executing - this trades performance for stability. Alternatively, if OCFS2 is not operationally required, migrate to alternative cluster filesystems like GFS2 or distributed storage solutions. Monitor for kernel hung task warnings in dmesg indicating deadlock conditions. Note that disabling direct I/O may significantly impact database and application performance that relies on unbuffered I/O operations.

Affected VersionsENISA

Linux patch: 6.19.14
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e049f7a9bd80b7319590789ea5e1c523d6339d91
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f9fb1a7b635849322e1d7b7b6b26389778ec8e82
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <bc0fb5c7d54c78be43a536df0e20dee32adb27d3
Linux patch: 7.0.1
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2b884d52273c60c298bd570163e8053657bbaff6
Linux patch: 6.18.24

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OCFS2 (Oracle Cluster File System version 2) is a shared-disk cluster filesystem for Linux that supports concurrent multi-node access. This vulnerability stems from inconsistent lock acquisition ordering in the orphan directory management subsystem. The orphan directory temporarily holds inodes for files being deleted or truncated. The ip_alloc_sem semaphore protects allocation metadata changes, while inode_lock serializes directory operations. When ocfs2_unlink removes a file, it locks the orphan directory inode first, then acquires ip_alloc_sem during directory expansion. Conversely, ocfs2_dio_end_io_write (the direct I/O completion path) reverses this order, acquiring ip_alloc_sem before attempting to remove the inode from the orphan directory. This textbook ABBA deadlock scenario violates proper lock hierarchy and can cause system hangs under concurrent unlink and direct I/O workloads. The CPE strings cpe:2.3:a:linux:linux indicate this affects the core Linux kernel implementation, not distribution-specific builds.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Patch released
Apr 29, 2026 - 20:10 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.5 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
HIGH 7.5

DescriptionCVE.org

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

ocfs2: fix possible deadlock between unlink and dio_end_io_write

ocfs2_unlink takes orphan dir inode_lock first and then ip_alloc_sem, while in ocfs2_dio_end_io_write, it acquires these locks in reverse order. This creates an ABBA lock ordering violation on lock classes ocfs2_sysfile_lock_key[ORPHAN_DIR_SYSTEM_INODE] and ocfs2_file_ip_alloc_sem_key.

Lock Chain #0 (orphan dir inode_lock -> ip_alloc_sem): ocfs2_unlink ocfs2_prepare_orphan_dir ocfs2_lookup_lock_orphan_dir inode_lock(orphan_dir_inode) <- lock A __ocfs2_prepare_orphan_dir ocfs2_prepare_dir_for_insert ocfs2_extend_dir ocfs2_expand_inline_dir down_write(&oi->ip_alloc_sem) <- Lock B

Lock Chain #1 (ip_alloc_sem -> orphan dir inode_lock): ocfs2_dio_end_io_write down_write(&oi->ip_alloc_sem) <- Lock B ocfs2_del_inode_from_orphan() inode_lock(orphan_dir_inode) <- Lock A

Deadlock Scenario: CPU0 (unlink) CPU1 (dio_end_io_write) ------ ------ inode_lock(orphan_dir_inode) down_write(ip_alloc_sem) down_write(ip_alloc_sem) inode_lock(orphan_dir_inode)

Since ip_alloc_sem is to protect allocation changes, which is unrelated with operations in ocfs2_del_inode_from_orphan. So move ocfs2_del_inode_from_orphan out of ip_alloc_sem to fix the deadlock.

Executive ViewAI

Why It Matters

CVE-2026-31598 is a kernel deadlock vulnerability in Linux OCFS2 filesystem that enables remote denial of service through concurrent file operations, potentially causing system hangs that disrupt business continuity on affected Linux deployments. Organizations running OCFS2 on Linux kernels through version 6.19.14 face availability risk, particularly in shared storage or clustered environments where multiple users trigger concurrent unlink and direct I/O operations simultaneously.

Business Impact: High
Compensating Controls

Vendor-released patch: 6.12.83, 6.18.24, 6.19.14, 7.0.1. Until patched, limit concurrent unlink operations and direct I/O activity on OCFS2 mounts through application design; implement monitoring for kernel deadlock symptoms (hung processes, high load without CPU utilization) to trigger emergency restarts as interim mitigation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy