Paper/Archive/CVE-2026-139768

CVE-2026-139768

Linux Linux — dlm: fix buffer overflow from negative len in dlm_search_rsb_tree

Description · from the CVE record

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

ProductAffectedFixed inSource
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 08cb20cf07a8c5324b49442421da1556fd2d7cff08cb20cf07a8c5324b49442421da1556fd2d7cffCNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 35d6a8cf1b8865f4f1646f98683925e3cd070a1c35d6a8cf1b8865f4f1646f98683925e3cd070a1cCNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < 69beb43cd143f63078e569d9d90c6c401c86669569beb43cd143f63078e569d9d90c6c401c866695CNA
Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – < d785f7d92f197b72d496bbcf54a160cd54f00263d785f7d92f197b72d496bbcf54a160cd54f00263CNA
Linux< 6.12.1196.12.119CNA
Linux< 6.18.656.18.65CNA
Linux< 7.3.67.3.6CNA
Linuxsee advisory6.12.119CNA

Scores by source

Linux (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

refgit.kernel.org/stable/c/08cb20cf07a8c5324b49442421da1556fd2d7cffrefgit.kernel.org/stable/c/35d6a8cf1b8865f4f1646f98683925e3cd070a1crefgit.kernel.org/stable/c/69beb43cd143f63078e569d9d90c6c401c866695refgit.kernel.org/stable/c/d785f7d92f197b72d496bbcf54a160cd54f00263