CVE-2026-139228

ocfs2: initialize status waiters before publishing them

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ocfs2: initialize status waiters before publishing them

o2net_prep_nsw() publishes its stack waiter in nn_status_idr and
nn_status_list under nn_lock, then initializes the wait queue and
completion status after releasing the lock. A concurrent disconnect can
find that waiter through o2net_complete_nodes_nsw() and call wake_up()
before the wait queue has a valid lock and list head. The sender can also
overwrite a completion status with its initial value.

Initialize the wait queue and status before publishing the waiter.
nn_lock then orders publication against completion, and no reader can
observe a partially initialized object. Leave the IDR allocation and its
failure handling unchanged.

A controlled case-modified test kernel used a synthetic connection to
enter the real send path and overlap publication with disconnect. The
candidate completion and wake-up code were unchanged. Its Oops includes:

KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
RIP: 0010:__wake_up_common+0xa0/0x1f0
Call Trace:
<TASK>
__wake_up+0x36/0x60
o2net_complete_nsw_locked+0x222/0x370
o2net_set_nn_state+0x917/0xea0
o2net_disconnect_node+0xd0/0x190
o2net_validate_control_write+0x454/0x500
full_proxy_write+0x11f/0x180
vfs_write+0x25a/0x1010
ksys_write+0x111/0x200
do_syscall_64+0x114/0x620
entry_SYSCALL_64_after_hwframe+0x77/0x7f
</TASK>
Modules linked in:

Analysis

AI-generated

Technical impact

A race condition in the Linux kernel OCFS2 file‑system module allows an attacker to trigger an uninitialized wait queue and null‑pointer dereference during node disconnect operations, leading to a kernel crash. The flaw manifests when a concurrent disconnect accesses the waiter before the wait queue and completion status are properly initialized, causing a KASAN error and system halt. This vulnerability results in a full denial of service without privilege escalation or data exfiltration.

Affected Systems

All Linux kernel builds that include the OCFS2 file‑system component are affected if they have not incorporated the patch commit that reorders waiter publication and initialization. The vulnerability is present in any kernel version that contains the pre‑patch code for the o2net network node state transitions, regardless of distribution. Nodes that participate in an OCFS2 cluster and handle network traffic between cluster peers are potentially impacted.

Risk and Exploitability

The CVSS score is not supplied, and the EPSS score is unavailable; the vulnerability is not listed in the CISA KEV catalog. Attackers would need control over network traffic between OCFS2 nodes to induce the race condition, which limits the attack surface but still allows a single kernel crash. Given the high impact of a kernel panic and the absence of exploit statistics, the risk should be considered high for systems that run vulnerable kernel versions and expose OCFS2 clustering interfaces.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the OCFS2 wait‑queue initialization patch referenced in the provided git commits.
  • Apply the updated kernel to all nodes in any OCFS2 cluster before enabling inter‑node communication, ensuring that a malicious node cannot trigger the race condition.
  • Continuously monitor kernel crash logs for KASAN failures and consider disabling OCFS2 networking temporarily while the patch is deployed.

Generated by OpenCVE AI on December 1, 2026 at 10:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: initialize status waiters before publishing them o2net_prep_nsw() publishes its stack waiter in nn_status_idr and nn_status_list under nn_lock, then initializes the wait queue and completion status after releasing the lock. A concurrent disconnect can find that waiter through o2net_complete_nodes_nsw() and call wake_up() before the wait queue has a valid lock and list head. The sender can also overwrite a completion status with its initial value. Initialize the wait queue and status before publishing the waiter. nn_lock then orders publication against completion, and no reader can observe a partially initialized object. Leave the IDR allocation and its failure handling unchanged. A controlled case-modified test kernel used a synthetic connection to enter the real send path and overlap publication with disconnect. The candidate completion and wake-up code were unchanged. Its Oops includes: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:__wake_up_common+0xa0/0x1f0 Call Trace: <TASK> __wake_up+0x36/0x60 o2net_complete_nsw_locked+0x222/0x370 o2net_set_nn_state+0x917/0xea0 o2net_disconnect_node+0xd0/0x190 o2net_validate_control_write+0x454/0x500 full_proxy_write+0x11f/0x180 vfs_write+0x25a/0x1010 ksys_write+0x111/0x200 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> Modules linked in:
Title ocfs2: initialize status waiters before publishing them
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-476

    NULL Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM