cvelo
P4 · InfoEPSS 0.2%

ocfs2: free replay slots in ocfs2_recovery_exit()

  • CVE-2026-138890
  • GHSA-gc39-3mjw-86h6
  • EUVD-2026-138593

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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run a version from 6.0.16 to before 6.1update to 6.1 or laterMinor version change: check the release notes
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.4.229 to before 5.5update to 5.5 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.1.2 to before 6.1.1936.1.193
    from 6.0.16 to before 6.16.1
    from 5.15.107 to before 5.15.2265.15.226
    from 5.10.163 to before 5.10.2755.10.275
    from 5.4.229 to before 5.55.5
    6.2none stated
    before 6.2: not affectednone stated
    from 5.10.275 up to 5.10.*: not affectednone stated

    and 7 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.