ocfs2: free replay slots in ocfs2_recovery_exit()

Summary

CVECVE-2026-138890
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:46 UTC
Updated2026-11-30 14:17:46 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 2b7e59ed2e77136e9360274f8f0fc208a003e95c 153361baf48f9b9a15592cee490d4cad1519158c git Not specified
CNA Linux Linux affected 8059e200259e9c483d715fc2df6340c227c3e196 565b4f2f115e375ad94815284ed7904f030badef git Not specified
CNA Linux Linux affected 50ab0ca3aff4da26037113d69f5a756d8c1a92cd f621e88163ff80ef8bbf54949a08afa771f0edd4 git Not specified
CNA Linux Linux affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 bd5ad94a4e0e80afc3d794c8a945ef7116656885 git Not specified
CNA Linux Linux affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 7edfee4c087cb1e10a52572ac2d402060661c174 git Not specified
CNA Linux Linux affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 407e148354ac954f70a1b54077b4a6ea0f669dbe git Not specified
CNA Linux Linux affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 13c2a268eac34b044847cc3da9c1f85204a3deda git Not specified
CNA Linux Linux affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 git Not specified
CNA Linux Linux affected 7ef516888c4d30ae41bfcd79e7077d86d92794c5 git Not specified
CNA Linux Linux affected 4efe1d2db731bad19891e2fb9b338724b1f598cc git Not specified
CNA Linux Linux affected 5.10.163 5.10.275 semver Not specified
CNA Linux Linux affected 5.15.107 5.15.226 semver Not specified
CNA Linux Linux affected 6.1.2 6.1.193 semver Not specified
CNA Linux Linux affected 5.4.229 5.5 semver Not specified
CNA Linux Linux affected 6.0.16 6.1 semver Not specified
CNA Linux Linux affected 6.2 Not specified
CNA Linux Linux unaffected 6.2 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report