CVE-2026-139770: Linux kernel DLM copies unvalidated lock modes from recovery messages, then uses them as array indexes

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

When a node joins or leaves a DLM lockspace the survivors rebuild lock state from rcom_lock recovery messages sent by their peers. The kernel CNA record says the lock modes in those messages “are copied directly into the local lkb state without validating that they are within the valid DLM lock mode range”, that the rest of DLM assumes lkb_rqmode and lkb_grmode are valid, and that the LVB callback code “uses lock modes as indexes into the dlm_lvb_operations array: dlm_lvb_operations[prev_mode + 1][mode + 1]“, so “an invalid lock mode received during recovery could therefore result in an out-of-bounds read during subsequent LVB callback processing”. The fix validates both modes before storing them. The CNA and Red Hat score it 7.5 as a remote denial of service. On every DLM cluster node, upgrade to 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later; the flaw dates from the original 2006 DLM import, so every kernel that can run a lockspace has it.

CVE-2026-139770 at a glance.

ComponentLinux kernel, Distributed Lock Manager (fs/dlm/lock.c): receive_rcom_lock_args(), unpacking an rcom_lock into a local lock block
Affected versionsfrom the DLM import e7fd41792fc0 (“[DLM] The core of the DLM for GFS2/CLVM”): 2.6.19 up to 5.15 before 5.15.226, 6.1 before 6.1.193, 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1. The record lists no 5.10 or 5.4 backport
Fixed inmainline 7.4-rc1 (commit 7bf1aca6, Danila Chernetsov, taken by David Teigland; fs/dlm/lock.c +4/−0) and stable 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6. The change adds a range check at the top of receive_rcom_lock_args(): if rl_rqmode or rl_grmode is outside DLM_LOCK_IV to DLM_LOCK_EX the function returns −EINVAL before any field is populated. Fixes e7fd41792fc0; found by the Linux Verification Center with SVACE
SeverityKernel CNA CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H); NVD shows the CNA metric only; Red Hat Important, 7.5 on the same vector (draft, CWE-125 out-of-bounds read), bug 2587071 “Denial of Service via invalid lock modes in DLM recovery”; no Red Hat per-product table yet; Ubuntu not consulted (its page refused the automated reader)
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.01231 (70th percentile) on 1 December 2026
Who is exposedAny node in a DLM lockspace (GFS2, clustered LVM, OCFS2 on DLM) that goes through recovery with a peer, or an impostor on port 21064, that sends out-of-range lock modes; the read happens later, during LVB callback processing, so the crash can land well after the bad message. Red Hat: unclustered systems are unaffected, environments running DLM on reachable interfaces are susceptible
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

DLM lock modes are a small enumeration, from DLM_LOCK_IV (−1, invalid) through null, concurrent read, concurrent write, protected read, protected write to DLM_LOCK_EX (5). Every lock block carries a requested mode and a granted mode, and the code that decides whether a lock-value-block callback can be skipped looks the pair up in a two-dimensional table indexed by mode + 1. That table is sized for the seven legal values and nothing else.

Recovery is the one place lock blocks are created from a peer’s description rather than from a local request. receive_rcom_lock_args() copied rl_rqmode and rl_grmode from the message into the new lock block as they came, and since the 2006 import nothing between the wire and the table had checked them. A peer that sends, say, mode 200 plants a value the rest of DLM treats as trustworthy, and the next time the LVB logic runs on that lock the index walks off the end of dlm_lvb_operations: an out-of-bounds read, and with a large enough value a fault. The sender needs to be, or to pass for, a lockspace member taking part in recovery, which on a flat cluster network is not a high bar.

