CVE-2026-139797
publishedocfs2/cluster: hold a reference on the heartbeat thread
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd429482a67df16a30afaf9a3f1fe239fe73b44de to < aa11df5f649f081067a2103cac00a88c585554a4 · d64708cc119db01fbc55017ee6e987b680ebd59c to < d8db249281cc185ad7d25051c85b3dcc3a697bee · 8e5cb90f212fda9f6cd29915a1ed74353108ceb3 to < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d · 8abb2b7c60d2b2c0f40606048c873096c03874d2 to < db6ad77a25a168756be394806bd65d8a9d267fc4 · 688bc88e2046dd6ce81ce18079b5254cb8dadc0e to < 209d372db6827617329f7129253044d0fcd854bb · 688bc88e2046dd6ce81ce18079b5254cb8dadc0e to < aa2e38aabaae87236290e486a2b77cfa3adfbebe · 70d7bb7a0be033e5ebe8a2c48974692b1318891c · 6.1.191 to < 6.1.194 · 6.6.160 to < 6.6.163 · 6.12.110 to < 6.12.119 · 6.18.52 to < 6.18.65 · 7.2.6 to < 7.3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.3 (affected) · 0 to < 7.3 (unaffected · semver) · 6.1.194 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 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/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().
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 | d429482a67df16a30afaf9a3f1fe239fe73b44de to < aa11df5f649f081067a2103cac00a88c585554a4 (affected · git)d64708cc119db01fbc55017ee6e987b680ebd59c to < d8db249281cc185ad7d25051c85b3dcc3a697bee (affected · git)8e5cb90f212fda9f6cd29915a1ed74353108ceb3 to < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d (affected · git)8abb2b7c60d2b2c0f40606048c873096c03874d2 to < db6ad77a25a168756be394806bd65d8a9d267fc4 (affected · git)688bc88e2046dd6ce81ce18079b5254cb8dadc0e to < 209d372db6827617329f7129253044d0fcd854bb (affected · git)688bc88e2046dd6ce81ce18079b5254cb8dadc0e to < aa2e38aabaae87236290e486a2b77cfa3adfbebe (affected · git)70d7bb7a0be033e5ebe8a2c48974692b1318891c (affected · git)6.1.191 to < 6.1.194 (affected · semver)6.6.160 to < 6.6.163 (affected · semver)6.12.110 to < 6.12.119 (affected · semver)6.18.52 to < 6.18.65 (affected · semver)7.2.6 to < 7.3 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 7.3 (affected)0 to < 7.3 (unaffected · semver)6.1.194 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/209d372db6827617329f7129253044d0fcd854bb
- https://git.kernel.org/stable/c/4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d
- https://git.kernel.org/stable/c/aa11df5f649f081067a2103cac00a88c585554a4
- https://git.kernel.org/stable/c/aa2e38aabaae87236290e486a2b77cfa3adfbebe
- https://git.kernel.org/stable/c/d8db249281cc185ad7d25051c85b3dcc3a697bee
- https://git.kernel.org/stable/c/db6ad77a25a168756be394806bd65d8a9d267fc4
Provider assertions
1Linux · cna
ocfs2/cluster: hold a reference on the heartbeat thread
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 36107161a0d027c4798d49fe80f93b2df505fb524ce312400dcce16edd6e82c6
- Ingested
- 06 Dec 2026, 00:38:58 UTC
- Source record
- Official CVE record