{"id":"CVE-2026-139519","aliases":["CVE-2026-139519"],"related":[],"kind":"vulnerability","state":"published","title":"dlm: validate node weights before building member array","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndlm: validate node weights before building member array\n\nDLM node weights are parsed as signed integers and copied into the member\nlist. make_member_array() uses their sum as the allocation count, but only\npositive weights contribute entries to the array. A negative weight can\ntherefore reduce the allocation without reducing the number of writes.\n\nThe issue was found through static analysis of the configfs input and\nmember array construction. With two recovery members weighted -31 and 32,\nthe sum is 1, so recovery allocates one int and then writes the positive\nmember's node ID 32 times. A reproducer using dlm_controld and dlm_tool\ntriggered the same report on a KASAN kernel:\n\n  BUG: KASAN: slab-out-of-bounds in dlm_recover_members [dlm]\n  Write of size 4 by task dlm_recoverd\n\n  Call Trace:\n   dlm_recover_members\n   dlm_recoverd\n   kthread\n   ret_from_fork\n\nReject negative weights at the configfs input boundary. Also detect\noverflow when adding non-negative weights to the signed allocation count,\nand propagate array construction errors to the recovery path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndlm: validate node weights before building member array\n\nDLM node weights are parsed as signed integers and copied into the member\nlist. make_member_array() uses their sum as the allocation count, but only\npositive weights contribute entries to the array. A negative weight can\ntherefore reduce the allocation without reducing the number of writes.\n\nThe issue was found through static analysis of the configfs input and\nmember array construction. With two recovery members weighted -31 and 32,\nthe sum is 1, so recovery allocates one int and then writes the positive\nmember's node ID 32 times. A reproducer using dlm_controld and dlm_tool\ntriggered the same report on a KASAN kernel:\n\n  BUG: KASAN: slab-out-of-bounds in dlm_recover_members [dlm]\n  Write of size 4 by task dlm_recoverd\n\n  Call Trace:\n   dlm_recover_members\n   dlm_recoverd\n   kthread\n   ret_from_fork\n\nReject negative weights at the configfs input boundary. Also detect\noverflow when adding non-negative weights to the signed allocation count,\nand propagate array construction errors to the recovery path.","source":"cvelist"}],"published":"2026-11-30T13:35:30.065Z","modified":"2026-11-30T14:19:28.123Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e7fd41792fc0ee52a05fcaac87511f118328d147","fixed":"073b3af9b8f5a98054d1607d25fcb5a29bbe61c1","status":"affected"},{"type":"git","introduced":"e7fd41792fc0ee52a05fcaac87511f118328d147","fixed":"fa7894deb868a21530f19094b31cfb45d684b49f","status":"affected"},{"type":"git","introduced":"e7fd41792fc0ee52a05fcaac87511f118328d147","fixed":"cd601163736041f8aa5160463796ace841509c3e","status":"affected"},{"type":"git","introduced":"e7fd41792fc0ee52a05fcaac87511f118328d147","fixed":"7f662eb1807ed732ac7d5e119753c8185f241bb8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.19","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.66","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/073b3af9b8f5a98054d1607d25fcb5a29bbe61c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fa7894deb868a21530f19094b31cfb45d684b49f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd601163736041f8aa5160463796ace841509c3e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f662eb1807ed732ac7d5e119753c8185f241bb8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139519","url":"https://www.cve.org/CVERecord?id=CVE-2026-139519","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:30.065Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139519","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139519","licence":"Public domain","modified":"2026-11-30T14:19:28.123Z"}],"updatedAt":"2026-11-30T14:33:35.885Z","epss":{"score":0.00201,"percentile":0.10471,"date":"2026-12-01T12:00:22.000Z"}}