Double free in OCFS2 replay slot cleanup in the Linux kernel
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The ocfs2 filesystem in the Linux kernel frees its replay slots twice. Mount error paths and the recovery thread both free osb->replay_map, and the mount error path does so without holding the recovery lock, which causes a double free. Affected are Linux kernel versions from 6.2 onward and the stable ranges from 5.4.229 before 5.5, 5.10.163 before 5.10.275, 5.15.107 before 5.15.226, 6.0.16 before 6.1 and 6.1.2 before 6.1.193.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.163 to before 5.10.275; 5.15.107 to before 5.15.226; 6.1.2 to before 6.1.193; 5.4.229 to before 5.5; 6.0.16 to before 6.1 | 5.10.275, 5.15.226, 6.1.193, 5.5, 6.1 | Patch available | CNA |
| Linux | Linux | 6.2 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.163 to before 5.10.275; 5.15.107 to before 5.15.226; 6.1.2 to before 6.1.193; 5.4.229 to before 5.5; 6.0.16 to before 6.1 Fixed in 5.10.275, 5.15.226, 6.1.193, 5.5, 6.1 Patch available CNA
- Linux VendorLinux Affected 6.2 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, 7.4-rc1 Patch available CNA
Remediation
Upgrade the Linux kernel to a fixed version: 5.5, 6.1, 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4 or 7.4-rc1, depending on the branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 5.5, 6.1
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-30 Threatist record created from CVE-2026-138890
- 2026-11-30 Alias added: GHSA-gc39-3mjw-86h6
- 2026-12-01 Affected versions changed · Red Hat
- 2026-12-01 CVSS score added · Red Hat
References
Other 8
- https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c
- https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef
- https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4
- https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885
- https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174
- https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe
- https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda
- https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-138890 · CVE Program
- CVE-2026-138890 · NVD
- GHSA-gc39-3mjw-86h6 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-138890 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences