CVE-2026-138891: ocfs2: exit recovery thread on mount error path

Published Nov 30, 2026
·
Updated

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 ocfs2mountvolume(), ocfs2fillsuper() unwinds via outdebugfs/outsuper and frees the osb without disabling recovery.

A node failure event can concurrently launch the recovery thread, which blocks in ocfs2waitonmount() waiting for the volume state to become VOLUMEMOUNTED or VOLUMEDISABLED. As the mount error path neither sets VOLUMEDISABLED nor wakes osbmountevent, 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 VOLUMEDISABLED and waking osbmountevent on this path so the thread bails out, and replace the plain kfree(osb->recoverymap) with ocfs2recoveryexit(), which waits for a running recovery thread to exit before the recovery map is freed.

Affected Software

13 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.4.229<5.5
5.5
linux/kernel>=5.10.163<5.10.275
5.10.275
linux/kernel>=5.15.107<5.15.226
5.15.226
linux/kernel>=5.19.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux<6.12.117-1
6.12.117-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux<=6.1.176-1, <=6.1.192-3
6.12.117-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.5
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.275
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  8. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  9. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1
  10. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  11. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.117-1Fixed in 7.3.4-1
  12. Compensating control

    In the OCFS2 mount-error path, set VOLUME_DISABLED and wake osb_mount_event so the recovery thread can exit; replace kfree(osb->recovery_map) with ocfs2_recovery_exit() to wait for a running recovery thread.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description
Data Sourced
via OSV·01:25 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

Under what conditions can this occur?

The issue requires an OCFS2 mount to fail after the cluster connection has already been established. A concurrent node failure event must then start the recovery thread while the failed mount is unwinding.

2

What is the practical impact of the failed mount path?

The recovery thread can remain permanently blocked waiting for the volume state to change, leaking the kernel thread. It may subsequently access a wait queue in an osb structure that has already been freed, creating a use-after-free condition.

3

How can administrators tell whether a system is affected at runtime?

A relevant symptom is a failed OCFS2 mount after cluster connection setup combined with a recovery thread that remains blocked in __ocfs2_wait_on_mount(). The description does not provide a specific log message or detection command.

4

What does the fix change?

The fix marks the volume as VOLUME_DISABLED and wakes osb_mount_event during the mount-error cleanup, allowing the recovery thread to exit. It also uses ocfs2_recovery_exit() so cleanup waits for any running recovery thread before freeing the recovery map.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203