CVE-2026-139797: Linux kernel · ocfs2/cluster: hold a reference on the heartbeat thread
Source GCVE Database
Not known to be exploited · fixed in db6ad77a25a168756be394806bd65d8a9d267fc4 : update Linux kernel when convenient.
Data as of 30 Nov 2026, 17:16 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in db6ad77a25a168756be394806bd65d8a9d267fc4, d8db249281cc185ad7d25051c85b3dcc3a697bee, aa2e38aabaae87236290e486a2b77cfa3adfbebe +7
Exploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
Description
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().
References
- nvd.nist.gov/vuln/detail/CVE-2026-139797 (opens in a new tab)
- git.kernel.org/stable/c/209d372db6827617329f7129253044d0fcd854bb (opens in a new tab)
- git.kernel.org/stable/c/4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d (opens in a new tab)
- git.kernel.org/stable/c/aa2e38aabaae87236290e486a2b77cfa3adfbebe (opens in a new tab)
- git.kernel.org/stable/c/d8db249281cc185ad7d25051c85b3dcc3a697bee (opens in a new tab)
- git.kernel.org/stable/c/db6ad77a25a168756be394806bd65d8a9d267fc4 (opens in a new tab)