Danila Chernetsov’s fix, found by SVACE at the Linux Verification Center alongside the sibling CVE-2026-139769, adds four lines: a range check on both modes at the top of receive_rcom_lock_args() that returns −EINVAL before lkb_nodeid, lkb_ownpid or lkb_remid are assigned, so the invariant the rest of DLM depends on is restored at the boundary. Alexander Aring acked it and David Teigland took it for 7.4-rc1; the CNA lists six stable backports.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. DLM is built as a module on every general-purpose distribution and loaded only by a cluster stack, so “vulnerable” below describes the package; Red Hat has published no per-product table yet.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSAunstable 7.3.6-1
UbuntuNot consulted for this page: ubuntu.com refused the automated reader on 2 December 2026 (the bulk list on run 18 onward and this page twice); the Ubuntu priority is not stated here—
RHEL, Rocky, Alma, CentOS StreamImportant, 7.5 (bug 2587071, CWE-125); the per-product table was not yet published on 2 December 2026, so RHEL 8, 9 and 10 (which ship DLM for the High Availability and Resilient Storage add-ons) should be assumed affected until it appears; no errata—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

The first question is whether DLM is running; the second is the kernel version, and here every unfixed kernel is in range. The third is who can take part in recovery, which is anyone who can reach port 21064 and pass for a member.

# 1. is DLM in use (module loaded, a lockspace joined, the port listening)
lsmod | grep -E '^dlm '
dlm_tool ls 2>/dev/null; ls /sys/kernel/dlm/ 2>/dev/null
ss -ltnp 2>/dev/null | grep ':21064 '; ss -lSn 2>/dev/null | grep ':21064 '

# 2. the running kernel: fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later
uname -r

# 3. the interconnect: DLM should be bound to the cluster network only
dlm_tool dump_config 2>/dev/null | grep -E 'protocol|bind'; grep -E 'ring0_addr|bindnetaddr' /etc/corosync/corosync.conf 2>/dev/null

No dlm module and nothing on port 21064 means recovery messages are never parsed and the page does not apply. A lockspace member on any unfixed kernel is exposed to its peers during every recovery, which happens on each membership change; whether an outsider can inject depends entirely on whether 21064 is reachable from beyond the interconnect. The out-of-bounds read fires later, in LVB callback handling, so a crash some time after a node join is consistent with this.

How to fix it

Update the kernel on each node in turn, draining and rejoining as usual; the fix is four lines and backports cleanly, so it should appear quickly in distribution kernels. Until then, the interconnect is the control: DLM traffic should never be reachable from outside the cluster.

# Debian forky / sid (7.3.6-1 carries the fix); trixie and bookworm: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot
# RHEL / Rocky / Alma: no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: no USN yet; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# Interim: admit DLM traffic (TCP and SCTP 21064) from the other cluster members only
nft add rule inet filter input ip saddr != { 192.0.2.11, 192.0.2.12 } tcp dport 21064 drop
nft add rule inet filter input ip saddr != { 192.0.2.11, 192.0.2.12 } sctp dport 21064 drop

Fencing the port keeps strangers out of recovery; it cannot keep out a member that has been compromised, and a lockspace extends trust to every member, so the rule is a bridge to the fixed kernel rather than a fix. What not to do: do not disable LVB support or the callbacks to avoid the table lookup; the invalid modes are still stored and other paths assume they are valid, and clustered file systems depend on LVBs for correctness.

Sources

  • CVE-2026-139770 at CVE.org — the kernel CNA record: the “copied directly into the local lkb state without validating” sentence, the dlm_lvb_operations index expression, the 2.6.19 lower bound and the git ranges (30 November 2026)
  • Fix commit 7bf1aca6 (mainline, 7.4-rc1; Danila Chernetsov; fs/dlm/lock.c +4/−0; Fixes e7fd41792fc0, Acked-by Alexander Aring, Signed-off-by David Teigland; the author date was not shown because GitHub rate-limited the patch view on 2 December 2026) and the six stable backports in the record (git.kernel.org refuses automated readers)
  • NVD entry — Received on 30 November 2026; shows the CNA’s metric as its only score, no NVD score or CWE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (refused the automated reader on 2 December 2026) · Red Hat (Important 7.5, bug 2587071, CWE-125, no product table yet) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.01231 (percentile 0.698) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.