CVE-2026-138891

ocfs2: exit recovery thread on mount error path

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

ocfs2: exit recovery thread on mount error path

When a mount fails after the cluster connection has been established, e.g.
in ocfs2_mount_volume(), ocfs2_fill_super() unwinds via
out_debugfs/out_super and frees the osb without disabling recovery.

A node failure event can concurrently launch the recovery thread, which
blocks in __ocfs2_wait_on_mount() waiting for the volume state to become
VOLUME_MOUNTED or VOLUME_DISABLED. As the mount error path neither sets
VOLUME_DISABLED nor wakes osb_mount_event, the thread can never make
progress: the kthread leaks and stays blocked on the wait queue embedded
in the freed osb, which may then be accessed as freed memory.

Fix it by setting VOLUME_DISABLED and waking osb_mount_event on this path
so the thread bails out, and replace the plain kfree(osb->recovery_map)
with ocfs2_recovery_exit(), which waits for a running recovery thread to
exit before the recovery map is freed.

Analysis

AI-generated

Technical impact

The vulnerability arises when the ocfs2 filesystem driver in the Linux kernel fails to disable its recovery thread after a mount error, leading the thread to leak and wait on a queue linked to freed memory. This race condition can be triggered during cluster node failures or mount failures, enabling an attacker to exploit the use‑after‑free flaw to crash the kernel or, if the corrupted memory can be manipulated, to gain higher privileges. The defect directly compromises kernel stability and confidentiality.

Affected Systems

The flaw affects Linux kernels that include the ocfs2 driver without the recent patch, regardless of distribution. Any system deploying ocfs2 in a clustered environment and running a kernel version older than the fix is potentially impacted. Specific version ranges are not listed.

Risk and Exploitability

No CVSS or EPSS values are provided, and the vulnerability is not cataloged in CISA KEV, so the precise exploitation probability is unknown. Nonetheless, because the flaw is a kernel‑level use‑after‑free that can be triggered by a mount failure, the potential for denial‑of‑service or privilege escalation is high. No public exploits are known at this time, but the risk justifies prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that contains the patch setting VOLUME_DISABLED and correctly waking the osb_mount_event so the recovery thread exits; the update is referenced by the commit series linked to the bug.
  • If an update cannot be applied immediately, avoid mounting ocfs2 volumes on nodes that may suffer failures, or unmount them before a node is expected to drop – this removes the race condition path.
  • Monitor kernel logs for repeated 'ocfs2 kthread leak' or hung recovery threads; treat repeated occurrences as indicators that the affected construct is still active and trigger alerts or an emergency patch rollout.

Generated by OpenCVE AI on November 30, 2026 at 17:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: exit recovery thread on mount error path When a mount fails after the cluster connection has been established, e.g. in ocfs2_mount_volume(), ocfs2_fill_super() unwinds via out_debugfs/out_super and frees the osb without disabling recovery. A node failure event can concurrently launch the recovery thread, which blocks in __ocfs2_wait_on_mount() waiting for the volume state to become VOLUME_MOUNTED or VOLUME_DISABLED. As the mount error path neither sets VOLUME_DISABLED nor wakes osb_mount_event, the thread can never make progress: the kthread leaks and stays blocked on the wait queue embedded in the freed osb, which may then be accessed as freed memory. Fix it by setting VOLUME_DISABLED and waking osb_mount_event on this path so the thread bails out, and replace the plain kfree(osb->recovery_map) with ocfs2_recovery_exit(), which waits for a running recovery thread to exit before the recovery map is freed.
Title ocfs2: exit recovery thread on mount error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:25 PM