ocfs2/cluster: hold a reference on the heartbeat thread

Summary

CVECVE-2026-139797
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:20:14 UTC
Updated2026-11-30 14:20:14 UTC
DescriptionIn 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().

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d64708cc119db01fbc55017ee6e987b680ebd59c d8db249281cc185ad7d25051c85b3dcc3a697bee git Not specified
CNA Linux Linux affected 8e5cb90f212fda9f6cd29915a1ed74353108ceb3 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d git Not specified
CNA Linux Linux affected 8abb2b7c60d2b2c0f40606048c873096c03874d2 db6ad77a25a168756be394806bd65d8a9d267fc4 git Not specified
CNA Linux Linux affected 688bc88e2046dd6ce81ce18079b5254cb8dadc0e 209d372db6827617329f7129253044d0fcd854bb git Not specified
CNA Linux Linux affected 688bc88e2046dd6ce81ce18079b5254cb8dadc0e aa2e38aabaae87236290e486a2b77cfa3adfbebe git Not specified
CNA Linux Linux affected d429482a67df16a30afaf9a3f1fe239fe73b44de git Not specified
CNA Linux Linux affected 70d7bb7a0be033e5ebe8a2c48974692b1318891c git Not specified
CNA Linux Linux affected 6.6.160 6.6.163 semver Not specified
CNA Linux Linux affected 6.12.110 6.12.119 semver Not specified
CNA Linux Linux affected 6.18.52 6.18.65 semver Not specified
CNA Linux Linux affected 6.1.191 6.2 semver Not specified
CNA Linux Linux affected 7.2.6 7.3 semver Not specified
CNA Linux Linux affected 7.3 Not specified
CNA Linux Linux unaffected 7.3 semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/209d372db6827617329f7129253044d0fcd854bb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d8db249281cc185ad7d25051c85b3dcc3a697bee 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/aa2e38aabaae87236290e486a2b77cfa3adfbebe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/db6ad77a25a168756be394806bd65d8a9d267fc4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report