Vulnerability · Linux kernel (DLM, fs/dlm) · updated

CVE-2026-139768: stack buffer overflow in the Linux kernel DLM lock lookup

A bug in the Linux kernel's DLM (distributed lock manager) code can overflow a kernel stack buffer. The CNA scores it 9.8 and rates it reachable over the network without login, so Linux hosts that use DLM should get a fixed kernel (6.12.119, 6.18.65 or 7.3.6 upstream, or your distribution's patched package) soon.

FixReleased
ExploitationNone reported
Public exploit codeNot public
CISA KEVNot listed
Severity9.8 (CVSS 3.1, CNA)

Quick answers

What is CVE-2026-139768?

CVE-2026-139768 (CVE-2026-139768) is a vulnerability in Linux kernel (DLM, fs/dlm). A bug in the Linux kernel's DLM (distributed lock manager) code can overflow a kernel stack buffer. The CNA scores it 9.8 and rates it reachable over the network without login, so Linux hosts that use DLM should get a fixed kernel (6.12.119, 6.18.65 or 7.3.6 upstream, or your distribution's patched package) soon.

Am I affected by CVE-2026-139768?

CVE-2026-139768 affects Linux kernels below 6.12.119, from 6.13.0 up to 6.18.64, and from 6.19.0 up to 7.3.5, according to OSV. Real exposure is on hosts where the kernel DLM (distributed lock manager) code is built and in use, which mostly means clustered Linux setups. Distribution kernels use their own version numbers, so check your vendor's advisory.

Which versions fix CVE-2026-139768?

6.12 and earlier: 6.12.119; 6.13 to 6.18: 6.18.65; 6.19 to 7.3: 7.3.6

Is CVE-2026-139768 being exploited?

No exploitation in the wild has been reported; it is not in the CISA KEV catalog.

Is there a workaround for CVE-2026-139768?

No official workaround for CVE-2026-139768 has been published. The fix is a Linux kernel update: upstream stable kernels 6.12.119, 6.18.65 and 7.3.6 change the len parameter of dlm_search_rsb_tree in fs/dlm/lock.c from int to unsigned int so negative lengths are rejected. Distribution kernels carry their own version numbers, so install the patched package named in your vendor's advisory and reboot. Until you can patch the Linux kernel for CVE-2026-139768, our general advice (not from the advisory) is to reduce exposure. On hosts that do not use DLM, confirm the dlm module is not loaded and stop it from loading; this does not help if DLM is built in (CONFIG_DLM=y). On hosts that do use DLM, limit network access to the cluster interconnect to known cluster nodes. Review the snippet below before running it. It changes system configuration and is not a check.

What this means for your business

Stack buffer overflow inside the kernel. The CNA rates confidentiality, integrity and availability impact as high, which can mean a crashed host or full system takeover.

The CNA vector is network, low complexity, no privileges, no user interaction. The published fix does not explain how a negative length reaches the vulnerable function, so real-world reachability is not yet clear.

No known exploitation, no public proof of concept and no CISA KEV listing as of 2026-12-01.

Fixing it means a kernel update and a reboot, so plan a maintenance window.

Is this about you? CVE-2026-139768 affects Linux kernels below 6.12.119, from 6.13.0 up to 6.18.64, and from 6.19.0 up to 7.3.5, according to OSV. Real exposure is on hosts where the kernel DLM (distributed lock manager) code is built and in use, which mostly means clustered Linux setups. Distribution kernels use their own version numbers, so check your vendor's advisory.

Ask your team or provider:

How fast: No known exploitation yet, but this is a 9.8 kernel bug. Hosts that use DLM: patch by 2026-12-08. Other Linux hosts: include it in your next regular kernel patch cycle this month.

Not sure if you are exposed?

We check your servers and containers with read-only access, tell you what is exposed, and patch it in a window you approve.

For engineers

LineAffectedFixed in
6.12 and earlierbelow 6.12.1196.12.119
6.13 to 6.186.13.0 to 6.18.646.18.65
6.19 to 7.36.19.0 to 7.3.57.3.6

Ranges come from OSV. OSV marks everything below 6.12.119 as affected but lists no fixed release in older lines such as 6.6.y or 6.1.y; the bundle does not say whether those lines will get a backport. The bundle also does not say which kernel version first shipped the vulnerable code or which mainline release contains upstream commit d785f7d92f19. The stable backports were pulled in as a dependency of a separate fix, b4e6ae7ba711 ("dlm: fix variable key length lookup"). Distribution kernels backport fixes under their own version numbers, so compare against your vendor's advisory, not the upstream numbers.

