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

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: free replay slots in ocfs2recoveryexit()

Commit ce2fcf1516d6 ("ocfs2: fix memory leak in ocfs2mountvolume()") added ocfs2freereplayslots() calls to the mount error paths outdismount and outcheckvolume to fix a leak of osb->replaymap. However these calls are unlocked while the bail path of the recovery thread, which is woken up by outdismount right before the call, also frees the replay slots under osb->recoverylock. Both sides can thus observe a non-NULL osb->replaymap and trigger a double free.

Fix this by moving ocfs2freereplayslots() into ocfs2recoveryexit() after ocfs2recoverydisable(), which waits for a running recovery thread to exit under osb->recoverylock, and drop the unlocked call sites. Both ocfs2dismountvolume() and the outsuper path of ocfs2fillsuper() call ocfs2recoveryexit(), so the replay slots are freed on every path. Since super.c no longer references it, make ocfs2freereplayslots() static again.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description

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