{"id":"CVE-2026-139519","state":"PUBLISHED","title":"dlm: validate node weights before building member array","description":"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.","publishedAt":"2026-11-30T13:35:30.065Z","updatedAt":"2026-11-30T13:35:30.065Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"073b3af9b8f5a98054d1607d25fcb5a29bbe61c1","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"fa7894deb868a21530f19094b31cfb45d684b49f","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"cd601163736041f8aa5160463796ace841509c3e","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"7f662eb1807ed732ac7d5e119753c8185f241bb8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/config.c","fs/dlm/member.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/config.c","fs/dlm/member.c"]}],"references":["https://git.kernel.org/stable/c/073b3af9b8f5a98054d1607d25fcb5a29bbe61c1","https://git.kernel.org/stable/c/fa7894deb868a21530f19094b31cfb45d684b49f","https://git.kernel.org/stable/c/cd601163736041f8aa5160463796ace841509c3e","https://git.kernel.org/stable/c/7f662eb1807ed732ac7d5e119753c8185f241bb8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139519.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139519","state":"PUBLISHED","datePublished":"2026-11-30T13:35:30.065Z","dateUpdated":"2026-11-30T13:35:30.065Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.938Z"},"containers":{"cna":{"title":"dlm: validate node weights before building member array","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"073b3af9b8f5a98054d1607d25fcb5a29bbe61c1","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"fa7894deb868a21530f19094b31cfb45d684b49f","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"cd601163736041f8aa5160463796ace841509c3e","versionType":"git"},{"version":"e7fd41792fc0ee52a05fcaac87511f118328d147","status":"affected","lessThan":"7f662eb1807ed732ac7d5e119753c8185f241bb8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/config.c","fs/dlm/member.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/dlm/config.c","fs/dlm/member.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/073b3af9b8f5a98054d1607d25fcb5a29bbe61c1"},{"url":"https://git.kernel.org/stable/c/fa7894deb868a21530f19094b31cfb45d684b49f"},{"url":"https://git.kernel.org/stable/c/cd601163736041f8aa5160463796ace841509c3e"},{"url":"https://git.kernel.org/stable/c/7f662eb1807ed732ac7d5e119753c8185f241bb8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:30.065Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}