CVE-2026-139519

dlm: validate node weights before building member array

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 node weights before building member array

DLM node weights are parsed as signed integers and copied into the member
list. make_member_array() uses their sum as the allocation count, but only
positive weights contribute entries to the array. A negative weight can
therefore reduce the allocation without reducing the number of writes.

The issue was found through static analysis of the configfs input and
member array construction. With two recovery members weighted -31 and 32,
the sum is 1, so recovery allocates one int and then writes the positive
member's node ID 32 times. A reproducer using dlm_controld and dlm_tool
triggered the same report on a KASAN kernel:

BUG: KASAN: slab-out-of-bounds in dlm_recover_members [dlm]
Write of size 4 by task dlm_recoverd

Call Trace:
dlm_recover_members
dlm_recoverd
kthread
ret_from_fork

Reject negative weights at the configfs input boundary. Also detect
overflow when adding non-negative weights to the signed allocation count,
and propagate array construction errors to the recovery path.

Analysis

AI-generated

Technical impact

An out‑of‑bounds write in the Linux kernel DLM (Distributed Lock Manager) module allows an attacker to corrupt kernel memory. The issue surfaces when node weights are configured via configfs: negative weights are permitted, and the module sums all weights to allocate an array, but only positive weights add entries. A negative weight can therefore reduce the allocation count without decreasing the actual number of writes, leading the module to write beyond the end of the allocated buffer and trigger a KASAN slab‑out‑of‑bounds error. This kernel memory corruption can be leveraged to overwrite arbitrary memory locations.

Affected Systems

Any machine running a Linux kernel that includes the DLM subsystem and exposes the configfs interface for DLM node weights is susceptible. The vulnerability does not list specific kernel releases; it affects kernels that have not applied the upstream patch that rejects negative weights and checks for integer overflow. Environments that enable DLM with arbitrary node weights are potentially at risk.

Risk and Exploitability

The absence of a CVSS score prevents precise quantification, but the nature of memory corruption suggests high‑impact potential. Exploitation requires access to the DLM configfs interface, which is typically privileged; therefore the attack is likely limited to local users with elevated rights or local attackers able to influence configfs entries. The EPSS score is not available, and the vulnerability is not in the CISA KEV catalog, indicating no known widespread exploitation yet. Nonetheless, due to the significant impact of kernel corruption, the recommended action is to apply the patch immediately.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the fix for negative weight validation in the DLM module.
  • If an immediate kernel upgrade is not possible, disable the DLM functionality by unmounting the DLM configfs interface or preventing the creation of DLM node weights.
  • Audit and modify any scripts or tools that write to configfs DLM node weights to ensure negative weights are not used and that weights remain within safe bounds.

Generated by OpenCVE AI on November 30, 2026 at 23:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-119
CWE-386
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dlm: validate node weights before building member array DLM node weights are parsed as signed integers and copied into the member list. make_member_array() uses their sum as the allocation count, but only positive weights contribute entries to the array. A negative weight can therefore reduce the allocation without reducing the number of writes. The issue was found through static analysis of the configfs input and member array construction. With two recovery members weighted -31 and 32, the sum is 1, so recovery allocates one int and then writes the positive member's node ID 32 times. A reproducer using dlm_controld and dlm_tool triggered the same report on a KASAN kernel: BUG: KASAN: slab-out-of-bounds in dlm_recover_members [dlm] Write of size 4 by task dlm_recoverd Call Trace: dlm_recover_members dlm_recoverd kthread ret_from_fork Reject negative weights at the configfs input boundary. Also detect overflow when adding non-negative weights to the signed allocation count, and propagate array construction errors to the recovery path.
Title dlm: validate node weights before building member array
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-386

    Symbolic Name not Mapping to Correct Object

Sources

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