CVE-2026-139770

dlm: validate lock modes in recovery messages

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability involves the DLM subsystem in the Linux kernel, where lock mode values received in rcom_lock recovery messages are copied directly into local state without validation. This assumption fails when an attacker sends a crafted mode outside the allowed range, causing the kernel to use the value as an array index in dlm_lvb_operations and triggering an out‑of‑bounds read during LVB callback handling. The read can expose kernel memory contents or lead to a crash, potentially allowing information disclosure or denial of service.

Affected Systems

All Linux kernel implementations that include the DLM subsystem and have not yet applied the patch are affected. Versions predating the commit that added lock mode validation are at risk. Specific version ranges are not listed in the CNA data; users should check the kernel changelog for the DLM lock mode validation fix.

Risk and Exploitability

The EPSS score is unavailable and the vulnerability is not in the KEV catalog, implying limited known exploitation. However the lack of input validation and the potential for out‑of‑bounds memory access makes this a high‑severity flaw. The attack likely involves a compromised or colluding node within the same cluster sending malicious recovery messages during failover. Exposing sensitive data or crashing the kernel remains possible, but exploitation requires control of DLM traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that incorporates the DLM lock mode validation fix
  • Isolate or disable the DLM subsystem to prevent recovery traffic from being processed until the patch is applied
  • Monitor kernel logs for indications of out‑of‑bounds read or DLM‑related errors

Generated by OpenCVE AI on December 1, 2026 at 01:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
CWE-20
Type Values Removed Values Added
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.
Title dlm: validate lock modes in recovery messages
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM