{"id":"CVE-2026-138890","aliases":["CVE-2026-138890"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: free replay slots in ocfs2_recovery_exit()","summary":"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->replay_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->recovery_lock.  Both sides can thus\nobserve a non-NULL osb->replay_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->recovery_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->replay_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->recovery_lock.  Both sides can thus\nobserve a non-NULL osb->replay_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->recovery_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.","source":"cvelist"}],"published":"2026-11-30T13:25:56.493Z","modified":"2026-11-30T14:17:46.613Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2b7e59ed2e77136e9360274f8f0fc208a003e95c","fixed":"153361baf48f9b9a15592cee490d4cad1519158c","status":"affected"},{"type":"git","introduced":"8059e200259e9c483d715fc2df6340c227c3e196","fixed":"565b4f2f115e375ad94815284ed7904f030badef","status":"affected"},{"type":"git","introduced":"50ab0ca3aff4da26037113d69f5a756d8c1a92cd","fixed":"f621e88163ff80ef8bbf54949a08afa771f0edd4","status":"affected"},{"type":"git","introduced":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","fixed":"bd5ad94a4e0e80afc3d794c8a945ef7116656885","status":"affected"},{"type":"git","introduced":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","fixed":"7edfee4c087cb1e10a52572ac2d402060661c174","status":"affected"},{"type":"git","introduced":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","fixed":"407e148354ac954f70a1b54077b4a6ea0f669dbe","status":"affected"},{"type":"git","introduced":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","fixed":"13c2a268eac34b044847cc3da9c1f85204a3deda","status":"affected"},{"type":"git","introduced":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","fixed":"1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0","status":"affected"},{"type":"git","version":"7ef516888c4d30ae41bfcd79e7077d86d92794c5","status":"affected"},{"type":"git","version":"4efe1d2db731bad19891e2fb9b338724b1f598cc","status":"affected"},{"type":"semver","introduced":"5.10.163","fixed":"5.10.275","status":"affected"},{"type":"semver","introduced":"5.15.107","fixed":"5.15.226","status":"affected"},{"type":"semver","introduced":"6.1.2","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"5.4.229","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.0.16","fixed":"6.1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138890","url":"https://www.cve.org/CVERecord?id=CVE-2026-138890","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:56.493Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138890","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138890","licence":"Public domain","modified":"2026-11-30T14:17:46.613Z"}],"updatedAt":"2026-11-30T14:32:56.610Z","epss":{"score":0.0022,"percentile":0.13411,"date":"2026-12-01T12:00:22.000Z"}}