CVE-2026-139769

dlm: fix NULL pointer dereference in dlm_dump_rsb_name()

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: fix NULL pointer dereference in dlm_dump_rsb_name()

The function dlm_dump_rsb_name() is called from receive_rcom_lookup()
when a debug dump is requested via a special RCOM_LOOKUP message with
rc_id == 0xFFFFFFFF.

The resource name passed to dlm_dump_rsb_name() comes from the received
message. There is no guarantee that an RSB with this name exists in the
local hash table.

dlm_search_rsb_tree() returns 0 when the RSB is found and stores a valid
pointer in r. When the lookup fails, it returns -EBADR and leaves r
NULL.

The current error handling is inverted:

if (!error)
goto out;

As a result, dlm_dump_rsb() is called only when the lookup fails and r
is NULL, resulting in a NULL pointer dereference.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Analysis

AI-generated

Technical impact

The bug is a NULL pointer dereference in dlm_dump_rsb_name() in the Linux kernel’s Distributed Lock Manager. It is triggered when a debug dump is requested via a RCOM_LOOKUP message with a special rc_id. The wrong error handling causes dlm_dump_rsb() to be called with a NULL pointer, leading to an immediate crash of the kernel and a system reboot. This vulnerability does not grant arbitrary code execution, but it can abruptly terminate services and disrupt availability.

Affected Systems

The flaw exists in the Linux kernel overall; any distribution or vendor using the affected kernel code is impacted. No specific version numbers are listed, so all kernels prior to the commit that introduced the fix are potentially vulnerable.

Risk and Exploitability

The CVSS score is not disclosed and the EPSS score is unavailable, so the overall severity is unknown. The vulnerability is not catalogued in CISA’s KEV list, suggesting no active exploitation is detected. The exploit is likely to be limited to actors that can send a specially crafted RCOM message to the kernel, possibly through the DLM network interface. Because the attack vector and requirement for privileged or network access are not explicitly stated, the risk is inferred to be moderate and the attacker profile likely local or remote via a trusted DLM connection.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the fix referenced in the advisory
  • Rebuild and install the patch if the distribution does not yet ship the updated kernel
  • If the kernel update is not yet available, disable the RCOM debug dump functionality or restrict the DLM network interface to trusted hosts

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: dlm: fix NULL pointer dereference in dlm_dump_rsb_name() The function dlm_dump_rsb_name() is called from receive_rcom_lookup() when a debug dump is requested via a special RCOM_LOOKUP message with rc_id == 0xFFFFFFFF. The resource name passed to dlm_dump_rsb_name() comes from the received message. There is no guarantee that an RSB with this name exists in the local hash table. dlm_search_rsb_tree() returns 0 when the RSB is found and stores a valid pointer in r. When the lookup fails, it returns -EBADR and leaves r NULL. The current error handling is inverted: if (!error) goto out; As a result, dlm_dump_rsb() is called only when the lookup fails and r is NULL, resulting in a NULL pointer dereference. Found by Linux Verification Center (linuxtesting.org) with SVACE.
Title dlm: fix NULL pointer dereference in dlm_dump_rsb_name()
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