CVE Tools

CVE-2026-139797

ocfs2/cluster: hold a reference on the heartbeat thread

CVE-2026-139797 affects Linux.

No known exploitation. No EPSS score yet. Fixed versions are out.

Check it yourself

No ready-made check. Neither Nuclei nor OpenVAS has one for this CVE yet.

Request a scan

Published Updated Sources: CVE.org, NVD

What to do

Find your product and version, then upgrade to the build on the right.

  • LinuxAffected: ≥ d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697beeUpgrade to: d8db249281cc185ad7d25051c85b3dcc3a697beeAffected: ≥ 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164dUpgrade to: 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164dAffected: ≥ 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4Upgrade to: db6ad77a25a168756be394806bd65d8a9d267fc4Affected: ≥ 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < 209d372db6827617329f7129253044d0fcd854bbUpgrade to: 209d372db6827617329f7129253044d0fcd854bb + 8 more branchesStated by: CVE record

Versions as the sources state them. Full version matrix after sign-in

What it is

From the CVE record

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

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

No EPSS score yet. New CVEs are usually scored within a few days.

Lifecycle

2 events over 0 days, from the signal feeds we watch.

  1. Publishedrecord updated

Affected products

Sources

Questions about CVE-2026-139797

Which versions are affected by CVE-2026-139797?
Linux: ≥ d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697bee; ≥ 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d; ≥ 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4.
How do I fix or mitigate CVE-2026-139797?
Upgrade to a fixed build for your product branch: d8db249281cc185ad7d25051c85b3dcc3a697bee, 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d, db6ad77a25a168756be394806bd65d8a9d267fc4, 209d372db6827617329f7129253044d0fcd854bb.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Linux, not every advisory.