Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139768

dlm: fix buffer overflow from negative len in dlm_search_rsb_tree

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 08cb20cf07a8c5324b49442421da1556fd2d7cffaffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 35d6a8cf1b8865f4f1646f98683925e3cd070a1caffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 69beb43cd143f63078e569d9d90c6c401c866695affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < d785f7d92f197b72d496bbcf54a160cd54f00263affected
  • 0 to < 6.12.119affected
  • 0 to < 6.18.65affected
  • 0 to < 7.3.6affected

Linux Linux

Default version status: affected

  • 6.12.119 to ≤ 6.12.*unaffected
  • 6.18.65 to ≤ 6.18.*unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References