Use-after-free in Linux kernel OCFS2 heartbeat thread
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 Linux kernel OCFS2 cluster code is affected in several version ranges, including from 6.1.191 before 6.2 and from 7.2.6 before 7.3. The heartbeat thread is started without holding a reference to its task, so the task can be freed after the thread exits while the region still points to it. Changing the local node makes the thread exit at any time, so userspace reads of the region pid attribute or region removal can then touch freed memory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: ocfs2/cluster: hold a reference on the heartbeat thread Since commit 688bc88e2046 ("ocfs2/cluster: keep heartbeat local node stable"), o2hb_thread() leaves its loop and returns when the local node changes, for example after "echo 0 > node/<name>/local". The thread was started with kthread_run() and nothing holds a reference to its task_struct, so the task is freed once it exits, while reg->hr_task still points to it. Reading the region's pid attribute then reads the freed task, and removing the region calls kthread_stop() on it: BUG: KASAN: slab-use-after-free in o2hb_region_pid_show+0xb3/0xc0 refcount_t: addition on 0; use-after-free. Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:kthread_stop+0xb1/0x390 The thread could already return by itself before, when heartbeat start was aborted or on an unclean stop, but the local node change makes it reachable from userspace at any time. Create the thread, take a reference on it and only then wake it, so the reference cannot race with the thread exiting. Drop it with kthread_stop_put().
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 | 6.6.160 to before 6.6.163; 6.12.110 to before 6.12.119; 6.18.52 to before 6.18.65; 6.1.191 to before 6.2; 7.2.6 to before 7.3 | 6.6.163, 6.12.119, 6.18.65, 6.2, 7.3 | Patch available | CNA |
| Linux | Linux | 7.3 and later | 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 6.6.160 to before 6.6.163; 6.12.110 to before 6.12.119; 6.18.52 to before 6.18.65; 6.1.191 to before 6.2; 7.2.6 to before 7.3 Fixed in 6.6.163, 6.12.119, 6.18.65, 6.2, 7.3 Patch available CNA
- Linux VendorLinux Affected 7.3 and later Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA
Remediation
Upgrade the Linux kernel to a fixed version: 6.6.163, 6.12.119, 6.18.65, 6.2, 7.3, 7.3.6 or 7.4-rc1, depending on the branch in use. The sources list no fixed version for other Linux kernel branches.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 6.2, 7.3
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139797
- 2026-11-30 Alias added: GHSA-jjpg-8jj3-pxqc
References
Other 5
- https://git.kernel.org/stable/c/d8db249281cc185ad7d25051c85b3dcc3a697bee
- https://git.kernel.org/stable/c/4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d
- https://git.kernel.org/stable/c/db6ad77a25a168756be394806bd65d8a9d267fc4
- https://git.kernel.org/stable/c/209d372db6827617329f7129253044d0fcd854bb
- https://git.kernel.org/stable/c/aa2e38aabaae87236290e486a2b77cfa3adfbebe
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-139797 · CVE Program
- CVE-2026-139797 · NVD
- GHSA-jjpg-8jj3-pxqc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences