CVE-2026-139770 (GCVE-0-2026-139770)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:37 – Updated: 2026-12-01 05:43
VLAI
Title
dlm: validate lock modes in recovery messages
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 7961 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < 80edda84148e11a1df4bdf3c963bebb9f1ba5d40 (git)
Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < ead3d0eec0a7110adfccb46870e25a01cfe106e8 (git)
Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < dddfdd527a4f015c0205578e7d397f313bdcd4b1 (git)
Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < c0808860594e7a85c53a84be3bd3d60e79eb0064 (git)
Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf (git)
Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < 754b20172f449755816c4def9437b4c938a7c6fe (git)
Affected: e7fd41792fc0ee52a05fcaac87511f118328d147 , < 7bf1aca6d626944091a5cb218b4e487547edff0a (git)
guessed Create a notification for this product.
Linux Linux Affected: 2.6.19
Unaffected: 0 , < 2.6.19 (semver)
Unaffected: 5.15.226 , ≤ 5.15.* (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.119 , ≤ 6.12.* (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/dlm/lock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "80edda84148e11a1df4bdf3c963bebb9f1ba5d40",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            },
            {
              "lessThan": "ead3d0eec0a7110adfccb46870e25a01cfe106e8",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            },
            {
              "lessThan": "dddfdd527a4f015c0205578e7d397f313bdcd4b1",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            },
            {
              "lessThan": "c0808860594e7a85c53a84be3bd3d60e79eb0064",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            },
            {
              "lessThan": "9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            },
            {
              "lessThan": "754b20172f449755816c4def9437b4c938a7c6fe",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            },
            {
              "lessThan": "7bf1aca6d626944091a5cb218b4e487547edff0a",
              "status": "affected",
              "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/dlm/lock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.19"
            },
            {
              "lessThan": "2.6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.226",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.119",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "2.6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "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() -\u003e receive_rcom_lock() -\u003e dlm_recover_master_copy() -\u003e 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\u0027s 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\u0027s 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\u0027s 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:43:17.164Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139770",
    "datePublished": "2026-11-30T13:37:49.492Z",
    "dateReserved": "2026-11-30T13:22:15.952Z",
    "dateUpdated": "2026-12-01T05:43:17.164Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/dlm/lock.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "80edda84148e11a1df4bdf3c963bebb9f1ba5d40",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ead3d0eec0a7110adfccb46870e25a01cfe106e8",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "dddfdd527a4f015c0205578e7d397f313bdcd4b1",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c0808860594e7a85c53a84be3bd3d60e79eb0064",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "754b20172f449755816c4def9437b4c938a7c6fe",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7bf1aca6d626944091a5cb218b4e487547edff0a",
                    "status": "affected",
                    "version": "e7fd41792fc0ee52a05fcaac87511f118328d147",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/dlm/lock.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "2.6.19"
                  },
                  {
                    "lessThan": "2.6.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.226",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.119",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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."
          }
        ],
        "id": "CVE-2026-139770",
        "lastModified": "2026-12-01T06:17:48.967",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 3.6,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:20:09.980",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/754b20172f449755816c4def9437b4c938a7c6fe"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7bf1aca6d626944091a5cb218b4e487547edff0a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/80edda84148e11a1df4bdf3c963bebb9f1ba5d40"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c0808860594e7a85c53a84be3bd3d60e79eb0064"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/dddfdd527a4f015c0205578e7d397f313bdcd4b1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ead3d0eec0a7110adfccb46870e25a01cfe106e8"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.