CVE-2026-139797

Not scored yetLast modified Nov 30, 2026

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().

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139798In the Linux kernel, the following vulnerability has been resolved: mm: do not unintentionally overwrite atomic VMA flags Patch series "mmCVE-2026-1397997.0In the Linux kernel, the following vulnerability has been resolved: mm/shmem: hold off eviction in shmem_writeout() Once shmem_writeout() CVE-2026-13984.3The Change WP URL plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.0. This is due toCVE-2026-139804.3Inappropriate implementation in Chrome for iOS in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker to perform UI spoofiCVE-2026-139800In the Linux kernel, the following vulnerability has been resolved: 9p/xen: drain response work after unbinding IRQ commit ea4f1009408e ("CVE-2026-1398017.3In the Linux kernel, the following vulnerability has been resolved: KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM CVE-2026-139802In the Linux kernel, the following vulnerability has been resolved: HID: roccat: savu: reject short special reports The raw event callbackCVE-2026-139803In the Linux kernel, the following vulnerability has been resolved: HID: roccat: ryos: reject short special reports The raw event callbackCVE-2026-139804In the Linux kernel, the following vulnerability has been resolved: HID: roccat: pyra: reject short button reports The raw event callback CVE-2026-139805In the Linux kernel, the following vulnerability has been resolved: HID: roccat: konepure: reject short button reports The raw event callbCVE-2026-139806In the Linux kernel, the following vulnerability has been resolved: HID: roccat: koneplus: reject short button reports The raw event callbCVE-2026-139807In the Linux kernel, the following vulnerability has been resolved: HID: roccat: isku: reject short button reports The raw event callback
CVE-2026-139797: Unscored | Vulnix