CVE-2026-138890
publishedocfs2: free replay slots in ocfs2_recovery_exit()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2b7e59ed2e77136e9360274f8f0fc208a003e95c to < 153361baf48f9b9a15592cee490d4cad1519158c · 8059e200259e9c483d715fc2df6340c227c3e196 to < 565b4f2f115e375ad94815284ed7904f030badef · 50ab0ca3aff4da26037113d69f5a756d8c1a92cd to < f621e88163ff80ef8bbf54949a08afa771f0edd4 · ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < bd5ad94a4e0e80afc3d794c8a945ef7116656885 · ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 7edfee4c087cb1e10a52572ac2d402060661c174 · ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 407e148354ac954f70a1b54077b4a6ea0f669dbe · ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 13c2a268eac34b044847cc3da9c1f85204a3deda · ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 · 7ef516888c4d30ae41bfcd79e7077d86d92794c5 · 4efe1d2db731bad19891e2fb9b338724b1f598cc · 5.10.163 to < 5.10.275 · 5.15.107 to < 5.15.226 · 6.1.2 to < 6.1.193 · 5.4.229 to < 5.5 · 6.0.16 to < 6.1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2b7e59ed2e77136e9360274f8f0fc208a003e95c to < 153361baf48f9b9a15592cee490d4cad1519158c (affected · git)8059e200259e9c483d715fc2df6340c227c3e196 to < 565b4f2f115e375ad94815284ed7904f030badef (affected · git)50ab0ca3aff4da26037113d69f5a756d8c1a92cd to < f621e88163ff80ef8bbf54949a08afa771f0edd4 (affected · git)ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < bd5ad94a4e0e80afc3d794c8a945ef7116656885 (affected · git)ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 7edfee4c087cb1e10a52572ac2d402060661c174 (affected · git)ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 407e148354ac954f70a1b54077b4a6ea0f669dbe (affected · git)ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 13c2a268eac34b044847cc3da9c1f85204a3deda (affected · git)ce2fcf1516d674a174d9b34d1e1024d64de9fba3 to < 1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 (affected · git)7ef516888c4d30ae41bfcd79e7077d86d92794c5 (affected · git)4efe1d2db731bad19891e2fb9b338724b1f598cc (affected · git)5.10.163 to < 5.10.275 (affected · semver)5.15.107 to < 5.15.226 (affected · semver)6.1.2 to < 6.1.193 (affected · semver)5.4.229 to < 5.5 (affected · semver)6.0.16 to < 6.1 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.2 (affected)0 to < 6.2 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda
- https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c
- https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0
- https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe
- https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef
- https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174
- https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885
- https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4
Provider assertions
1Linux · cna
ocfs2: free replay slots in ocfs2_recovery_exit()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c4f315592afab13f2fb7588d4dbff792bca3bd845024ba3a1fe0fb6277ca406c
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record