When it can be exploited

Check if you are affected

uname -r
lsmod | grep -w dlm
grep -E '^CONFIG_DLM' /boot/config-$(uname -r)
kubectl get nodes -o custom-columns=NAME:.metadata.name,KERNEL:.status.nodeInfo.kernelVersion,OS:.status.nodeInfo.osImage

All commands are read-only. Compare uname -r with the ranges above, or with your distribution's advisory if you run a vendor kernel. If lsmod shows dlm, the module is loaded. In the kernel config, CONFIG_DLM=m means it is a loadable module, CONFIG_DLM=y means it is built in, and no match means DLM is not compiled in. The kubectl line lists kernel versions for AKS or other Kubernetes nodes.

If you can't upgrade today

No official workaround for CVE-2026-139768 has been published. The fix is a Linux kernel update: upstream stable kernels 6.12.119, 6.18.65 and 7.3.6 change the len parameter of dlm_search_rsb_tree in fs/dlm/lock.c from int to unsigned int so negative lengths are rejected. Distribution kernels carry their own version numbers, so install the patched package named in your vendor's advisory and reboot. Until you can patch the Linux kernel for CVE-2026-139768, our general advice (not from the advisory) is to reduce exposure. On hosts that do not use DLM, confirm the dlm module is not loaded and stop it from loading; this does not help if DLM is built in (CONFIG_DLM=y). On hosts that do use DLM, limit network access to the cluster interconnect to known cluster nodes. Review the snippet below before running it. It changes system configuration and is not a check.

# Only on hosts that do NOT use DLM. Review before running.
# Stops future loading of the dlm module; does not unload a running module
# and has no effect if DLM is built into the kernel (CONFIG_DLM=y).
echo 'install dlm /bin/false' | sudo tee /etc/modprobe.d/disable-dlm.conf

Signs you were already hit

No indicators of compromise have been published. A kernel stack overflow attempt may crash the host, so look for kernel oops or panic traces that mention dlm, and for unexplained reboots on cluster nodes. Read-only checks: journalctl -k | grep -i dlm for the current boot and journalctl -k -b -1 | grep -i dlm for the previous boot. If a trace references dlm_search_rsb_tree, treat the host as suspect, keep the logs, and isolate it before rebuilding from a patched image.

Prompt for your coding agent

Paste this into Claude Code, Codex or Cursor, opened in the repository that holds your server and deployment configuration. It only reads and proposes changes; review the diff before you apply it.

You are helping assess CVE-2026-139768, a stack buffer overflow in the Linux kernel DLM (`dlm_search_rsb_tree` in `fs/dlm/lock.c`). Upstream fixed stable kernels are `6.12.119`, `6.18.65` and `7.3.6`; affected ranges are below `6.12.119`, `6.13.0` to `6.18.64`, and `6.19.0` to `7.3.5`. Investigate this repository only. Do not apply changes, commit, push, deploy, reboot or restart anything. Tasks: 1) Find every place that pins or selects a Linux kernel or OS image: Packer templates, cloud-init, Dockerfiles for VM images, Terraform or Bicep VM and VMSS definitions, AKS node pool settings (node image version, OS SKU, auto-upgrade channel), Ansible roles and similar. 2) List each one with file path, the kernel or image version it resolves to if determinable, and whether it falls in an affected range. Note that distribution kernels use their own version numbers; flag these as needing a vendor advisory check rather than guessing. 3) Search for DLM usage: references to `dlm`, `CONFIG_DLM`, cluster filesystems or high-availability cluster stacks, and modprobe configuration. 4) Propose a minimal diff for review that moves affected images or node pools to a patched kernel or node image, or enables the appropriate auto-upgrade channel. Mark any change that would trigger a reboot or node replacement. 5) Output a short report: findings table, the proposed diff, open questions, and anything you could not determine. Leave the diff unapplied for a human to review.

Timeline

  1. Fix authored by Joseph Qi: change len in dlm_search_rsb_tree from int to unsigned int.

  2. Upstream commit d785f7d92f19 committed by DLM maintainer David Teigland.

  3. Backports 08cb20cf07a8, 35d6a8cf1b88 and 69beb43cd143 committed to the stable tree by Greg Kroah-Hartman.

  4. CVE-2026-139768 published, CNA score 9.8 (CVSS 3.1).

  5. CVE record last modified. No KEV listing, public proof of concept or exploitation reports in our sources.

Sources

Checked 1 Dec 2026. We update this page when the vendor, CISA or the distributions change the picture.