Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139770

published high CVSS 3.1 · 7.5

dlm: validate lock modes in recovery messages

Published
30 Nov 2026, 13:37:49 UTC
Updated
01 Dec 2026, 05:43:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe7fd41792fc0ee52a05fcaac87511f118328d147 to < 80edda84148e11a1df4bdf3c963bebb9f1ba5d40 · e7fd41792fc0ee52a05fcaac87511f118328d147 to < ead3d0eec0a7110adfccb46870e25a01cfe106e8 · e7fd41792fc0ee52a05fcaac87511f118328d147 to < dddfdd527a4f015c0205578e7d397f313bdcd4b1 · e7fd41792fc0ee52a05fcaac87511f118328d147 to < c0808860594e7a85c53a84be3bd3d60e79eb0064 · e7fd41792fc0ee52a05fcaac87511f118328d147 to < 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf · e7fd41792fc0ee52a05fcaac87511f118328d147 to < 754b20172f449755816c4def9437b4c938a7c6fe · e7fd41792fc0ee52a05fcaac87511f118328d147 to < 7bf1aca6d626944091a5cb218b4e487547edff0a · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.19 (affected) · 0 to < 2.6.19 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: dlm: validate lock modes in recovery messages The DLM recovery path restores lock state from rcom_lock messages received from remote nodes. The lock modes in these messages are copied directly into the local lkb state without validating that they are within the valid DLM lock mode range. The rest of the DLM code assumes that lkb_rqmode and lkb_grmode contain valid lock modes. In particular, LVB callback handling in dlm_may_skip_callback() uses lock modes as indexes into the dlm_lvb_operations array: dlm_lvb_operations[prev_mode + 1][mode + 1] An invalid lock mode received during recovery could therefore result in an out-of-bounds read during subsequent LVB callback processing. Validate rl_rqmode and rl_grmode before storing them into the local LKB state. This preserves the lock mode invariant required by the rest of the DLM code. Found by Linux Verification Center (linuxtesting.org) with SVACE.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scenarios
en: AV:N - The bad rl_rqmode/rl_grmode bytes arrive in a DLM_RCOM_LOCK message over the DLM TCP/SCTP link (port 21064). accept_from_sock() checks only the source IP against configured nodes, then dlm_receive_rcom() -> receive_rcom_lock() -> dlm_recover_master_copy() -> receive_rcom_lock_args() stores them in the lkb unchecked. AC:L - dlm_receive_rcom() accepts RCOM_LOCK only in the recovery lock phase (DLM_RS_NODES|DLM_RS_DIR). A peer starts recovery by joining or leaving the lockspace and sees each phase as a participant. rqmode=6 hits the all-zero PD column, so grant_pending_locks() always queues the bast; no luck or memory layout is involved. PR:N - The DLM link has no authentication. accept_from_sock() checks only that the source address maps to a configured nodeid, dlm_receive_buffer() only that h_nodeid matches, and receive_rcom_lock() never checks lockspace membership. The sender needs no credentials on the victim host. UI:N - No local user action is needed. Once a lockspace such as a gfs2 mount is active, the peer's RCOM_LOCK and the following dlm_recover_grant() pass in dlm_recoverd run the bad path automatically. S:U - The impact stays in the victim kernel's DLM and lock users (gfs2/ocfs2). No VM, IOMMU or sandbox boundary is crossed. C:N - Bad modes only cause out-of-bounds reads of the const __dlm_compat_matrix/dlm_lvb_operations tables (about +/-4.6 KB in rodata). The value only picks grant vs block, bast vs none, or LVB copy direction (fixed ls_lvblen), so no out-of-bounds bytes are ever returned to the peer. I:N - Nothing is written out of bounds. The bad modes change only how the injected master-copy lkb is treated: grant decisions and LVB direction. The peer can already cause the same lock and LVB effects with valid modes in the protocol, so no new kernel memory or data is modified. A:H - rqmode=6 sets high=6 in grant_pending_locks(), which calls queue_bast(gr, 6) on locks the victim holds. dlm_may_skip_callback() passes it, and gfs2's gdlm_bast() hits BUG() on the unknown mode. Other nodes on the resource get DLM_MSG_BAST mode 6 and crash too, so the peer can crash the cluster again at each recovery.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e7fd41792fc0ee52a05fcaac87511f118328d147 to < 80edda84148e11a1df4bdf3c963bebb9f1ba5d40 (affected · git)e7fd41792fc0ee52a05fcaac87511f118328d147 to < ead3d0eec0a7110adfccb46870e25a01cfe106e8 (affected · git)e7fd41792fc0ee52a05fcaac87511f118328d147 to < dddfdd527a4f015c0205578e7d397f313bdcd4b1 (affected · git)e7fd41792fc0ee52a05fcaac87511f118328d147 to < c0808860594e7a85c53a84be3bd3d60e79eb0064 (affected · git)e7fd41792fc0ee52a05fcaac87511f118328d147 to < 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf (affected · git)e7fd41792fc0ee52a05fcaac87511f118328d147 to < 754b20172f449755816c4def9437b4c938a7c6fe (affected · git)e7fd41792fc0ee52a05fcaac87511f118328d147 to < 7bf1aca6d626944091a5cb218b4e487547edff0a (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.19 (affected)0 to < 2.6.19 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

dlm: validate lock modes in recovery messages

Provenance

Schema
5.2
Searchable
yes
Content hash
e07d8be5966771140b20817eb8010e1c30652630ee6e55aa272441ef2bacc894
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected