{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "2b7e59ed2e77136e9360274f8f0fc208a003e95c"
            },
            {
              "fixed": "153361baf48f9b9a15592cee490d4cad1519158c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "8059e200259e9c483d715fc2df6340c227c3e196"
            },
            {
              "fixed": "565b4f2f115e375ad94815284ed7904f030badef"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "50ab0ca3aff4da26037113d69f5a756d8c1a92cd"
            },
            {
              "fixed": "f621e88163ff80ef8bbf54949a08afa771f0edd4"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "ce2fcf1516d674a174d9b34d1e1024d64de9fba3"
            },
            {
              "fixed": "bd5ad94a4e0e80afc3d794c8a945ef7116656885"
            },
            {
              "fixed": "7edfee4c087cb1e10a52572ac2d402060661c174"
            },
            {
              "fixed": "407e148354ac954f70a1b54077b4a6ea0f669dbe"
            },
            {
              "fixed": "13c2a268eac34b044847cc3da9c1f85204a3deda"
            },
            {
              "fixed": "1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "7ef516888c4d30ae41bfcd79e7077d86d92794c5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4efe1d2db731bad19891e2fb9b338724b1f598cc"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.4.229"
            },
            {
              "fixed": "5.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.10.163"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.107"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.0.16"
            },
            {
              "fixed": "6.1"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.2"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138890.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: free replay slots in ocfs2_recovery_exit()\n\nCommit ce2fcf1516d6 (\"ocfs2: fix memory leak in ocfs2_mount_volume()\")\nadded ocfs2_free_replay_slots() calls to the mount error paths\nout_dismount and out_check_volume to fix a leak of osb-\u003ereplay_map. \nHowever these calls are unlocked while the bail path of the recovery\nthread, which is woken up by out_dismount right before the call, also\nfrees the replay slots under osb-\u003erecovery_lock.  Both sides can thus\nobserve a non-NULL osb-\u003ereplay_map and trigger a double free.\n\nFix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit()\nafter ocfs2_recovery_disable(), which waits for a running recovery thread\nto exit under osb-\u003erecovery_lock, and drop the unlocked call sites.  Both\nocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call\nocfs2_recovery_exit(), so the replay slots are freed on every path.  Since\nsuper.c no longer references it, make ocfs2_free_replay_slots() static\nagain.",
  "id": "CVE-2026-138890",
  "modified": "2026-11-30T14:45:32.782848346Z",
  "published": "2026-11-30T13:25:56.493Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138890.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138890"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ocfs2: free replay slots in ocfs2_recovery_exit()"
}