dlm: fix buffer overflow from negative len in dlm_search_rsb_tree

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 08cb20cf07a8c5324b49442421da1556fd2d7cff Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 35d6a8cf1b8865f4f1646f98683925e3cd070a1c Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 69beb43cd143f63078e569d9d90c6c401c866695 Affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before d785f7d92f197b72d496bbcf54a160cd54f00263 Affectedbefore 6.12.119 Affectedbefore 6.18.65 Affectedbefore 7.3.6 Affected
Linux Linux6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.