0.0
NA
CVE-2026-138890
ocfs2: free replay slots in ocfs2_recovery_exit()
Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: free replay slots in ocfs2_recovery_exit() Commit ce2fcf1516d6 ("ocfs2: fix memory leak in ocfs2_mount_volume()") added ocfs2_free_replay_slots() calls to the mount error paths out_dismount and out_check_volume to fix a leak of osb->replay_map. However these calls are unlocked while the bail path of the recovery thread, which is woken up by out_dismount right before the call, also frees the replay slots under osb->recovery_lock. Both sides can thus observe a non-NULL osb->replay_map and trigger a double free. Fix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit() after ocfs2_recovery_disable(), which waits for a running recovery thread to exit under osb->recovery_lock, and drop the unlocked call sites. Both ocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call ocfs2_recovery_exit(), so the replay slots are freed on every path. Since super.c no longer references it, make ocfs2_free_replay_slots() static again.

INFO

Published Date :

Nov. 30, 2026, 2:17 p.m.

Last Modified :

Nov. 30, 2026, 2:17 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-138890 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Resolve double free by moving replay slot freeing to ocfs2_recovery_exit and removing redundant calls.
  • Move ocfs2_free_replay_slots to ocfs2_recovery_exit.
  • Remove unlocked call sites for ocfs2_free_replay_slots.
  • Ensure replay slots are freed on all exit paths.
  • Make ocfs2_free_replay_slots static again.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-138890 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-138890 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-138890 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-138890 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 30, 2026

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: ocfs2: free replay slots in ocfs2_recovery_exit() Commit ce2fcf1516d6 ("ocfs2: fix memory leak in ocfs2_mount_volume()") added ocfs2_free_replay_slots() calls to the mount error paths out_dismount and out_check_volume to fix a leak of osb->replay_map. However these calls are unlocked while the bail path of the recovery thread, which is woken up by out_dismount right before the call, also frees the replay slots under osb->recovery_lock. Both sides can thus observe a non-NULL osb->replay_map and trigger a double free. Fix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit() after ocfs2_recovery_disable(), which waits for a running recovery thread to exit under osb->recovery_lock, and drop the unlocked call sites. Both ocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call ocfs2_recovery_exit(), so the replay slots are freed on every path. Since super.c no longer references it, make ocfs2_free_replay_slots() static again.
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/138xxx/CVE-2026-138890.json">CVE-2026-138890</a>
    Added Reference https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda
    Added Reference https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c
    Added Reference https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0
    Added Reference https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe
    Added Reference https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef
    Added Reference https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174
    Added Reference https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885
    Added Reference https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.