Skip to content
FlawDB
Sign in

CVE-2026-139797

UNSCORED

ocfs2/cluster: hold a reference on the heartbeat thread

AI summary AI generated

An attacker who can change the ocfs2 local node setting can trigger a use-after-free of the heartbeat thread task in the Linux kernel's ocfs2 cluster code.

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697bee; >= 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d; >= 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < 209d372db6827617329f7129253044d0fcd854bb; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < aa2e38aabaae87236290e486a2b77cfa3adfbebe; d429482a67df16a30afaf9a3f1fe239fe73b44de; 70d7bb7a0be033e5ebe8a2c48974692b1318891c; >= 6.6.160, < 6.6.163; >= 6.12.110, < 6.12.119; >= 6.18.52, < 6.18.65; …
  • Anyone running Linux 7.3

Vulnerability facts

Affected
Linux >= d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697bee; >= 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d; >= 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < 209d372db6827617329f7129253044d0fcd854bb; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < aa2e38aabaae87236290e486a2b77cfa3adfbebe; d429482a67df16a30afaf9a3f1fe239fe73b44de; 70d7bb7a0be033e5ebe8a2c48974692b1318891c; >= 6.6.160, < 6.6.163; >= 6.12.110, < 6.12.119; >= 6.18.52, < 6.18.65; …; Linux 7.3
Fixed in
Linux 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d, Linux 209d372db6827617329f7129253044d0fcd854bb, Linux 6.6.163, Linux 6.12.119, Linux 6.18.65
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697bee; >= 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d; >= 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < 209d372db6827617329f7129253044d0fcd854bb; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < aa2e38aabaae87236290e486a2b77cfa3adfbebe; d429482a67df16a30afaf9a3f1fe239fe73b44de; 70d7bb7a0be033e5ebe8a2c48974692b1318891c; >= 6.6.160, < 6.6.163; >= 6.12.110, < 6.12.119; >= 6.18.52, < 6.18.65; …—cvelist
Linux7.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-139797. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139797.md
Affected: Linux >= d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697bee; >= 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d; >= 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4; >= 688bc88e2046dd6ce81ce18…
Fixed in: Linux 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d, Linux 209d372db6827617329f7129253044d0fcd854bb, Linux 6.6.163, Linux 6.12.119, Linux 6.18.65

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-139797 being exploited?

There is no confirmed exploitation: CVE-2026-139797 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-139797?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2026-139797?

Linux >= d64708cc119db01fbc55017ee6e987b680ebd59c, < d8db249281cc185ad7d25051c85b3dcc3a697bee; >= 8e5cb90f212fda9f6cd29915a1ed74353108ceb3, < 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d; >= 8abb2b7c60d2b2c0f40606048c873096c03874d2, < db6ad77a25a168756be394806bd65d8a9d267fc4; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < 209d372db6827617329f7129253044d0fcd854bb; >= 688bc88e2046dd6ce81ce18079b5254cb8dadc0e, < aa2e38aabaae87236290e486a2b77cfa3adfbebe; d429482a67df16a30afaf9a3f1fe239fe73b44de; 70d7bb7a0be033e5ebe8a2c48974692b1318891c; >= 6.6.160, < 6.6.163; >= 6.12.110, < 6.12.119; >= 6.18.52, < 6.18.65; …; Linux 7.3.

Is there a fix for CVE-2026-139797?

Yes. Fixed in Linux 4d1f1994f2aba4a4851c8fbea7f2c12a7c27164d, Linux 209d372db6827617329f7129253044d0fcd854bb, Linux 6.6.163, Linux 6.12.119, Linux 6.18.65. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2026-139797?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-140063

Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker

Linux kernel+1
MEDIUM 5.1CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Linux kernel+1
HIGH 7.3CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Linux kernel
UNSCOREDCVE-2026-139800

9p/xen: drain response work after unbinding IRQ

Linux kernel
HIGH 7.0CVE-2026-139799

mm/shmem: hold off eviction in shmem_writeout()

Linux kernel
Sponsors