Linux Kernel DLM stack buffer overflow via negative length
CVE-2026-139768 Published on November 30, 2026
dlm: fix buffer overflow from negative len in dlm_search_rsb_tree
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.
Products Associated with CVE-2026-139768
Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.
Affected Versions
Linux:- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 08cb20cf07a8c5324b49442421da1556fd2d7cff is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 35d6a8cf1b8865f4f1646f98683925e3cd070a1c is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 69beb43cd143f63078e569d9d90c6c401c866695 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below d785f7d92f197b72d496bbcf54a160cd54f00263 is affected.
- Before 6.12.119 is affected.
- Before 6.18.65 is affected.
- Before 7.3.6 is affected.
- Version 6.12.119, <= 6.12.* is unaffected.
- Version 6.18.65, <= 6.18.* is unaffected.
- Version 7.3.6, <= 7.3.* is unaffected.
- Version 7.4-rc1, <= * is unaffected.