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

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Published: 2026-11-30T13:37:47.831Z
- Modified: 2026-12-01T06:17:48.683Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 08cb20cf07a8c5324b49442421da1556fd2d7cff; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 35d6a8cf1b8865f4f1646f98683925e3cd070a1c; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 69beb43cd143f63078e569d9d90c6c401c866695; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d785f7d92f197b72d496bbcf54a160cd54f00263; before 6.12.119; before 6.18.65; before 7.3.6 (not affected: from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/08cb20cf07a8c5324b49442421da1556fd2d7cff>
- <https://git.kernel.org/stable/c/35d6a8cf1b8865f4f1646f98683925e3cd070a1c>
- <https://git.kernel.org/stable/c/69beb43cd143f63078e569d9d90c6c401c866695>
- <https://git.kernel.org/stable/c/d785f7d92f197b72d496bbcf54a160cd54f00263>

## Sources

- CVE List: [CVE-2026-139768](https://www.cve.org/CVERecord?id=CVE-2026-139768), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139768](https://nvd.nist.gov/vuln/detail/CVE-2026-139768), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139768 · Whole record: https://cve.day/CVE-2026-139768.json · Rebuilt by cve.day 2026-12-01T06:32:24.284Z
