Threat Feed

CVE-2026-139768: dlm: fix buffer overflow from negative len in dlm_search_rsb_tree

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-30

Description

In the Linux kernel, the following vulnerability has been resolved: dlm: fix buffer overflow from negative len in dlm_search_rsb_tree commit 080e5563f878c ("dlm: validate length in dlm_search_rsb_tree") only checks for len > DLM_RESNAME_MAXLEN, which does not catch negative values. While the input 'len' can be negative and a negative int passed to memcpy() is implicitly converted to a large size_t, causing a stack buffer overflow on the key[] array. Fix this by changing the 'len' parameter type from int to unsigned int. This ensures negative values from callers are implicitly converted to large unsigned values that are caught by the existing len > DLM_RESNAME_MAXLEN check.

Enclave's analysis

Linux kernel DLM re-opens the hole from CVE-2026-43125: a negative length value in a crafted RCOM_LOOKUP message skips the existing bounds check and overflows a 64-byte stack buffer in dlm_search_rsb_tree. Anyone who can reach a cluster node's DLM port can trigger it with no authentication. Right now there's no PoC and no observed exploitation, and it only matters on nodes actively running GFS2, OCFS2 or lvmlockd clustering, usually on a private interconnect. Patch to 6.12.119/6.18.65/7.3.6 or later and keep DLM traffic off any network an outsider can reach.

Fix

Upgrade Linux kernel (fs/dlm) to 6.12.119 / 6.18.65 / 7.3.6 (mainline 7.4-rc1). No fixed version is listed for Linux; follow the vendor advisory.

Affected versions

ProductVulnerableFixed in
Linux63e711b081609748d631fc3a08b14ba01c8e4f16 before 08cb20cf07a8c5324b49442421da1556fd2d7cffNot listed
Linux63e711b081609748d631fc3a08b14ba01c8e4f16 before 35d6a8cf1b8865f4f1646f98683925e3cd070a1cNot listed
Linux63e711b081609748d631fc3a08b14ba01c8e4f16 before 69beb43cd143f63078e569d9d90c6c401c866695Not listed
Linux63e711b081609748d631fc3a08b14ba01c8e4f16 before d785f7d92f197b72d496bbcf54a160cd54f00263Not listed
Linux6.6Not listed
Linux kernel (fs/dlm)<6.12.119 (6.12.x), <6.18.65 (6.18.x), <7.3.6 (7.x), pre-7.4-rc1 mainline6.12.119 / 6.18.65 / 7.3.6 (mainline 7.4-rc1)

Seen in 2 sources