{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139770","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.952Z","datePublished":"2026-11-30T13:37:49.492Z","dateUpdated":"2026-12-01T05:43:17.164Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:17.164Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndlm: validate lock modes in recovery messages\n\nThe DLM recovery path restores lock state from rcom_lock messages\nreceived from remote nodes. The lock modes in these messages are\ncopied directly into the local lkb state without validating that they\nare within the valid DLM lock mode range.\n\nThe rest of the DLM code assumes that lkb_rqmode and lkb_grmode\ncontain valid lock modes. In particular, LVB callback handling in\ndlm_may_skip_callback() uses lock modes as indexes into the\ndlm_lvb_operations array:\n\n    dlm_lvb_operations[prev_mode + 1][mode + 1]\n\nAn invalid lock mode received during recovery could therefore result in\nan out-of-bounds read during subsequent LVB callback processing.\n\nValidate rl_rqmode and rl_grmode before storing them into the local LKB\nstate. This preserves the lock mode invariant required by the rest of\nthe DLM code.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS:U - The impact stays in the victim kernel's DLM and lock users (gfs2/ocfs2). No VM, IOMMU or sandbox boundary is crossed.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/lock.c"],"versions":[{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"80edda84148e11a1df4bdf3c963bebb9f1ba5d40","status":"affected","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"ead3d0eec0a7110adfccb46870e25a01cfe106e8","status":"affected","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"dddfdd527a4f015c0205578e7d397f313bdcd4b1","status":"affected","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"c0808860594e7a85c53a84be3bd3d60e79eb0064","status":"affected","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf","status":"affected","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"754b20172f449755816c4def9437b4c938a7c6fe","status":"affected","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","lessThan":"7bf1aca6d626944091a5cb218b4e487547edff0a","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/lock.c"],"versions":[{"version":"2.6.19","status":"affected"},{"version":"0","lessThan":"2.6.19","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/80edda84148e11a1df4bdf3c963bebb9f1ba5d40"},{"url":"https://git.kernel.org/stable/c/ead3d0eec0a7110adfccb46870e25a01cfe106e8"},{"url":"https://git.kernel.org/stable/c/dddfdd527a4f015c0205578e7d397f313bdcd4b1"},{"url":"https://git.kernel.org/stable/c/c0808860594e7a85c53a84be3bd3d60e79eb0064"},{"url":"https://git.kernel.org/stable/c/9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf"},{"url":"https://git.kernel.org/stable/c/754b20172f449755816c4def9437b4c938a7c6fe"},{"url":"https://git.kernel.org/stable/c/7bf1aca6d626944091a5cb218b4e487547edff0a"}],"title":"dlm: validate lock modes in recovery messages","x_generator":{"engine":"bippy-1.2.0"}}}}