CVE-2026-139769: Linux kernel DLM dereferences NULL when a cluster peer asks it to dump a lock resource that does not exist

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

The kernel’s Distributed Lock Manager keeps GFS2 and clustered LVM consistent across nodes by exchanging lock traffic on TCP or SCTP port 21064. One recovery message, an RCOM_LOOKUP with rc_id set to 0xFFFFFFFF, asks the receiving node to dump a named lock resource for debugging. The kernel CNA record says the name “comes from the received message. There is no guarantee that an RSB with this name exists in the local hash table”, that dlm_search_rsb_tree() returns −EBADR and leaves the pointer NULL when it does not, and that “the current error handling is inverted: if (!error) goto out; As a result, dlm_dump_rsb() is called only when the lookup fails and r is NULL”. The fix changes that one condition. The CNA and Red Hat score it 7.5 as a remote denial of service. On cluster nodes running DLM on 6.10 or later, upgrade to 6.12.119, 6.18.65, 7.3.6 or later, and keep port 21064 reachable only from the other members.

CVE-2026-139769 at a glance.

ComponentLinux kernel, Distributed Lock Manager (fs/dlm/lock.c): dlm_dump_rsb_name(), reached from receive_rcom_lookup()
Affected versionsfrom 2d90354027ad (“dlm: merge toss and keep hash table lists into one list”): 6.10 up to 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. Kernels before 6.10 have the older lookup and are not affected
Fixed inmainline 7.4-rc1 (commit 19982c99, Danila Chernetsov, authored 1 September 2026, taken by David Teigland; fs/dlm/lock.c +1/−1) and stable 6.12.119, 6.18.65, 7.3.6. The change is a one-character logic fix: if (!error) becomes if (error), so the dump runs only when a valid resource pointer came back and an unknown name is a silent no-op. Fixes 2d90354027ad; 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-476 NULL pointer dereference), bug 2586554 “Denial of Service via NULL pointer dereference in DLM”; Ubuntu not consulted (its page refused the automated reader)
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.01107 (67th percentile) on 1 December 2026
Who is exposedA node in a DLM lockspace (GFS2, clustered LVM, OCFS2 configured for DLM) on kernel 6.10 or later, reachable on port 21064 by a peer that sends the debug lookup for a name the node does not hold. DLM does not authenticate members beyond what the cluster stack and the network provide. Red Hat: DLM “is not enabled or loaded by default”, exposure is clustering and shared-storage setups
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

DLM recovery messages (rcom) let nodes rebuild lock state after a membership change, and one of them doubles as a debugging hook: a lookup whose request id is all ones is answered not with a lock master but with a dump of the named resource into the kernel log. The function that does the dump, dlm_dump_rsb_name(), takes the name straight from the message, searches the node’s resource tree for it and prints what it finds.

Kernel 6.10 merged the “toss” and “keep” lists of the resource hash table into one, and that rework left the error check in the dump path inverted. dlm_search_rsb_tree() returns zero and fills in the pointer on success, −EBADR and a NULL pointer on a miss; the code jumped to the exit on success and fell through to dlm_dump_rsb(r) on a miss, dereferencing NULL. So the one message the function was written for could never work, and a message naming any resource the node does not hold, which a peer can produce at will and which an attacker on the cluster network can forge, oopses the node. Red Hat rates it Important because the sender needs no credentials and the result is an immediate panic.

Danila Chernetsov’s fix, found by static analysis at the Linux Verification Center and authored on 1 September 2026, flips the test to if (error) goto out; and changes nothing else: one line in fs/dlm/lock.c. Alexander Aring acked it and David Teigland took it into the DLM tree for 7.4-rc1, with backports to the three stable series that carry the 6.10 rework. The sibling record CVE-2026-139770, from the same author and the same analysis, hardens the recovery path’s lock-mode handling.

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. Only kernels from 6.10 contain the inverted check, which is why Debian bookworm and every RHEL kernel are not affected; the exposure is on 6.12-based releases, rolling releases and self-built kernels that run clusters.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.x) not affected (“vulnerable code not present”); 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 2586554, CWE-476); every product not affected (RHEL 6 to 10, kernel and kernel-rt, and every OpenShift RHCOS image): no RHEL kernel carries the 6.10 hash-table rework; 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 apply6.12.119 / 6.18.65 / 7.3.6 or later

How to check

The first question is whether DLM is running at all; most hosts never load it. On a cluster node the next are the kernel version, since anything below 6.10 is not affected, and who can reach the DLM port.

# 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: affected from 6.10; fixed in 6.12.119, 6.18.65, 7.3.6 or later
uname -r

# 3. who may reach the port (cluster members only is the goal)
nft list ruleset 2>/dev/null | grep -n 21064; iptables -S 2>/dev/null | grep 21064

No dlm module and nothing on port 21064 means the message is never received and the page does not apply, which is every host outside a shared-storage cluster. A node in a lockspace on 6.10 to 6.12.118, 6.18 before 6.18.65 or 7.3 before 7.3.6, with 21064 reachable from beyond the cluster’s own members, is exposed to a single crafted lookup; a node whose port is reachable only by its peers is exposed to a compromised or buggy peer.

How to fix it

Update the kernel and reboot the node; in a cluster that means draining it first and letting the lockspace recover, which is routine maintenance. Until the kernel is fixed, the lever is network: DLM traffic should only ever flow between members, and on a dedicated interconnect it usually already does.

# 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
# Arch / Fedora / self-built: move to a fixed upstream release
# (see "Fixed in" above), then reboot
uname -r
# 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 to members closes the path for outsiders and is good practice regardless; it does not protect against a member that is itself compromised, and a lockspace is only as trustworthy as its least trusted node, so it is a bridge to the fixed kernel. What not to do: do not disable DLM recovery messages or shorten the recovery timers; the dump is a single-message code path and the fix is one character, so the right move is the kernel update rather than cluster-tuning around it.

Sources

  • CVE-2026-139769 at CVE.org — the kernel CNA record: the “the current error handling is inverted” explanation, the RCOM_LOOKUP rc_id 0xFFFFFFFF trigger, the 6.10 lower bound and the git ranges (30 November 2026)
  • Fix commit 19982c99 (mainline, 7.4-rc1; Danila Chernetsov, 1 September 2026; fs/dlm/lock.c +1/−1; Fixes 2d90354027ad, Acked-by Alexander Aring, Signed-off-by David Teigland) and the three stable backports in the record (read on GitHub on 2 December 2026; 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 not affected, 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 2586554, CWE-476, no product affected) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.01107 (percentile 0.668) 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.